1. 6
    1. 2

      The DKIM part is slightly dated - OpenSMTPD has a filter for it now.

      In general, I feel like this article overcomplicates things. If all you want a simple single user mail setup, you’re better off starting from scratch and reading the man pages (at least for the OpenBSD components). For example, my smtpd.conf is one third the length (after removing whitespace/comments):

      pki me.co.uk certificate "/etc/ssl/certs/me.co.uk.crt"
      pki me.co.uk key "/etc/ssl/private/me.co.uk.key"
      filter dkim dkim-signer "-sdkim" "-p/etc/ssl/private/dkim.me.co.uk.key"
      listen on lo filter dkim
      listen on egress tls pki me.co.uk
      listen on egress port 587 filter dkim tls-require pki me.co.uk auth tag AUTH
      # incoming mail
      accept from any for local virtual { "@" => mike } deliver to maildir
      # outgoing mail
      accept tagged AUTH from any for ! local relay
      # outgoing mail from localhost
      accept from local for ! local relay
      1. 1

        About dkim, the post mentions using dkim-genkey to generate a key for dkim, but I cant seem to find it anywhere. The command is not recognised on my openbsd 5.8 system and I cant seem to find it in the ports tree. Anybody know more?

        1. 2

          DKIM keys are RSA keys, which you can generate with OpenSSL.

      2. 1

        Do you not run any spam filtering? I’m supremely jealous, if so. I get hundreds per day.

        1. 1

          I use my mail server for feeling smug more sending/receiving emails so I’ve never needed a spam filter. I’ve received maybe a couple of spams per month for 3+ years. (see, so smug)

        2. 1

          last version of OpenSMTPD on 5.9-release also have SpamAssassin filter iirc.