On 04/09/2016 09:19 PM, Bernd Wurst wrote: > We use delivery by .courier files for both, local user accounts / > aliases and virtualdomains. Spam filtering happens with some custom > scripts inside the .courier files and therefore only deletion, sorting > or bouncing is available.
Bouncing mail, especially spam, after it's accepted is a terrible idea. In .courier and .mailfilter, you should only deliver or drop mail. > We need to give users a choice about spam filtering, so the filter must > have some "don't scan for these recipients" list. If the filter could > use custom spamassassin config and bayes-DB, this would be great but > it'll also work without that. SMTP doesn't really work that way. It's possible to scan the message during SMTP. It's possible to deliver or drop on a per-recipient basis, as well. You simply mark the message delivered for those recipients who wouldn't want to receive it. However, there's only one response to the sender. If you reject the message, which was your stated goal, then no one gets the message. Most mail gateways that I've worked with deal with this by rejecting mail when no recipients would accept the message. For messages with mixed results, the message is accepted and delivered to some and quarantined for others. pythonfilter has support for quarantining messages. ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users