On Mon, 3 Apr 2000, Jonathan McDowell wrote:
> I want to check all incoming messages to see if they're on DUL, ORBS,
> RSS, RBL or whatever and if so add a header to the message, say an
> "X-Spam-Warning: DUL" or the like. I know this is a trivial one line
> config option for Exim, but I haven't seen anything for qmail to do
> this.
>
> I know I could do something with procmail, but I want this to work even
> for mail that's being forwarded or stored in a Maildir or whatever,
> without the user having to do anything special.
>
> Anybody any ideas?
I think you'll have to implement some sort of filtering program. Without
modifying the source of your smptd program, I think the first chance you
have to modify the message is in a dot-qmail file.
You can use things like procmail or maildrop as a local delivery agent for
an entire system. From "man procmail":
If running suid root or with root privileges, procmail
will be able to perform as a functionally enhanced, back-
wards compatible mail delivery agent.
Procmail can also be used as a general purpose mail fil-
ter, i.e. provisions have been made to enable procmail to
be invoked in a special sendmail rule.
It seems you should be able to set things up so that all incoming mail is
passed through an "rblcheck" and additional headers appended when
appropriate.
I'm not sure about exact syntax, but man procmail seems like a good start.
Anyone else here done this before? If you do come up with something, do
let me know and I'll include it in the HOWTO.
Chris
-- Chris Hardie -----------------------------
----- mailto:[EMAIL PROTECTED] ----------
-------- http://www.summersault.com/chris/ --