Categories
Linux mail

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

Categories
Linux mail

Add SPF for validation to mail server

It is good to have spf implemented to make the recepient mail servers trust your entity.

Use the spf wizard http://old.openspf.org/wizard.html to generate the record and add it in your dns zone file.

./arun

Categories
Linux mail

Cleanup mailman held messages

It will work usually with
$ cd /usr/lib/mailman
$ bin/discard /var/lib/mailman/data/heldmsg--*

If the list is too long
$ cd /var/lib/mailman
$ find data -name heldmsg--\* -print | xargs /usr/bin/discard