-1

I have a mail server with Postfix and Dovecot installed and I've noticed it endlessly tries to send out malformed emails with misspelled address. For example if I type to: [email protected] (misspelled outlook.com) it will keep trying to send this letter with 30-40 minute intervals getting "connection timed out" every time. How do I disable this behavior and limit the number of attempts?

2
  • man postconf will tell you which config files you can use to affect the behaviour of Postfix.
    – Jenny D
    Nov 18, 2014 at 15:00
  • 1
    If the domain you typed has an A record out there, that's enough for it to try until its internal timeout is reached. Have a look at this, if you're interested in how it decides that: postfix.org/TUNING_README.html#hammer
    – NickW
    Nov 18, 2014 at 15:01

1 Answer 1

2

You can change how long messages stay in the postfix queue before being dropped by setting

maximal_queue_lifetime = Xd

in /etc/postfix/main.cf

You might want to check also minimal_backoff_time and maximal_backoff_time which are the minimum and maximal amount of time a message won't be looked at after a delivery failure.

For other values that might be of use to you check the documentation of postfix, there are plenty...

Not the answer you're looking for? Browse other questions tagged .