Re: add a recipient

2001-08-10 Thread Kris Kelley

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.




Re: add a recipient

2001-08-10 Thread Ross Cooney

On Fri, Aug 10, 2001 at 08:34:22AM -0600, Charles Cazabon wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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.
> > address on all outgoing mail.

> If you want to do this at the MTA level, you'll need to use the
> QUEUE_EXTRA trick, 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.
> 


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.

I am working on something like this at the moment...but is very 
resource intesive and I am a far way from finishing it.

Ross


> Charles
> -- 
> ---
> Charles Cazabon<[EMAIL PROTECTED]>
> GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
> ---

-- 
_
Ross Cooney

Virus Scanner: http://www.antivirus.ie/index.mv?free_scan=1
Perl Tutorial: http://www.cyber-sentry.com/perl/tut.mv?art=1




Re: add a recipient

2001-08-10 Thread Charles Cazabon

[EMAIL PROTECTED] <[EMAIL PROTECTED]> 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.

This is a job for your MUA (mutt, kmail, Outlook, whatever), not for
qmail.  Every decent MUA has the ability to automatically cc/bcc another
address on all outgoing mail.

If you want to do this at the MTA level, you'll need to use the
QUEUE_EXTRA trick, 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.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



add a recipient

2001-08-10 Thread jsobcz

Hi
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.
Thanks for help

Janusz Sobczak