EFW Support

Support => EFW SMTP, HTTP, SIP, FTP Proxy Support => Topic started by: glynd on Thursday 03 December 2009, 12:16:16 am



Title: Filtering smtp proxy logs
Post by: glynd on Thursday 03 December 2009, 12:16:16 am
Is there an easy way to filter out the lines:
2009-12-02 15:12:40
postfix/smtpd[11064]: connect from localhost.localhost[127.0.0.1]
2009-12-02 15:14:48
postfix/smtpd[11064]: disconnect from localhost.localhost[127.0.0.1]
So I can see actual traffic only?
TIA
Glyn


Title: Re: Filtering smtp proxy logs
Post by: gyp_the_cat on Thursday 03 December 2009, 10:15:49 pm
From the command line you can run:

Quote
more /var/log/mail.log | grep [^localhost]

Or if you want to do it in realy time:

Quote
tail -f /var/log/mail.log | grep [^localhost]