To configure autoreponder for some address with postfix.
Edit the postfix virtual configuration:
Add –
email_address recepient_lists, email_address@autoreply.nic.net.sa
eg: wordpress@example.com recepient1@example.com, wordpress@google.com@autoreply.example.com
Edit the transport configuration:
Add –
autoreply.domain.com autoreply:
eg: autoreply.example.com autoreply:
Create pipe for the transponder in master.cf
autoreply unix – n n – – pipe
flags= user=nobody argv=/usr/local/bin/autoreply $sender $recipient
Created autoreply script at /usr/local/bin/autoreply
eg:
/usr/sbin/sendmail -oi -t << EOF
From: nobody@example.com
To: $1
Subject: Auto Response from example.com
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