In Tiny VPS Postfix I set up a minimalistic postfix server, which will forward all email to an external email.
In Part 2 I set up postfix with sasldb to enable smtp authentication for outgoing email.
Then what about web-base email service? Is there one that can handle both so I don’t have to use additional email client to handle outgoing emails?
Assuming you already setup your email alias to your GMail account, then there is nothing to do on server-side. Just follow the step below to set up GMail to use your server as outgoing smtp gateway.
Login GMail, click the “gear” icon on the upper right, then click Settings.
Click Accounts and Import then Add another email address you own. I already have firstname.lastname@example.org setup. I will just create another one in next step.
Enter the email address and name. Remove check mark for Treat as an alias.
Check mark Send through your.domain SMTP servers. Then enter your server address, username and password.
If the server test passed, when composing email, you will see something like following, but with your own domain email address.