‹ BackHN Continuity

Thread

How to set up SPF, DKIM, and DMARC for your sending domain

92 points · 31 comments · spy888

  1. gerdesj · · focus · HN ↗
    This was not written by an email admin. Start with the real basics:

    Your MTA should announce itself and DNS should agree. So your MTA says: HELO smtp.example.co.uk

    smtp.example.co.uk will resolve to an A record (say a.b.c.d) and a reverse lookup will also work:

    d.c.b.a.in-addr.arpa PTR smtp.example.co.uk.

    Remember this is all about reputation, so if you also DNSSEC sign example.co.uk, then you will look like you care about your domain reputation.

    Then do SPF, DKIM and DMARC. Note how the example for SPF stops at ~all and not -all. The rest is also superficial.

    Anyway, I run email systems that do the job properly and it is not trivial and certainly not formulaic. There is no shortcut to getting an IP address/range trusted.

    The advice on that page is ... good as far as it goes but woefully inadequate for running an email system. It's a good start.

    1. albertgoeswoof · · focus · HN ↗
      They don’t do ips they just use SES, same as resend and a bunch of other email startups lately
      1. gerdesj · · focus · HN ↗
        Sorry, what is SES?
        1. dddw · · focus · HN ↗
          Simple Email Service, by AWS. Mainly tramsactional email, but noy exclusively
        2. taylortrusty · · focus · HN ↗
          Wait, you claim to run email systems and don't know what SES is?
          1. wahern · · focus · HN ↗
            If you hosted your own email server, why would you need to be familiar with SES, especially if you've been hosting longer than SES providers have been around?

            Like email, I run my own HTTP server, serving directly to clients. I know about Cloudflare just from HN threads, but have never used it or know much about that whole reverse proxy universe beyond the very low-level details from having written several reverse proxies myself.

          2. adrian_b · · focus · HN ↗
            Precisely those who run their own email systems have no need to know what SES is.
          3. Anthony-G · · focus · HN ↗
            Why would they? I’ve been running Internet servers (web, DNS, SMTP, IMAP, database) for about 25 years and until recently have only had the roughest idea of what EC2 or an S3 buckets are. It’s only because my employer recently started working with a new company that uses AWS that I’d have heard of SES. Also, I’ve no idea what the Azure equivalents are. If I ever need to know, I’ll find out but until then, ignorance is bliss.
          4. gerdesj · · focus · HN ↗
            Well, please tell me what SES is - no need to be a tease.

            I just run Exim and Postfix instances that shuffle email around the world. I also have several Dovecots that store the stuff and a large number of MS Exchange online tenants.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.