Updating etc mail aliases

Rated 4.54/5 based on 699 customer reviews

Execute the command "newaliases" whenever you change the aliases file.The idea is to set up a Postfix email firewall/gateway that forwards mail for "example.com" to an inside gateway machine but rejects mail for "anything.example.com".This machine sends mail as "[email protected]" and is final destination for "[email protected]". 3 4 /etc/postfix/main.cf: 5 myorigin = $mydomain 6 mydestination = $myhostname localhost.$mydomain localhost $mydomain 7 mynetworks = 8 relay_domains = 9 # Optional: forward all non-local mail to firewall 10 #relayhost = [firewall.example.com] On some systems the alias database is not in /etc/aliases.

Reportedly, some things actually expect this ability to exist.

Postfix should work out of the box without change on a stand-alone machine that has direct Internet access.

At least, that is how Postfix installs when you download the Postfix source code via

This avoids the need to specify firewall IP addresses into Postfix configuration files.

1 /etc/postfix/main.cf: 2 mynetworks = .0/24 3 relay_domains = 4 parent_domain_matches_subdomains = 5 debug_peer_list smtpd_access_maps 6a # Postfix 2.10 and later support separate relay control and 7a # spam control.

Leave a Reply