JSOBCZ wrote:
> > I would like to add a recipient to all outgoing mail based on the
> > sender address e.q. all mail sent by [EMAIL PROTECTED] should be also
> > sent to [EMAIL PROTECTED] I am not familiar with procmail or
> > other tools so please be verbose.
Charles Cazabon wrote:
>This is a job for your MUA (mutt, kmail, Outlook, whatever), not for
>qmail...
That depends. One could be wanting to monitor the outgoing email of
certain addresses behind the scenes.
>If you want to do this at the MTA level, you'll need to use the
>QUEUE_EXTRA trick...
...documented in the qmail FAQ, #8.2, by the way...
> ...feeding messages to a program which extracts the
> sender address and decides what to do from there -- but you'll need
> another qmail instance without QUEUE_EXTRA to do these extra deliveries,
> or you'll have endless mail loops.
Maybe not. If the address to send copies to is local, one could instead
use another MDA to delivery it to that address's mailbox.
Relevant documentation to read: qmail FAQ, man dot-qmail, and the
documentation of your favorite Mail Delivery Agent (I use deliverquota,
part of the Courier/Courier IMAP packages).
Ross Cooney wrote:
> One other way to do this is to have a script to answer on port 25
> wich analyses the email depending on cetain "per domain" or "per user"
> requirements. This could add the new headder before sending it to the
> real qmail-queue. This could be built around the same idea that
> the qmail-scanner package works.
One problem with this scenario is the original recipient of the message
might see the extra header and mention it to the sender. If you're trying
to keep this sort of activity under wraps, that could be a bad thing.
---Kris Kelley
PS: My apologies to one particular person who will see this message twice.
I botched the reply.