• Thanks,

    I use Fastmail to be able to reply authoritatively from the domain.

    I use SendGrid to send email from the websites and also from Auth0.

    SendGrid is configured with a custom IP, which is 192.254.117.114 as seen below.

    This is what I've currently got:

    ; Fastmail (receive and send email)
    microcosm.app. 1 IN MX 20 in2-smtp.messagingengine.com.
    microcosm.app. 1 IN MX 10 in1-smtp.messagingengine.com.
    fm1._domainkey.microcosm.app. 1 IN CNAME fm1.microcosm.app.dkim.fmhosted.com.
    fm2._domainkey.microcosm.app. 1 IN CNAME fm2.microcosm.app.dkim.fmhosted.com.
    fm3._domainkey.microcosm.app. 1 IN CNAME fm3.microcosm.app.dkim.fmhosted.com.
    
    ; SendGrid (send email)
    151537.microcosm.app. 1 IN CNAME sendgrid.net.
    em8141.microcosm.app. 1 IN CNAME u151537.wl038.sendgrid.net.
    o1.out.microcosm.app. 1 IN A 192.254.117.114
    out.microcosm.app. 1 IN A 192.254.117.114
    s1._domainkey.microcosm.app. 1 IN CNAME s1.domainkey.u151537.wl038.sendgrid.net.
    s2._domainkey.microcosm.app. 1 IN CNAME s2.domainkey.u151537.wl038.sendgrid.net.
    sendgrid.microcosm.app. 1 IN CNAME u151537.wl038.sendgrid.net.
    url3929.microcosm.app. 1 IN CNAME sendgrid.net.
    
    ; Both (control spam)
    microcosm.app. 1 IN TXT "v=spf1 include:sendgrid.net include:spf.messagingengine.com -all"
    _dmarc.microcosm.app. 1 IN TXT "v=DMARC1; p=reject; sp=reject; pct=100; adkim=s; aspf=s"
    

    I would like strict alignment in SPF, and when achieved do want DMARC enforcement. I pay for nothing that gives me insight into DMARC so once semi-confident I chose to fail fast and hard so that someone just screams if something were amiss.

    Given all that... what do I need to change? Just the aspf=s to aspf=r?

  • Given all that... what do I need to change? Just the aspf=s to aspf=r?

    Exactly that, or remove the aspf tag entirely as the implied default is aspf=r so we don't even bother telling people to use the tag at all (same with adkim, but your DKIM is strictly aligned so fine for that to stay).

    em8141.microcosm.app. 1 IN CNAME u151537.wl038.sendgrid.net. is the record that is covering your SPF for the dedicated IP currently.

    Authentication-Results: mx.google.com;
    dkim=pass header.i=@microcosm.app header.s=s1 header.b=s5EMKk8t;
    dkim=pass header.i=@sendgrid.info header.s=smtpapi header.b=XTesXENi;
    spf=pass (google.com: domain of bounces+151537-6093-ams.stevenson=googlemail.com@em8141.microcosm.app designates 192.254.117.114 as permitted sender) smtp.mailfrom="bounces+151537-6093-ams.stevenson=googlemail.com@em8141.microcosm.app";
    dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microcosm.app

    I would ideally need to see DMARC reporting to be fully confident to shit-can the "permit ALL of Sendgrid" records from 151537.microcosm.app. and the org domain. They won't be breaking anything, just being over permissive. 99.9% of the time, Sendgrid will use a subdomain for the Mail From so they can specifiy themselves in the MX (by way of the above CNAME) so they can handle bounce processing.

About

Avatar for stevo_com @stevo_com started