Michael T. Babcock <[EMAIL PROTECTED]> wrote:
> I would like to add a mail header to all of our outgoing E-mail messages
> telling recipients who to report spam to so we can handle those cases.
> I don't mind these being added to incoming mail as well, so is there any
> way to simply add a header line to every message going through the system?
Bruce Guenter's QMAILQUEUE patch can be used to arbitrarily filter
messages. You could even use a tcpserver rules file to set the
appropriate variable only for mail which is outgoing (well, originates
at a local IP address).
Bruce also has a package called qmail-qfilter which uses the above
technique to do various filtering of mail. You can likely use parts of
it for examples. See untroubled.org for his software, or qmail.org for
other links.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------