> On 03/23/2011 12:13 PM, Matus UHLAR - fantomas wrote: > > This is what spamass-milter already does. Mail to multiple recipients > > apparently can be re-checked in users' filters to get better results, while > > rejecting much of spam at SMTP level. While this can't be done with > > spamass-milter (yet), I could do this with perlfilter.
On 26.03.11 10:27, Gordon Messmer wrote: > I'm confused. Can you, or can you not (yet) filter using users' own > configurations with spamass-milter? I can, but only if there's only one recipient. > > Now I need to know how to add custom headers to D* files in courier queue... > > That's complicated. First, you'd have to decide whether or not to > reject the message. This can't be done per-user. After that, you'd > need to loop through each user and run spamc for that user. I have only asked how can I push some headers to filtered mail. As I have already said, I would run spamc from courierfilter and if there's only one recipient, I'd like to push x-spam headers to the mail. In both cases I'd like to remove x-spam headers from incoming mail. > You'd then > have to duplicate the message and control data and feed that to > courier's "submit". When you're done with the loop, you'd mark complete > all of the deliveries in the original control file. Is this the only way to modify message from courierfilter? > Courier-pythonfilter's XFilter class does basically that for old courier > systems. You can look at the oldSubmit() function for reference. > > I wouldn't recommend this. You gain no performance advantage over > running spamc once and rejecting obvious spam, and then running spamc > from maildrop. You'd be making your system extremely complicated with > no benefit. That is why i don't want to do the what you have described. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Despite the cost of living, have you noticed how popular it remains? ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users