Hi guys,

I currently have two gateways which accept mail for local domains and
process any aliases using virtual_alias_maps. Local addresses are
relayed to our backend mail servers and remote address relayed out to
their MXs.

The backend servers just accept mail and deliver it as all the
alias/relay checks are done on the gateways.
The problem I have is that the backend servers use maildrop to handle
vacation messages with this chunk of code:
#emulate vacation.msg behaviour
`test -e $HOME/vacation.msg && exit 1 || exit 0`
if ( $RETURNCODE == 1 )
{
        if( ( !/^.*List-Unsubscribe:.*/ ) && ( !/^.*X-Spam-Flag: YES/) )
        {
                MATCH=tolower($5)
                SUBJ=`cat $HOME/vacation.sub`
                cc "| mailbot -t $HOME/vacation.msg -d
$HOME/vacation.lst -D 1 -A 'From: $...@$1' -s '$SUBJ' /usr/sbin/sendmail
-t -f '$...@$1'"
        }
}

This works fine if the message came from a remote address or a virtual
account which obviously exists on the backend server, but if it came
from an local alias it gets bounced since the alias is an unknown
user.

Is there some way to get sendmail to use an alternate config file?
I've tried the -C option with a main.cf that includes the
virtual_alias_maps but had no success. Is there a reasonable way to
implement the vacation stuff on the gateways or some other solution
that I'm missing?

Thanks
Guy

-- 
Don't just do something...sit there!

Reply via email to