procmail
[Top] [All Lists]

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

1999-06-24 01:17:59
Message-ID: 
<EXECMAIL(_dot_)990624090715(_dot_)A(_at_)rjh1(_dot_)bris(_dot_)ac(_dot_)uk>
Priority: NORMAL
X-Mailer: Execmail for Win32 Version 5.0.1 Build (55)
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"



You should be able to get this to work by adding the "w" flag to your 
mailer definition.

(You might also want to consider, seriously, adding the "o" flag)

Cheers...

On 23 Jun 1999 07:01:05 -0700 "Rupa Schomaker (list)" 
<rupa-list(_at_)rupa(_dot_)com> 
wrote:

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.


Richard Hopkins,
Computing Service,
University of Bristol,
Bristol, BS8 1UD, UK

Tel +44 117 928 7859
Fax +44 117 929 1576

RFC-822: Richard(_dot_)Hopkins(_at_)bristol(_dot_)ac(_dot_)uk

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