Vacation sends autoreply message to the recipient as well
- by elitalon
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.