Rolling your own mail server with Salt

Sun 16 February 2014

Email, it's the future!

Recently I decided to migrate my mail server and I took this as an opportunity to better get my head around setting the whole thing up. I've used iRedmail in the past but the whole process seemed a little like magic so I took a scouring around the internets for a decent tutorial and came across "A Hacker's Replacement for Gmail" and figured it might be worth building up a salt-stack for people.

There is a few differences between my salt-stack and the linked article.

  1. Primarily, I didn't need notmuch or any fancy indexing on my server. Personally, for security I grab all of my mail on Thunderbird and keep it offline with backups. So my server is pretty thin.
  2. I completely ignored his exim4 guide and only went with postfix and dovecot for security.
  3. I needed to add in some more security settings to get postfix up and running nicely.

Anyway the salt-stack is here and there should be very few changes in getting it up and running. Basically change with your server's username and with the domain you wish to email out from. I've only tested it with Debian 7 and Thunderbird as a client but it all worked.

If anyone has any improvements, just let me know.

Category: SaltStack Tagged: mail own-your-data devops linux projects saltstack

comments


OfflineImap to Thunderbird

Sat 08 February 2014

Last week I moved from Debian to Linux Mint and setup Thunderbird as my new mail client(replacing mutt). Sadly for some reason Thunderbird started tanking and wiped all the mails from my mailserver without actually downloading anything.

I could've restored the mails from a backup but instead I figured …

Category: Projects Tagged: mail migration thunderbird python

comments

Read More
Page 1 of 1