procmail
[Top] [All Lists]

Re: procmail recipe on cpanel host

2007-07-16 19:08:00
Thank you Bart, Sean and Andrew.

I figured it out with all your help.

So procmail is "not properly configured" on the host system. Since my host does NOT support procmail, I couldn't ask the system administrator to reconfigure it. Instead I figured out, where the inbox queue directory is, and modified my .procmailrc file accordingly. The inbox is "mail/new".

Here is my revised .procmailrc file:
-------------- .procmailrc -------------------
#Set on when debugging
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
VERBOSE=on
MAILDIR=$HOME/mail

# test
:0
* ^Subject:.*testtest2.*
{
  :0 c
  ! user(_at_)xyz(_dot_)net

  :0
  $MAILDIR/new
}
---------------------------------------------
Any further critique of this working .procmailrc file is very much appreciated. Note that I moved the LOGFILE line to be above "VERBOSE=ON"

Here is the Log file

------------------------------log file -------------------
procmail: [20845] Mon Jul 16 19:39:19 2007
procmail: Assigning "MAILDIR=/home/george/mail"
procmail: Match on "^Subject:.*testtest2.*"
procmail: Executing "/usr/sbin/sendmail,-oi,user(_at_)xyz(_dot_)net"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi user(_at_)xyz(_dot_)net"
procmail: Assigning "LASTFOLDER=/home/george/mail/new/msg.u_EG"
procmail: Opening "/home/george/mail/new/msg.u_EG"
procmail: Acquiring kernel-lock
procmail: [20845] Mon Jul 16 19:39:20 2007
procmail: Notified comsat: "george(_at_)0:/home/george/mail/new/msg.u_EG"
Fromsender(_at_)abc(_dot_)net Mon Jul 16 19:39:19 2007
Subject: testtest2
 Folder: /home/george/mail/new/msg.u_EG                   1142
------------------------------------------------------------------
Now I wonder, what is the significance, if any, of the message having the filename "msg.u_EG" ?

Thanks again

gc


Bart Schaefer wrote:
On 7/4/07, George Cordahi <george(_at_)cordahi(_dot_)net> wrote:
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.

According to the log you included, the message *was* delivered to your
inbox -- or, at least, it was delivered to the file
/var/spool/mail/george -- if that is not your inbox, then procmail is
not properly configured on the host system, but "using cpanel" is not
enough information to tell us what the correct configuration should
be.

The message returned to the sender is not an indication of delivery
failure, it's simply an indication that the delivery program produced
non-empty output on standard error during the delivery process.  Move
the LOGFILE=/home/george/.procmail/log assignment to above the
VERBOSE=yes assignment in your .procmailrc so that all the error
output is directed to the file.  The return message will then no
longer be sent.
____________________________________________________________
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


____________________________________________________________
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>