procmail
[Top] [All Lists]

Re: procmail w/ cyrus 'deliver' does not return mail if mailbox doesn't exist

1999-06-23 09:27:15
My "procmail.common" looks something like this at the end:

:0w
| $DELIVERMAIL -a $LOGNAME -m user.$LOGNAME

:0 e
{
        EXITCODE=$?
        HOST
}

You have to catch the error and return it to the host.

Jan Baumann <jan(_at_)cyberways(_dot_)net> writes:

Hi procmail experts,

I am quite new to procmail and have set up sendmail and cyrus with the cyrus
mailer delivering to procmail, which is pipeing the mail to cyrus' deliver for
recipe-dependant delivery to different imap user folders.

The recipes work, but the setup drops mail to nowhere if the recipient user 
has
no cyrus mailbox without bouncing it back to the sender as expected.

Is there a way to generate the usual "user unknown" messages?


Thanks and best regards,

Jan Baumann

-----

sendmail.cf:

Mcyrus,         P=/usr/local/bin/procmail, F=lsDFMnPqA5@/:|, S=10, R=20/40, 
T=X-Unix,
                U=cyrus:mail,
                A=procmail -p /home/cyrus/procmail.common CYUSER=$u


procmail.common:

PATH=/usr/local/bin:/usr/bin:/bin
SHELL=/bin/sh
LOGFILE=/home/cyrus/procmail.log
DELIVER=/usr/local/bin/deliver

[...specifiy recipies for different folders...]

:0:$CYUSER.lock
| $DELIVER -e -a $CYUSER -m user.$CYUSER


Mail to test(_at_)domain(_dot_)de with domain.de in sendmail.cw gives me:

sendmail Log:
Jun 23 11:23:41 imap sendmail[255]: LAA00253: to=<test(_at_)domain(_dot_)de>,
delay=00:00:01, xdelay=00:00:00, mailer=cyrus, stat=Sent

procmail.log:
user.test: Mailbox does not exist ^M


and the mail is gone... :-(


-- 
Rupa (rupa(_at_)rupa(_dot_)com for normal email)
Please don't email duplicate replies.

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