On 08.01.2010 08:36, Gordon Messmer wrote:
On 01/07/2010 12:15 PM, Markus Ewald wrote:
On 1/7/2010 8:20 PM, Gordon Messmer wrote:
If you want to do scanning during the SMTP session, you need to use
Courier::Filter or courier-pythonfilter.  Maildrop's embedded mode will
not work.

For the fact that it will not work, I have to say that it is working pretty nicely on my server right now :P :))

That depends on how you define "work". It's not doing what you want it to, so I'd say it's not really working.

The purpose of xfilter is not only to send the message to an external script ("to" or "cc" can do that), but to replace the message with the output of the external script. Even in an included file, that isn't allowed in embedded mode.

That is what I mean when I say that it will not work. You will not achieve your goal of adding headers by means of maildrop's embedded mode.

Your statement sounded very much like maildrop's embedded mode will not work at all to do scanning during the SMTP session.

My goal is to reject spam, not add headers.

I have used 'xfilter' simply because I hoped adding headers would be possible. The 'xfilter' command was doing what I wanted it to do (check for spam), just without achieving one of its documented effects as I now know. Sam Varshavchik cleared that up to me, so I switched to using backticks instead of 'xfilter' and my scan command is now "spamc --check --exitcode" to avoid a possible overhead from reading SpamAssassin's stdout back in.

-Markus-

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to