procmail
[Top] [All Lists]

Re: procmail recipe on cpanel host

2007-07-25 20:03:30
Bart, and friends

Bart, everything you have recommended so far worked. Thank you Sir.

May I ask for your indulgence a little bit more:

This is a variation on my original question:

My host administrator told me to change my cpanel setup slightly. I was 
previously using the default email address based on my login to cpanel, 
and had not created an explicit email.  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:

Now, instead of the messages being delivered to
mail/new/

Messages are delivered to
mail/cordahi.net/george/new


Accordingly, I changed the recipe in .procmailrc from delivery to mail/  
to delivery to mail/cordahi.net/george/
  
MAILDIR (still) equals $HOME

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 an error message is generated to the sender and it 
contains 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/newloginname"
---------------------------------------------------------------

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

# 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: [12124] Mon Jul 23 00:54:17 2007
procmail: Assigning "MAILDIR=/home/newloginname"
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=mail/cordahi.net/george/new/1185166457.12124_2.tau.genwebserver.com"
procmail: Notified comsat: 
"newloginname(_at_)0:/home/newloginname/mail/cordahi.net/george/new/1185166457.12124_2.tau.genwebserver.com"
From sender(_at_)abc(_dot_)net Mon Jul 23 00:54:17 2007
 Subject: testtest2
  Folder: mail/cordahi.net/george/new/1185166457.12124_2.tau.genwebser     1081

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

So, what went wrong, and how do I fix 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>