No Description
Dashie der otter e79dde57f9
Add info
6 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 6 months ago
DNS Add rest of config 1 year ago
README.md Add info 6 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+ 6 months ago
smtpd.conf Why ? 6 months ago

README.md

Dashie’s setup mail

Featuring

  • 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.

Notes

  • 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”

Sources

Various

  • 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/