I've got a strange problem.
I'm forwarding a copy of a user's email to gmail.
This seems to be working fine, except when someone
sends something CC: instead of To:, there ends up
being 2 copies of the email in his local INBOX.
One copy is just what you'd epect when you CC
someone- i.e. a copy of the email you sent
out.
The other copy has a To: line containing
the gmail address we're forwarding to, and
the same CC: line as the first copy.
I'm using SunOS 5.8, procmail v3.22, and sendmail 8.12.5, procmail is
invoked from a .forward, email is accessed via IMAP
The procmail file:
more main.rc
:0
* ^TO_(test-online)
| /usr/local/bin/dmail +test-online
:0
* ^TO_(test-support|test-internal)
| /usr/local/bin/dmail +test-support
:0
* ^From:(_dot_)ship(_at_)(_dot_)*(soa\.com)
| /usr/local/bin/dmail +CMS-SHIPMENTS
:0c
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: to_gmail
| (formail -t -I"To:
the(_dot_)traveller(_dot_)in(_dot_)black(_at_)gmail(_dot_)com" \
-A"X-Loop: to_gmail" \
) | $SENDMAIL -t
:0
| /usr/local/bin/dmail
And the relevant sendmail aliases:
aliasadm -l | grep testator
test-online: patrick,testator
test-support: patrick,testator
testator: testator(_at_)bostonserver
Any thoughts greatly appreciated, thanks.
Regards,
--
Patrick Baldwin
Systems Administrator
Studsvik Scandpower, Inc.
1087 Beacon St.
Newton, MA 02459
1-617-965-7455
____________________________________________________________
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