Wednesday, 28 October 2009

auto responder with postfix/virtual

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

2 comments:

  1. Hey, great blog...but I don’t understand how to add your site in my rss reader. Can you Help me, please :)



    -Robert Shumake Fifth Third

    ReplyDelete
  2. Try by adding the rss urls to your reader:
    http://arunnsblog.com/feed/atom/
    or
    http://arunnsblog.com/feed/atom/
    ./arun

    ReplyDelete