Hi,

> What if valias exited with -1 if it's an invalid alias?  I just changed  
> it to do so in the CVS repository, and it will be in 5.3.28.
> 

Cheers, most appreciated :).

I am still wondering about the catchall stuff though. If I can check
valias as well then I could use something like:

VPOP="| ~vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`~vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
if ($RETURNCODE != 0) {
        VALIAS=`~vpopmail/bin/valias -s [EMAIL PROTECTED]
        if ($RETURNCODE != 0) {
                VDOMHOME=`~vpopmail/bin/vdominfo -d $HOST`
                exception {
                        # this .catchall file could have the line 
                        # to "! <catchall>"
                        include "$VDOMHOME/.catchall"
                }
                # if the .catchall file didn't exist then bounce with
                # vdelivermail so msg includes bounce details
                to "$VPOP"
        }
}

I'll have a play around and try to get this working tomorrow.

This does seem odd to me though.., none of the maildrop scripts I have
seen seem to deal with aliases!

Thanks,

Jonathan



Reply via email to