Postfix is a Mail Transfer Agent (MTA) that is:
Mail aliases provide:
Aliases are stored in /etc/aliases. They look like:
root: jeremy
postmaster: root
www-data: root
joe.bloggs: joe@joesmachine.internal.net
Debian:
Red Hat:
Other distributions:
Edit /etc/postfix/main.cf:
myhostname = hostname.domainname
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
If you are unfortunate enough to be on dialup:
If you updated /etc/aliases you'll first need to run:
To apply the changes you made to the configuration:
Fetchmail configuration (~/.fetchmailrc):
set postmaster "foo"
poll mail.sub.net.au with proto POP3 user "bar" there with password "secret" is foo here
Some suggestions for testing your MTA:
It is possible that by default Postfix will allow mail to be relayed from through it by default.
This could be abused by spammers
On a stand alone host set:
mynetworks = 127.0.0.0/255.0.0.0
If you also connected to private LAN:
mynetworks = 127.0.0.0/255.0.0.0, 192.168.1.0/255.255.255.0
In Debian when you install Postfix through apt-get you don't need to remove sendmail manually.
Under Red Hat you will have to remove sendmail manually. Here's what to do (as root):
Where to go for more information:
For general Linux Documentation:
To contact me by electronic mail: