Plesk

Postfix keeps stopping, preventing the sending of mail

Symptoms

Cause

Mail server overloaded and switched to
stress
mode. Postfix version 2.5 introduces automatic stress-adaptive behaviour. When a "public" network service such as the SMTP server runs into an "all server ports are busy" condition, the Postfix master daemon logs a warning, restarts the service (without interrupting existing network sessions), and runs the service with "
-o stress=yes
" on the server process command line.

Resolution

Check whether someone is trying to make a brute-force attack:

# grep -w "connect from" /var/log/maillog | awk -F"[" '{print$3}' | awk -F"]" '{print$1}' |sort -n |uniq -c |sort -nr | head -25
1410 203.0.113.2 

# grep 203.0.113.2 /var/log/maillog | grep "authentication failure" | wc -l
1648

In this case install fail2ban (Plesk > Tools & Settings > Updates and Upgrades) and configure it according to documentation or block IP's in firewall.

If there is no brute-force attack increase default_process_limit
 in  /etc/postfix/main.cf
 and fine tune other performance/stress related configuration settings in postfix by following stress configuration directives explanations described in "Postfix Stress-Dependent Configuration"

Exit mobile version