Tiny VPS Postfix
Finally running my own website, hosting my own blog, having my own server to do whatever I want with it.
- Part 1 - Tiny VPS Postfix <- You are here
- Part 2 - Non-Linux Outgoing SMTP Account
- Part 3 - GMail As Email Client
It is so tempting and logical to setup my own email service running on it. Sending and receiving email with my own server, my own email address with my own domain name … So exciting!!
But wait … Do I really want to do that??
Minimalistic and Compromise
I have more than enough personal email addresses and already looking for ways to merge them.
I already have more than enough work email addresses that have been merged into a single account, which is setup with tones of filters to sort incoming mail into folders.
Do I really want another email account setup on my phone, my desktop, or have to check yet another webmail from browser?
No. Lets take a step back and think again.
What is really needed … for now?
My WordPress blog, the only public website for now, is able to send directly to my personal email. So it does not need an email address.
I do want to receive system message for alerts and daily report. But again, those can be forward to my personal email.
What about a few email addresses under my domain? Hmm … alias/forward them to my personal email too.
So I actually don’t need real email account on this tiny box. But I do need a email server that can handle all the forwarding, with minimal setup!
Minimal Alias/Forward only Email Server
Dealing with postfix daily at work, it is a no-brainer to use it here too. And I only have to change 2 configuration files.
The standard main.cf come with Ubuntu is quite complete.
Modify line 29, 33 according to site setup. Then add line 41 to 57 for basic spam protection and close off open relay. You really don’t want to be an open relay!
Remember to Change MY-HOSTNAME at line 29 and MY-DOMAIN to your own domain at line 33.
Again, to forward system messages and additional email addresses, 3 lines of modification and we are done!
Then do the following to update aliases.db and restart postfix.
That’s it, minimal email server setup to forward all emails to my personal email account!! All I needed for now!