logo       

Re: Autoresponder to directly addressed mail only?: msg#00022

mail.maildrop

Subject: Re: Autoresponder to directly addressed mail only?

Paul Dlug writes:

I'm currently implementing vacation messages using mailbot, my global maildroprc file looks for a vacation.txt file in the users virtual home directory and executes the following command:

`test -f $CONTROLDIR/vacation.txt`
if ($RETURNCODE==0)
{
cc "| /usr/local/bin/mailbot -t $CONTROLDIR/vacation.txt -d $CONTROLDIR/vacation.db -A "From: $USER@xxxxxxxxxxxx" /usr/local/sbin/sendmail -t -f $USER"
}

My problem is that this is replying to mail that is not just addressed to the user but addressed to mailing lists as well. Does mailbot have a way to do this or I assume I can add a rule in maildroprc to ensure that this is only executed if the address of the user is in the recipient list. But how?

Let mailbot do all the work. See mailbot's -r option.


Attachment: pgpJF4SAtPhJA.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise