Hi,
I have installed cyrus IMAP server. I have set sendmail to use
procmail as the local Mailer. Procmail should delivered the mail using
cyrus. The configuration in sendmail.cf is:
/ Mlocal, Path=/usr/bin/procmail, Flags=lsDFMAw5:/|@qSPfhn9:/|wA9q,
Sender=10, Recipient=20, Argv=procmail -t -Y
CYRUSUSER=$u -m /etc/procmailrc/
The file procmailrc contains:
/ # File: procmail.global
PATH=/usr/bin:/usr/local/bin:/usr/cyrus/bin
SHELL=/bin/sh
DELIVER=/usr/local/cyrus/bin/deliver
SPAM=/dev/null
VERBOSE=on
LOGABSTRACT=yes
LOGFILE=/var/log/procmail.log
COMSAT=no
# Make a backup copy of all incoming mail (comment the next entry
# out once you're finished testing procmail integration)
#:0 ic
#| $DELIVER -e -a $CYRUSUSER -m user.$CYRUSUSER.backup
# Execute CYRUSUSER's personal rules
#INCLUDERC=/var/imap/procmail/user/procmail.$CYRUSUSER
[The user's procmail rules are included (via the INCLUDERC statement
above)
and executed here. Rules after this point resume after the user's personal
rules have been executed.]
# Example recipes
# If the "To:" line doesn't exist, it's SPAM
:0:$CYRUSUSER.lock
* !^To:
| $SPAM
# Get rid of SPAM from a specific email address
#:0:$CYRUSUSER.lock
#* ^To:(_dot_)*makemoneyfast(_at_)aol(_dot_)com
#| $SPAM
# All the mail that falls through to this point
# will be delivered into the user's INBOX
:0:$CYRUSUSER.lock
| $DELIVER -e -a $CYRUSUSER -m user.$CYRUSUSER/
To test procmail I send a mail from sylvain_lemasson(_at_)yahoo(_dot_)fr to
slemasson(_at_)mydomain(_dot_)net which have an account on cyrus. Procmail do
not
send the mail to slemasson but to root. The logs are:
/ procmail: Assigning "LASTFOLDER=/usr/local/cyrus/bin/deliver -e -a
slemasson -m user.slemasson"
procmail: Unlocking "slemasson.lock"
procmail: Locking "/var/mail/root.lock"
procmail: Assigning "LASTFOLDER=/var/mail/root"
procmail: Opening "/var/mail/root"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/root.lock"
From sylvain_lemasson(_at_)yahoo(_dot_)fr Mon Apr 2 21:55:04 2007
Subject: Re : test adresse SMTP
Folder: /var/mail/root
3246/
Can someone can explain me what does wrong and how to fix the issue?
Thank you
____________________________________________________________
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