F Fabio_Hansen New Pleskian Nov 1, 2017 #1 Hi I needed to totalize by ip trying to connect in my postfix (connect from 'ip / host'). Can you help me?
Hi I needed to totalize by ip trying to connect in my postfix (connect from 'ip / host'). Can you help me?
IgorG Plesk addicted! Plesk Certified Professional Nov 1, 2017 #2 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
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
AYamshanov Golden Pleskian Staff member Nov 1, 2017 #3 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]
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]