Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.69 KB

readme.md

File metadata and controls

49 lines (39 loc) · 1.69 KB

debian mailserver

notes on setting up a mailserver on debian using postfix, dovecot and rspamd (+ ufw, unbound)

you should (have)

  • a clean, updated debian install
  • a non-root user
  • dns records setup as described in dns-setup.md
  • replace example.com in the config files with your domain.tld
  • read write-up.md so you actually kind of know what you're doing.

further reading

useful tools

other

no guarantees that any of this will work

  • i mainly wrote this for myself
  • no explanation for why an option is configured that way is provided, ever

todo

  • MTA-STS
  • DNSSEC
  • DANE

backing up your Maildir

the folder needs to be accessible to $SSH_USER for this to work. since mail users are just regular users on the system (and authenticated with pam), you may need to rsync each user's ~/Maildir to a directory which is accessible by $SSH_USER.

rsync -e 'ssh -p $PORT' -avzud --delete $SSH_USER@$IP:/path/to/accessible/Maildir/ ~/Documents/backups/mailbackup/