Can I set an auto-reply limit for Postfix?
I've just found that one of my email addresses with an auto-reply gets stuck in a loop when it receives email from senders who also have an auto-reply set up.
Is there an easy way for me to set Postfix so that it only sends one auto-reply email or so that it only sends a maximum of 1 auto-reply message per day to the sender?
If you are not specifically mentioned in the to: line or cc: line, do not auto-reply. This should also stop you from auto-replying to mailing lists.
You need to keep a hash so that you do not auto-reply more than once to the same place...and so on.
You should not reply to precedence junk or bulk.
You should not reply to mail from well known mailer daemons.
There is a program that comes with the system called "vacation" that does all of this stuff. Back when I was a sysadmin I would tell my users that attempting to write their own "vacation" program would result in being smacked with raw, smelly trout.
I also had a script that checked .forward files for non-standard programs. If I found one, I would see if it should be replaced with vacation.
The most important part of vacation is the database file and the ability to reply to a particular sender only once - so that it broke the daemon-autoresponder loop.
|All times are GMT -5. The time now is 07:20 AM.|