Markus Ewald writes:

On 07.01.2010 08:59, I myself wrote:
The docs talk about three modes maildrop can run in: Manual, Delivery
and Embedded mode. Embedded mode sounds like what I want (rejecting spam
during the SMTP transaction). If I set

      DEFAULTDELIVERY="| /usr/bin/maildrop"


Okay, I feel dumb for assuming that there was any magic going on, of course it's just a normal piped command, so I presume I have to run

     DEFAULTDELIVERY="| /usr/bin/maildrop -V2 -M default"

No. This is not about just passing additional options to maildrop. This is a Courier-specific extension.

See the localmailfilter man page for more information.

Running maildrop manually like this...

     maildrop -V2 -d cygon -M default < ~/testmail

...does indeed invoke SpamAssassin and everything appears to work alright. But when maildrop is invoked by courieresmtpd, something goes wrong:

maildrop is not being invoked by courieresmtpd here. You are still running maildrop to deliver mail, and nothing more. See the localmailfilter man page for more information.

     myserver courieresmtpd: started,ip=[1.2.3.4]
myserver courieresmtpd: error,relay=1.2.3.4,from=<[email protected]>,to=<cy...@myserver>: 456 Address temporarily unavailable.

Looks like the SMTP rejection works... but why is it being rejected?

For a different reason.

There was a delivery failure to the same address, previously. Courier is temporarily rejecting all mail to this address. See "Backscatter suppression" in INSTALL, for more information.

Attachment: pgpvAvHykryGc.pgp
Description: PGP signature

------------------------------------------------------------------------------
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