auto responder with postfix/virtual

To configure autoreponder for some address with postfix.

Edit the postfix virtual configuration:
Add –
email_address recepient_lists,

Edit the transport configuration:
Add – autoreply:
eg: autoreply:

Create pipe for the transponder in

autoreply unix – n n – – pipe
flags= user=nobody argv=/usr/local/bin/autoreply $sender $recipient

Created autoreply script at /usr/local/bin/autoreply

/usr/sbin/sendmail -oi -t << EOF From: To: $1 Subject: Auto Response from Content-Type: text/plain; charset=utf-8 This is an autoreponder email. EOF

There is other better way to do it with procmail and other tools, depends on your mail server setup

2 thoughts on “auto responder with postfix/virtual”

Leave a Reply

Your email address will not be published. Required fields are marked *