Hello. Let’s say I want to selfhost an email server (smtp + imap) that only will be used to receive email.

I only will send email internally (from my domain to my domain) and receive from 3rd parties.

Should I setup DKIM, DMARC, SPF and reverse IP lookup?

To be honest, I’m having a bit of hard time understanding the madness of email authentication. So I can’t figure it out by myself if those mechanisms are needed in my case.

I haven’t deployed anything, but probably will use Stalwart. It looks like it’s easy to deploy. Is there any other beginner-friendly email service I should read about?

Thanks!

  • lemmy_in@lemm.ee
    link
    fedilink
    English
    arrow-up
    22
    ·
    9 months ago

    You should definitely set up a DMARC record to prevent other people from using your email domain to send spam. If you don’t have DMARC configured, other email servers will give any senders the benefit of the doubt and accept mail that claims to be from your domain.

    You can just set the DMARC record to reject 100% of unverified mail and call it a day. Since you aren’t sending anything it won’t affect you.

    • funkajunk@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      ·
      9 months ago

      Just to flesh that out a bit… All you need is to add a TXT record to your DNS records:

      Name: _dmarc.yourdomain.com

      Value: v=DMARC1; p=reject; pct=100

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      6
      ·
      9 months ago

      will give any senders the benefit of the doubt and accept mail that claims to be from your domain.

      You misspelled “black-hole your domain forever”.

      • 69420@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 months ago

        Some servers blacklist you even if you have DMARC, SPF, DKIM, DNS setup perfectly, but your IP is in a block of addresses that may or may not have been hosted by the same ISP of some unrelated server that was possibly compromised 10 years before you even set up the mail server. Ask me how I know.

        • conorab@lemmy.conorab.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 months ago

          Some servers blacklist you no matter what you do because you’re not a big player in the e-mail space… Outlook. Fuck Outlook. M365 doesn’t do that though.

          Also the idea that reverse IPs are needed (in practice) when SPF, DKIM and DMARC are in use is insane. I have literally told you my public key and signed the e-mail. It’s me. You don’t need to check the damn PTR!