# BIMI setup for yeneb.com

BIMI (Brand Indicators for Message Identification) makes the YENEB logo
appear next to emails from `noreply@yeneb.com` in supporting inboxes,
before the message is even opened. This documents the DNS record to add
on Yegara Host, and what's currently blocking it from actually working.

## Prerequisite: DMARC

BIMI is only honored by mail providers when the sending domain has a
DMARC policy at enforcement (`p=quarantine` or `p=reject`, not `p=none`).
`yeneb.com` already has SPF, DKIM, and DMARC configured and passing (see
the SMTP section of `.env.example`) — confirm the DMARC record's `p=`
value is `quarantine` or `reject` before publishing the BIMI record below,
since `p=none` will make BIMI silently do nothing.

## Blocker: no SVG logo exists yet

BIMI requires the logo to be an **SVG in the BIMI/SVG Tiny 1.2-PS
profile** — not a full SVG spec file, and not a raster format. PNG/JPG
are not accepted by any mail provider's BIMI validator.

Right now the only YENEB logo asset on file is a raster JPEG
(`yeneb_logo.jpeg`, uploaded to Cloudinary as part of the email-template
work — see `app.core.config.settings.email_logo_url`). That asset is
fine for the `<img>` tag in HTML emails, but **it cannot be used for
BIMI as-is**. Before the DNS record below can actually go live, someone
needs to produce a real SVG Tiny 1.2-PS version of the logo — ideally
from a designer's original vector source, not an automatic JPEG→SVG
trace (which produces a bloated, lossy outline that most validators
reject or render poorly). Once that SVG exists, upload it to Cloudinary
(same `yeneb/brand` folder, e.g. `public_id="logo-bimi"`,
`resource_type="image"`) and use its `secure_url` in place of
`<SVG_URL>` below.

## The DNS record

Add this as a new TXT record on Yegara Host's DNS management for
`yeneb.com`:

| Field | Value |
|---|---|
| Type | `TXT` |
| Name / Host | `default._bimi.yeneb.com` (or just `default._bimi` if Yegara's panel appends the domain automatically) |
| Value | `v=BIMI1; l=<SVG_URL>` |
| TTL | Default (e.g. 3600) is fine |

`default` is the BIMI *selector* — analogous to a DKIM selector.
`default` is the conventional choice and what mail providers check
unless a sender specifies otherwise, so there's no reason to use
anything else here.

Once the SVG is hosted, the value becomes literally, e.g.:

```
v=BIMI1; l=https://res.cloudinary.com/dkvh0gurm/image/upload/v.../yeneb/brand/logo-bimi.svg
```

Do not publish this record with a placeholder or non-SVG URL — an
invalid `l=` value is worse than no record at all, since some providers
cache a failed validation for a while before retrying.

### Optional: VMC (Verified Mark Certificate)

Gmail requires a VMC — a paid certificate (~$1,500–2,500/yr, issued by
DigiCert or Entrust) that proves trademark ownership of the logo — for
the logo to actually display in Gmail specifically. Apple Mail, Yahoo,
and others show the BIMI logo without one. A VMC isn't required to
publish a working BIMI record, and isn't in scope here — just worth
knowing that Gmail display is a separate, later step (`a=` tag in the
record, pointing to the VMC file) if it's ever worth the cost.

## Verifying it works

Once the SVG is hosted and the DNS record is published:

1. Wait for DNS propagation (usually minutes, occasionally up to ~24h
   depending on Yegara's nameserver TTLs).
2. Go to the BIMI Inspector at **bimigroup.org** (Tools → BIMI
   Inspector, or directly at their inspector page).
3. Enter `yeneb.com` as the domain and run the check.
4. It should report: DMARC found and at enforcement, BIMI record found
   at `default._bimi.yeneb.com`, SVG fetched successfully, and SVG
   passes the BIMI/Tiny-PS profile validation. Fix whichever step it
   flags — a common failure is the SVG having a `<title>`/embedded
   raster/script that the profile disallows.
5. Send a real test email from `noreply@yeneb.com` to a Gmail/Apple
   Mail/Yahoo account (with a VMC, or without on non-Gmail providers)
   and confirm the logo shows next to the sender name.

## Summary of what's left

- [ ] Confirm `yeneb.com`'s DMARC policy is `p=quarantine` or `p=reject`
- [ ] Get a proper SVG Tiny 1.2-PS version of the YENEB logo (designer
      vector source, not auto-traced from the JPEG)
- [ ] Upload that SVG to Cloudinary and get its URL
- [ ] Add the `default._bimi.yeneb.com` TXT record on Yegara Host with
      that URL
- [ ] Verify with the BIMI Inspector at bimigroup.org
- [ ] (Optional, Gmail only) Purchase a VMC if Gmail display matters
