- "Wil Boucher" <[EMAIL PROTECTED]>:

| I want to either add a line to the bottom of every outgoing message
| or edit the subject line of everyoutgoing message.
| 
| I want all incoming messages to be left alone,

What about messages where both source and destination are local?  If
you want to edit those in the same way you edit outgoint messages, you
can replace qmail-inject by a program that edits the message and pipes
the result into the original qmail-inject.

Otherwise, you will need to run two queues.  In your regular queue,
have a wildcard virtualdomain for all remote domains.  The delivery
instructions for that virtualdomain would contain code to rewrite the
message and pipe to /var/qmail-outgoing/bin/forward.  In the
qmail-outgoing queue, no domains should be local.

- Harald

Reply via email to