Dashie der otter e79dde57f9
Add info
4 months ago
dkimproxy Add rest of config 1 year ago
dovecot Enable debug extensions; Minors update to use defaults from related files 1 year ago
opensmtpd Add doc about virtual domain 4 months ago
DNS Add rest of config 1 year ago
README.md Add info 4 months ago
dovecot.sieve Add dovecot sieve file 1 year ago
etc_defaults_dkimproxy Add rest of config 1 year ago
etc_init.d_dkimproxy Add rest of config 1 year ago
rspamd.py Update to handle correctly multiple aliases and python 3.5+ 4 months ago
smtpd.conf Why ? 4 months ago


Dashie's setup mail


  • OpenSMTPd
  • Dovecot
  • Dovecot antispam plugin (debian package so original and not fork)
  • Rspamd
  • DKIM(proxy)
  • SPF
  • MARC

Virtual Domains (or no)

  • Virtual domains

    • use "virtual" instead of "alias" in smtpd.conf
    • you can only use aliases in form "someuseralias@somedomain.tld someuser"
    • you can specifically have an alias touching only one domain
  • No virtual domains

    • use "alias" instead of "virtual" in smtpd.conf
    • you can only use aliases in form "someuseralias someuser"
    • you have aliases touching ALL domains, not specifically one

You can mix "alias" and "virtual" depending on from where the mails are from and what you want to do with them.


  • Packages needed: opensmtpd opensmtpd-extras dovecot-sieve dovecot-managesieved dovecot-lmtpd dovecot-imapd dovecot-antispam rspamd dkimproxy
  • Mails are stored under maildir on $USER/mail
  • Sieve use hardcoded directory $USER/.sieve
  • Auth from OpenSMTPd and Dovecot are done using system (pam) auth, so the user@ is 'user' on local system
  • Configured on debian jessie but should run elsewhere with some edit (mostly paths)
  • DKIMPROXY package is buggy, I provides here init script and defaults file modified
    • init script : removed overrided --signature (THERE IS A CONFIG FILE DUMBASS)
    • defaults : more or less same shit
  • Domain is "sexy.unicorn" feel free to adapt
  • rspamd config is default debian's one
  • DKIM selector is "mail"


  • https://crepererum.net/the-wonderful-world-of-e-mail/
  • https://kaworu.ch/blog/2014/03/25/dovecot-antispam-with-rspamd/
  • http://guillaumevincent.com/2015/01/31/OpenSMTPD-Dovecot-SpamAssassin.html
  • https://social.sitedethib.com/@Thib for rspamd.py
  • OpenSMTPd configuration doc: https://man.openbsd.org/smtpd.conf
  • Table format for OpenSMTPd: https://man.openbsd.org/makemap.8


  • dkim keys:
    • cd /etc/dkimproxy
    • openssl genrsa -out private.key 2048
    • openssl rsa -in private.key -pubout -out public.key
  • DKIM Validator: http://dkimvalidator.com/