Postfix
# emerge postfix
You can then start postfix with
# /etc/init.d/postfix start
or substitute start with restart, reload or stop along with other commands.
If you would like to have an email address such as myusername@mail.yourdomain.com you should setup your server as follows. You must set with your DNS providers the host mail.yourdomain.com to point to the IP of your computer. Then, in /etc/postfix/main.cf you should set mydestination to at least mydestination = localhost, mail.yourdomain.com or if you set mydomain = yourdomain.com then you would use mydestination = localhost, mail.$mydomain which should be the standard way. Then just do a /etc/init.d/postfix reload and your ready to go.
If you want to allow relay access for certain computer you can do this by style or IP ranges. You can use mynetworks_style = host to only allow relay from the localhost. If you want to allow relay for a certain IP use mynetworks = 12.34.12.34. There's more examples in your /etc/postfix/main.cf. You can then do a postfix reload to take the new configuration.
[Click to add or edit comments])
Please prepend comments below including a date