Has anyone else noticed that Postfix generates "SMTP connection attempt and disconnection from localhost" logs every 10 seconds? @Adam confirmed that this is happening because the Enhance is constantly checking Postfix's status.
The issue I’m facing is that the postfix.log
file is growing rapidly in size because of these repetitive logs, and by default, it’s not set to rotate. This is making it difficult to manage, and worse, these entries make it hard to locate meaningful logs in the clutter.
I’ve tried to stop Postfix from logging these specific entries in /var/log/postfix.log
, but I haven’t been successful. Here’s a snippet of the logs I’m seeing:
Sep 20 07:41:28 mx postfix/smtpd[247305]: connect from localhost[127.0.0.1]
Sep 20 07:41:28 mx postfix/smtpd[247305]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:41:28 mx postfix/smtpd[247305]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:41:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:41:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:41:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:41:48 mx postfix/smtpd[247305]: connect from localhost[127.0.0.1]
Sep 20 07:41:48 mx postfix/smtpd[247305]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:41:48 mx postfix/smtpd[247305]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:41:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:41:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:41:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:42:08 mx postfix/smtpd[247305]: connect from localhost[127.0.0.1]
Sep 20 07:42:08 mx postfix/smtpd[247305]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:42:08 mx postfix/smtpd[247305]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:42:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:42:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:42:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:42:28 mx postfix/smtpd[247305]: connect from localhost[127.0.0.1]
Sep 20 07:42:28 mx postfix/smtpd[247305]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:42:28 mx postfix/smtpd[247305]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:42:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:42:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:42:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:42:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:42:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:42:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:42:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:42:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:42:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:43:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:43:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:43:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:43:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:43:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:43:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:43:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:43:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:43:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:43:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:43:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:43:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:43:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:43:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:43:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:43:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:43:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:43:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:44:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:44:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:44:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:44:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:44:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:44:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:44:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:44:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:44:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:44:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:44:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:44:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:44:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:44:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:44:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:44:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:44:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:44:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:45:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:45:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:45:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:45:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:45:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:45:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:45:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:45:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:45:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:45:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:45:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:45:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:45:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:45:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:45:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:45:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:45:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:45:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:46:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:46:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:46:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:46:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:46:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:46:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:46:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:46:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:46:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:46:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:46:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:46:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:46:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:46:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:46:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:46:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:46:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:46:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:47:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:47:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:47:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:47:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:47:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:47:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:47:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:47:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:47:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:47:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:47:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:47:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:47:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:47:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:47:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:47:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:47:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:47:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:48:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:48:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:48:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:48:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:48:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:48:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:48:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:48:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:48:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:48:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:48:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:48:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:48:43 mx postfix/anvil[247635]: statistics: max connection rate 4/60s for (smtp:89.190.156.156) at Sep 20 07:41:21
Sep 20 07:48:43 mx postfix/anvil[247635]: statistics: max connection count 1 for (smtp:89.190.156.156) at Sep 20 07:41:16
Sep 20 07:48:43 mx postfix/anvil[247635]: statistics: max cache size 1 at Sep 20 07:41:16
Sep 20 07:48:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:48:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:48:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:48:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:48:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:48:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:49:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:49:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:49:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:49:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:49:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:49:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:49:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:49:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:49:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:49:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:49:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:49:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:49:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:49:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:49:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:49:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:49:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:49:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:50:08 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:50:08 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:50:08 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:50:18 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:50:18 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:50:18 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:50:28 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:50:28 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:50:28 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:50:38 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:50:38 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:50:38 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:50:48 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:50:48 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:50:48 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Sep 20 07:50:58 mx postfix/smtpd[249106]: connect from localhost[127.0.0.1]
Sep 20 07:50:58 mx postfix/smtpd[249106]: lost connection after CONNECT from localhost[127.0.0.1]
Sep 20 07:50:58 mx postfix/smtpd[249106]: disconnect from localhost[127.0.0.1] commands=0/0
Is there any way to either suppress these specific log entries or configure Postfix to prevent them from being generated so frequently? Any help or suggestions would be appreciated!
@Aliysa_Enhance , it would be very helpful if Enhance excluded these 'localhost connection and disconnection' logs from being written to the postfix.log
file. This would greatly improve log management and clarity.
Thank you.