1 message in net.sourceforge.lists.courier-maildrop[maildropl] modifying HOST as needed?
FromSent OnAttachments
Benjamin TomhaveMay 20, 2003 2:08 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] modifying HOST as needed?Actions...
From:Benjamin Tomhave (btom@sofast.net)
Date:May 20, 2003 2:08:45 pm
List:net.sourceforge.lists.courier-maildrop

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