On 9/3/2011 1:31 PM, Nikolaos Milas wrote: > On 18/2/2011 6:48 μμ, Victor Duchovni wrote: > >> On Fri, Feb 18, 2011 at 06:43:28PM +0200, Nikolaos Milas wrote: >> >>> What is the suggested way to configure Postfix to play this role, >>> i.e. to >>> simply send all incoming (clean, after filtering) mail to another >>> mail >>> server? >> >> http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall >> > > Hello again, > > I am returning to this matter after some time. I have read the > documentation indicated, and would like to ask some clarifications > (I will be running latest Postfix (2.8.5) on CentOS 5.6): > > On the firewall/gateway example, the following configuration is > proposed to NOT accept messages for subdomains: > > parent_domain_matches_subdomains = > debug_peer_list smtpd_access_maps > > My question: In our case we DO want to accept mail for subdomains > too. So, how should the example be modified to accept mail for some > (particular ones) or all of the subdomains of example.com ?
To accept mail for specified subdomains, add those domains to the relay_domains parameter. This is the recommended solution. Accepting mail for all subdomains is the historical default behavior. To get that behavior, just leave parent_domain_matches_subdomains at the build-in default, or make sure its value includes relay_domains. -- Noel Jones