Jonathan Viney <mailto:[EMAIL PROTECTED]> wrote on 01 October 2003 13:43: > 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" > } > }
On my system (5.3.20), valias can return several aliases, particularly for ezmlm mailing lists, e.g.: [EMAIL PROTECTED] -> |/usr/bin/ezmlm-reject '/home/vpopmail/domains/robinbowes.com/acoustics' [EMAIL PROTECTED] -> |/usr/bin/ezmlm-issubn '/home/vpopmail/domains/robinbowes.com/acoustics' '/home/vpopmail/domains/robinbowes.com/acoustics/digest' '/home/vpopmail/domains/robin [EMAIL PROTECTED] -> bowes.com/acoustics/allow' '/home/vpopmail/domains/robinbowes.com/acoustics/mod' || { echo "Sorry, only subscribers may post. If you are a subscriber, please f [EMAIL PROTECTED] -> orward this message to [EMAIL PROTECTED] m to get your new address included (#5.7.2)"; exit 100 ; } [EMAIL PROTECTED] -> |/usr/bin/ezmlm-send '/home/vpopmail/domains/robinbowes.com/acoustics' [EMAIL PROTECTED] -> |/usr/bin/ezmlm-warn '/home/vpopmail/domains/robinbowes.com/acoustics' || exit 0 lrwxrwxrwx 1 vpopmail vchkpw 54 Aug 12 2002 .qmail-acoustics -> /home/vpopmail/domains/robinbowes.com/acoustics/editor lrwxrwxrwx 1 vpopmail vchkpw 55 Aug 12 2002 .qmail-acoustics-default -> /home/vpopmail/domains/robinbowes.com/acoustics/manager lrwxrwxrwx 1 vpopmail vchkpw 53 Aug 12 2002 .qmail-acoustics-owner -> /home/vpopmail/domains/robinbowes.com/acoustics/owner lrwxrwxrwx 1 vpopmail vchkpw 55 Aug 12 2002 .qmail-acoustics-return-default -> /home/vpopmail/domains/robinbowes.com/acoustics/bouncer This will most likely cause problems with your script. R. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.522 / Virus Database: 320 - Release Date: 29/09/2003