On Tue, 2010-11-23 at 13:21 -0600, Noel Jones wrote: > On 11/23/2010 12:48 PM, Andrew Beverley wrote: > > On Sun, 2010-11-21 at 16:50 -0500, Jerrale G wrote: > >> On 11/21/2010 4:40 PM, Andrew Beverley wrote: > >>> Hi, > >>> > >>> I have noticed that my Postfix (version 2.3.8) is performing a > >>> virtual_alias_maps mysql database query for every email that it is > >>> processing, even if the domain is not listed in virtual_alias_domains. > >>> > >>> So for example, I have andybev.com in virtual_alias_domains and a > >>> database query set up for virtual_alias_maps. When I send an email > >>> *from* the server to an external email address, then that recipient (eg > >>> joeblo...@hotmail.com) gets looked up in the virtual_alias_maps database > >>> query first before it is delivered. > >>> > >>> Is this normal? This doesn't seem right, so I am thinking that there is > >>> something wrong with my configuration (all of the thousands of outbound > >>> emails are causing database lookups). > >>> > >>> Thanks, > >>> > >>> Andy > >>> > >>> > >> You have outgoing mail being processed by smtpd where it is suppose to > >> be processed by smtp. > >> I would tell you how you did this but you didnt include your postconf -n > > The above statement is nonsense. Ignore it. >
Thanks for the clarification. > > > > Thanks for the reply. I have copied the output from postconf -n as well > > as master.cf below (a few things removed). I am using dkim-filter to > > sign outgoing messages with DKIM - could this be the reason that I am > > using smtpd? > > There is nothing significant wrong with your config -- postfix > is working correctly and performing the queries required. > > My only suggestion is to be careful what you put in the > "access" table under smtpd_recipient_restrictions so you don't > inadvertently become an open relay. > http://www.postfix.org/SMTPD_ACCESS_README.html#danger > Thanks for pointing that out. The access file is just used to restrict the sending host for one particular email address, but I will move it to the end of the smtpd_recipient_restrictions where it is less likely to become a problem. Andy