procmail
[Top] [All Lists]

procmail recipe on cpanel host

2007-07-04 21:13:08
Hello procmail experts:

I have been trying to set up procmail on a host (axishost.com)  running 
cpanel (Build 10.9.0) to do the following:

1. Match the subject header of an incoming message against a string, say 
"testtest2"
2. If matched, forward a copy to user(_at_)xyz(_dot_)net, and keep the original 
message in my inbox.

So, this is what happens:
a. The matching works,
b. The message is correctly forwarded to user(_at_)xyz(_dot_)net

but,

c. The message is NOT delivered to my inbox. A "Mail delivery failed: 
returning message to sender" message is returned  to the sender by the 
"Mailer-Daemon" of my host's server.

I am including below,

A. Extract from the returned message:
B. The content of my .procmailrc file.
C. The log file saved on the host.

I would appreciate any help in getting this script to work.

Thank You

George Cordahi


-------------------------------------------------------------------------
A. Extract from the returned message:
.........................................................................
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/usr/bin/procmail
    generated by george(_at_)cordahi(_dot_)net

The following text was generated during the delivery attempt:

------ pipe to |/usr/bin/procmail
       generated by george(_at_)cordahi(_dot_)net ------

procmail: [25204] Wed Jul  4 12:30:38 2007
procmail: Assigning "MAILDIR=/home/george/mail"
procmail: Assigning "PMDIR=/home/george/.procmail"
procmail: Assigning "LOGFILE=/home/george/.procmail/log"
procmail: Opening "/home/george/.procmail/log"

------ This is a copy of the message, including all the headers. ------
(message deleted)
=========================================================================

-------------------------------------------------------------------------
B. The content of my .procmailrc file.
.........................................................................
#Set on when debugging
VERBOSE=on
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
# test
:0 c:
# Also tried:
#:0 c
#:0:c
* ^Subject:.*testtest2.*
! user(_at_)xyz(_dot_)net
==========================================================================


--------------------------------------------------------------------------
C. The log file saved on the host.
..........................................................................

procmail: Match on "^Subject:.*testtest2.*"
procmail: Couldn't determine implicit lockfile from "/usr/sbin/sendmail"
procmail: Locking ".lock"
procmail: Executing "/usr/sbin/sendmail,-oi,user(_at_)xyz(_dot_)net"
procmail: [25204] Wed Jul  4 12:30:39 2007
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi user(_at_)xyz(_dot_)net"
procmail: Unlocking ".lock"
procmail: Bypassed locking "/var/spool/mail/george.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/george"
procmail: Opening "/var/spool/mail/george"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "george(_at_)233937:/var/spool/mail/george"
 From sender(_at_)abc(_dot_)net Wed Jul 04 12:30:38 2007
 Subject: testtest2
  Folder: /var/spool/mail/george                        658
==========================================================================
____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>