Carlos Williams wrote:
> On Thu, Jul 16, 2009 at 12:07 PM, Michael Orlitzky<mich...@orlitzky.com> 
> wrote:
>> # MTA SETTINGS, UNCOMMENT AS APPROPRIATE,
>>
>> # both $forward_method and $notify_method default to
>> # 'smtp:[127.0.0.1]:10025'
> 
> So you're recommending I 'un-comment' the two lines above in my
> amavisd.conf file? I am just wondering because Amavisd-new appears to
> be working as I can see my headers have "X-Virus_Scanned" added into
> them.

I was just pointing out that 'smtp:[127.0.0.1]:10025' is the default 
value of both $forward_method and $notify_method. You asked why port 
10025 was mentioned in master.cf, but not amavisd.conf -- that's why.

When mail comes in to Postfix (from outside of your network) on port 25, 
it passes through the default instance of smtpd in your master.cf. In 
main.cf, you have configured the default smtpd to filter all mail 
through Amavis on port 10024:

 > content_filter = amavisfeed:[127.0.0.1]:10024

Once Amavis is done with the message, it hands the message back to 
Postfix via $forward_method, which defaults to 'smtp:[127.0.0.1]:10025'. 
Now, in master.cf, you have this "special" smtpd defined:

 > 127.0.0.1:10025 inet n    -       n       -       -     smtpd

The reason for the second smtpd is that all mail coming in on port 10025 
will be coming from Amavis; you don't want to filter it again, because 
that would create a loop. This is why you override the content_filter 
property for the second smtpd in master.cf.

The path that messages (from the outside) take looks like this:

Outside -> Postfix (25) -> Amavis (10024) -> Postfix (10025) -> Delivery

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to