On Thu, Jul 31, 2008 at 11:45:17AM -0700, Jérôme Blion wrote: > Richard Guy Briggs a écrit : > > I'm looking for a way to modify (delete and add) standard headers > > (Return-Path: and Reply-To:) for all relayed mail through courier. I > > have only a certain type of traffic transitting a specific courier MTA > > and want to apply the same rules to all of it. > > > > What I'm looking for appears to be headerdel and headeradd that are > > provided for couriermlm, except I need this for general email and not > > just mailing lists. > > > > I've also looked at reformail as a potential way to implement it, but > > again, it is for general email being relayed and not per user that could > > be accomplished with local delivery. > > > > Is there a straight-forward way to do this? > > Courier-Pythonfilter + Homemade plugin. > Use Xfilter, and then, modify your mail with such thing: > > del msg['theheaderyouwanttoremove'] > > msg.add_header(.....) > > I don't know wether it works or not.
Interesting. My understanding of filters was that they took in the data and only returned a result code and didn't have the capacity to modify and/or pass back the data. How does it pass back the data? I've now found this thread (http://wiki.apache.org/spamassassin/IntegratedInCourierUsingMaildrop) that helps understand how to use some of this, but it still isn't clear to me how this can be used. It appears I might be able to set some value of DEFAULTDELIVERY in /etc/courier/courierd that might do what I want, but again I wonder if that is only for local delivery and not for any mail being relayed through this MTA to other destinations. In looking for courier-pythonfilter packages, I see some available for FreeBSD, but nothing for Debian or RedHat(ES5). > HTH. > Jerome Blion. ....................................... Richard Guy Briggs Senior Software Developer Axentra Corporation t: (613) 627-1261 f: (613) 627-1260 e: [EMAIL PROTECTED] www.axentra.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
