On Thu, Oct 07, 2004 at 08:46:17PM -0400, Don Woodward wrote:
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 -
/etc/aliases file which has the same recipients, my recipients get two of
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.
/etc/procmailrc file below ...
# send mail through spamassassin
# forward "ABCD dead_letter" subjects
I don't think you wanted that "c" flag. That is probably why you
are "seeing double."
Perhaps you only notice it with the alias because your MTA normally
won't deliver two of the identical message? Not sure. Anyway, take
the "c" out and I'll bet your problem will vanish.
* !^X-Loop: xloop(_at_)mydom(_dot_)com
* ^Subject:.*ABCD dead_letter
| formail -k -X "From:" -X "Subject:" \
-I "To: bhopkins, sharon, alan, mark, veronica,
-X "To:" \
-I "X-Loop: xloop(_at_)mydom(_dot_)com" -X "X-Loop:" \
| $SENDMAIL -oi -t
Regarding the external file,
| formail [...] -I "To: `cat file`'
procmail mailing list Procmail homepage: http://www.procmail.org/