Re: Milter and smtpd_proxy_filter

2010-11-15 Thread Wietse Venema
Patrick Ben Koetter:
 Do Milters and smtpd_proxy_filter work together i.e. can I run a Milter and
 smtpd_proxy_filter together and both are effective?

Postfix sends an SMTP command to the Milter before sending the
command, if it was not rejected, to the smtpd_proxy_filter.

But, the Milter won't see any of the header or body content.  There
is no cleanup daemon before the smtpd_proxy_filter, the main reason
being that it was implemented in very little time.

Wietse


Re: Milter and smtpd_proxy_filter

2010-11-15 Thread Jeroen Geilman

On 11/15/2010 06:03 PM, Patrick Ben Koetter wrote:

Do Milters and smtpd_proxy_filter work together i.e. can I run a Milter and
smtpd_proxy_filter together and both are effective?
   


http://www.postfix.org/MILTER_README.html has this to say:

When you use the before-queue content filter for incoming SMTP mail (see 
SMTPD_PROXY_README http://www.postfix.org/SMTPD_PROXY_README.html), 
Milter applications have access only to the SMTP command information; 
they have no access to the message header or body, and cannot make 
modifications to the message or to the envelope.


So it seems they do somewhat work together,. i nthat you cannot use the 
full MILTER functionality on the before-filter SMTPD.


Hence the order would be: before_filter SMTP listener AKA proxy (limited 
milters) - before_queue content_filter - after_filter SMTP listener 
AKA re-injection point (full milters) - cleanup.


At least, that is what the docs appear to say; i'm sure somebody will 
correct me :)


--
J.