• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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