Hello,
I have a situation which may or may not be unique. Right now, due to
mergers/acquisitions, I have 3 domains aliased to my primary domain. This
delivers the mail just fine, but it also causes mail addressed to an alias
to by-pass user prefs for SpamAssassin that are setup for the primary
domain. What I would like to do is something along the following (this is a
snippit):
SHELL="/bin/bash"
import EXT
import HOST
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
CHKHOST="$HOST"
if ( "$CHKHOST" == "aliasdomain1.com" )
{
CHKHOST="realdomain.com"
}
if ( "$CHKHOST" == "aliasdomain2.com" )
{
CHKHOST="realdomain.com"
}
if ( "$CHKHOST" == "aliasdomain3.com" )
{
CHKHOST="realdomain.com"
}
if ( $SIZE < 262144 )
{
xfilter "/usr/bin/spamc -f -u $EXT@$CHKHOST"
}
I tried implementing the mailfilter rule just like this and it resulted in
all deliveries being deferred. What I'm wondering is if I have quotes in
the wrong place, or if I should be doing some other kind of check?
Thank you,
-ben