procmail
[Top] [All Lists]

Duplicate mail using aliases

2004-10-07 18:39:04
I have the following /etc/procmailrc file below.  It works fine as is, but
if I replace the list of users "bhopkins, sharon, alan, mark, veronica,
ctaylor(_at_)anotherdom(_dot_)net" with an alias - "deadletter" - see below - 
from my
/etc/aliases file which has the same recipients, my recipients get two of
each message.

Why is this and is there any way to use my alias in /etc/aliases without
getting two of each message?

I prefer the list to be in an external file rather than in the procmailrc
file so that my boss can edit it easily.

TIA,

Don Woodward

-----------------------------------
/etc/procmailrc file below ...

# send mail through spamassassin
:0fw
| /usr/bin/spamc
#
#
#
# forward "ABCD dead_letter" subjects
:0cw:
* !^X-Loop: xloop(_at_)mydom(_dot_)com
* ^Subject:.*ABCD dead_letter
* ^To:(_dot_)*admin(_at_)mydom(_dot_)com
| formail -k -X "From:" -X "Subject:" \
        -I "To: bhopkins, sharon, alan, mark, veronica,
ctaylor(_at_)anotherdom(_dot_)net" \
        -X "To:" \
        -I "X-Loop: xloop(_at_)mydom(_dot_)com" -X "X-Loop:" \
        | $SENDMAIL -oi -t


-----------------------------------

Line from /etc/aliases file below ...

deadletter: bhopkins, sharon, alan, mark, veronica, 
ctaylor(_at_)anotherdom(_dot_)net




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail