• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question Postfix totalize per ip connect

If I correctly understood your task, you can try to do it with

# grep postfix /var/log/maillog | grep -o 'connect from unknown' | wc -l
 
I haven't production server with mail. I think you can adapt my example for your case.
Code:
[root@server log]# grep postfix /var/log/maillog | grep ' connect'
Nov  2 07:13:26 server postfix/smtpd[2194]: connect from localhost[::1]
[root@server log]# grep postfix /var/log/maillog | grep ' connect' | awk '{ print $8 }' | uniq -c | sort -n
      1 localhost[::1]
 
Back
Top