Mail Relaying

By default, Postfix will not relay mail that did not originate from the local domain. This means that if a Postfix installation running at receives mail intended for, and that mail did not originate from, the mail will be rejected and will not be relayed. If you want to allow selected domains to relay through you, add an entry for the domain to the file like so:

mynetworks =,,

The IP address needs to be specified in CIDR format. For a handy calculator, head on over to http://www.subnet-calculator7cidr.php. You must restart Postfix for this change to take effect.

Was this article helpful?

0 0

Post a comment