LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I set an auto-reply limit for Postfix? (http://www.linuxquestions.org/questions/linux-newbie-8/can-i-set-an-auto-reply-limit-for-postfix-886949/)

jsp_1983 06-17-2011 04:52 PM

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?

brasshopper 06-17-2011 09:50 PM

Quote:

Originally Posted by jsp_1983 (Post 4388897)
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?

Hmmm. It would have helped if you had actually told us how you set up auto-reply. Most users are simply not knowledgable enough about all the ramifications of auto-reply to set it up themselves. Some things you should do:

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 08:26 PM.