Skip to content

config files for a debian mailserver (+ guide)

License

Notifications You must be signed in to change notification settings

nunq/mailserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/