I have removed the lurker stuff from my procmail to simplify for
testing. What I want to happen is to forward a copy of any emails that
have a header field that matches a list of domains in a text file. I
want all emails to be delivered to the mbox (and to lurker-index once
this part is resolved). What is happening is that all emails are
currently being forwarded. Any help would be greatly appreciated.
Thanks,
Andy
Here is the .procmailrc:
shell=/bin/bash
MAILDIR=/home/mailarchive
LOGFILE=/home/mailarchive/procmail.log
VERBOSE=on
# :0c #copy for lurker
# | /var/www/bin/lurker-index -c /var/www/lurker.conf -l galactic -m
# Test if the email's sender is listed
:0c
* ? formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
| egrep -is -f forward
{
:0c
!ahester(_at_)galacticmarketing(_dot_)com
:0:
Mailbox
}
:0:
Mailbox
Here is the log from procmail:
procmail: [31907] Fri Feb 10 13:18:52 2006
procmail: Executing " formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
| egrep -is -f forward"
procmail: [31907] Fri Feb 10 13:18:52 2006
procmail: Match on " formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
| egrep -is -f forward"
procmail: Forking "procmail"
procmail: [31911] Fri Feb 10 13:18:52 2006
procmail: Executing
"/usr/sbin/sendmail,-oi,ahester(_at_)galacticmarketing(_dot_)com"
procmail: [31911] Fri Feb 10 13:18:52 2006
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi
ahester(_at_)galacticmarketing(_dot_)com"
procmail: Locking "Mailbox.lock"
procmail: Assigning "LASTFOLDER=Mailbox"
procmail: Opening "Mailbox"
procmail: Acquiring kernel-lock
procmail: Locking "Mailbox.lock"
procmail: Unlocking "Mailbox.lock"
procmail: Notified comsat: "mailarchive(_at_)42057:/home/mailarchive/Mailbox"
From any(_at_)any(_dot_)com Fri Feb 10 13:18:52 2006
Folder:
Mailbox 586
procmail: [31907] Fri Feb 10 13:19:00 2006
procmail: Locking "Mailbox.lock"
procmail: Assigning "LASTFOLDER=Mailbox"
procmail: Opening "Mailbox"
procmail: Acquiring kernel-lock
procmail: Unlocking "Mailbox.lock"
procmail: Notified comsat: "mailarchive(_at_)42643:/home/mailarchive/Mailbox"
From any(_at_)any(_dot_)com Fri Feb 10 13:18:52 2006
Folder:
Mailbox 586
____________________________________________________________
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