Valérianne Dashie 44390f3aec
Fix delays with big mails
2 weeks ago
dkimproxy Add rest of config 8 months ago
dovecot Enable debug extensions; Minors update to use defaults from related files 8 months ago
opensmtpd Add rest of config 8 months ago
DNS Add rest of config 8 months ago
README.md Added rspamd scanning from a russian website 🤷 8 months ago
dovecot.sieve Add dovecot sieve file 8 months ago
etc_defaults_dkimproxy Add rest of config 8 months ago
etc_init.d_dkimproxy Add rest of config 8 months ago
rspamd.sh Fix delays with big mails 2 weeks ago
smtpd.conf Added rspamd scanning from a russian website 🤷 8 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

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

  • 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://habrahabr.ru/post/320698/
    • Unfortunately in Russian but theyre rspamd.sh script is usefull !

Various

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