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,

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

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 to generate the record and add it in your dns zone file.


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