Valérianne Dashie e73be7e176
Add dovecot sieve file
4 months ago
dkimproxy Add rest of config 4 months ago
dovecot Enable debug extensions; Minors update to use defaults from related files 4 months ago
opensmtpd Add rest of config 4 months ago
DNS Add rest of config 4 months ago
README.md Added rspamd scanning from a russian website 🤷 4 months ago
dovecot.sieve Add dovecot sieve file 4 months ago
etc_defaults_dkimproxy Add rest of config 4 months ago
etc_init.d_dkimproxy Add rest of config 4 months ago
rspamd.sh Added rspamd scanning from a russian website 🤷 4 months ago
smtpd.conf Added rspamd scanning from a russian website 🤷 4 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/
  • #25/dovecot-antispam-with-rspamd/
  • #31/OpenSMTPD-Dovecot-SpamAssassin.html
  • #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