What is wrong with using mailbot for vacation messages?
I have a .mailfilter file which contains:
`test -f vacation.msg && exit 1 || exit 0`
if ($RETURNCODE==1)
{
if (!/^List-Unsubscribe:.*/:h )
{
cc "| mailbot -d vacation.db -D 1 -t vacation.msg -A
'From: rol...@mydomain.com' /usr/sbin/sendmail -f ''"
}
}
If you set the -D to something really high like 365, then for all useful
purposes, the sender will only recieve one vacation reply.
Mailbot does not autoreply to mailing lists which comply with the
"Precedence: bulk" or "Precedence: junk" headers.
I added an extra rule which searches for "List-Unsubscribe" headers also.
The script above is actually being used in a all-virtual user/domain setup.
Users enable/disable/edit their vacation message through a squirrelmail
module.
~Rolan
Security Team wrote:
On 9/6/04 1:34 PM, "Tony Earnshaw" <ton...@billy.demon.nl> wrote:
You should *not* be using mailbot for vacation messages. You are
crapping up my auto-delete everything from .hu X-MAILBOT folder.
Long after it got rejected by RBL and greylists.
--Tonni
Tonni:
Brings up a good point.
What is the "most correct" or "best" way to generate vacation messages?
I've always wanted to implement this functionality. But the way I would
want to do it is to have an incoming message to a user get replied to once
and only once. And of course, not respond to mailing lists with the
vacation message.