HI,

This is a problem with 5.2.1 (Stable)

I have seen some exitcode changes in Changelog in some devel versions, but I 
am not sure how they behave quite yet.

Quoting Mailing Lists <[EMAIL PROTECTED]>:

> Hy guys, I filter my messages through maildrop.
> The problem is that I want to bounce "no_such_user" messages back to
> sender using vdelivermal.
> 
> So I put a line 
> 
> to "|/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
> 
> in my maildrop filter script, but no message is bounced!
> 

[...]

> VHOME=/home/vpopmail/domains/$HOST/$EXT
> VPOP="|/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
> `test -d $VHOME/Maildir`
> if ( $RETURNCODE = 1 )
>    {
>       to $VPOP
>       exit
>    } 

Try this "if block" instead:

`test -d $VHOME/Maildir`
if ( $RETURNCODE == 1 )
{
   echo "Sorry, no mailbox here by that name. (#5.1.1)"
   EXITCODE=100
   exit
}

Hope this helps..

Respectfully,
Tim Hasson

Reply via email to