procmail
[Top] [All Lists]

procmail recipe on cpanel host - Part 2

2007-07-27 18:59:57
Bart, and friends

May I ask for your indulgence a little bit more:

I am reposting the message at 
http://www.xray.mpe.mpg.de/mailing-lists/procmail/2007-07/msg00089.html 
as a new thread, with a few modifications.

My hosts administrator told me to change my cpanel setup slightly. I was
previously using an email address based on my cpanel login,
and had not created an explicit email address.  I now login with a new 
user name, I have explicitly created a george(_at_)cordahi(_dot_)net email 
address, 
and as a result the mail directory for "george(_at_)cordahi(_dot_)net" is 
further 
down the directory tree:


Accordingly, I changed lines in the .procmailrc file as follows:

MAILDIR =$HOME/mail/cordahi.net/george

and delivery is made to

$MAILDIR/


Now this is what happens:

Messages are properly delivered to the new george(_at_)cordahi(_dot_)net 
directory
and forwarded to user(_at_)xyz(_dot_)net,

but once again a message is generated to the sender containing the 
following:
-------------------------------------------------------------------------------------

The following text was generated during the delivery attempt:

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

procmail: Couldn't create "/var/spool/mail/gcordahi"

---------------------------------------------------------------

The revised .procmailrc file looks like this:
---------------------------------------------------------------
#Set on when debugging
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
VERBOSE=on
MAILDIR=$HOME/mail/cordahi.net/george

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

   :0
    $MAILDIR/
#   mail/cordahi.net/george/
}

-------------------------------------------------------------------

And this is the log file generated:


procmail: [12087] Fri Jul 27 19:20:24 2007
procmail: Assigning "MAILDIR=/home/gcordahi/mail/cordahi.net/george"
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: [12087] Fri Jul 27 19:20:25 2007
procmail: Assigning 
"LASTFOLDER=/home/gcordahi/mail/cordahi.net/george/new/1185578424.12087_2.tau.genwebserver.com"
procmail: Notified comsat: 
"gcordahi(_at_)0:/home/gcordahi/mail/cordahi.net/george/new/1185578424.12087_2.tau.genwebserver.com"
 From sender(_at_)abc(_dot_)net Fri Jul 27 19:20:24 2007
  Subject: testtest2
   Folder: /home/gcordahi/mail/cordahi.net/george/new/1185578424.12087_ 
    1084


---------------------------------------------------------------------------------------

So, why is the "Mail delivery failed: returning message to sender" 
generated, and how can I prevent it.

Thanks.

gc


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