Vacation sends autoreply message to the recipient as well
Posted
by
elitalon
on Server Fault
See other posts from Server Fault
or by elitalon
Published on 2011-02-28T12:32:41Z
Indexed on
2011/02/28
23:26 UTC
Read the original article
Hit count: 307
Hi,
I have configured my Postfix server with vacation for a domain. Sending a message to [email protected]
causes two events:
- The message is delivered to the recipient (
[email protected]
) - An auto-reply message is sent to the sender, alerting that
[email protected]
should be used instead.
Everything works well except for one particular drawback: the auto-reply is also sent to the recipient, so it receives two messages in the end.
What can I do to avoid that? I'm only using the $TO
variable in the custom vacation.msg
message. And here is Postfix's master.cf
vacation line:
autoreply unix - n n - - pipe
flags=Rhu user=vacation argv=/usr/bin/vacation -j -m /home/vacation/.vacation.msg -f /home/vacation/.vacation.db vacation
I know using the -j
is a little bit risky according to man page, but I'm kind of testing here.
© Server Fault or respective owner