• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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