Re: email tracking from postfix log file

2012-02-11 Thread Noel Jones
(perpetuating the useless use of cat and the hopelessly muddled top posting) cat /var/log/maillog | egrep -i 'from=.*@yahoo\.com.*to=' -- Noel Jones On 2/11/2012 1:42 AM, kshitij mali wrote: hi Ralf , Thanks for help me . with the below expression its is showing me the logs for both

Re: email tracking from postfix log file

2012-02-10 Thread kshitij mali
hi Ralf , Thanks for help me . with the below expression its is showing me the logs for both from= and to= logs what i wanted was only match the expression from each like only from=anythingh...@gmail.com lines i know this will be tricky i m to trying to solve this expression if u can then pls

Re: email tracking from postfix log file

2012-02-09 Thread kshitij mali
Hi , how to trace email from particular domain i want to trace all log from yahoo.com cat /var/log/maillog | egrep -i 'from=*@yahoo.com' the above commad is not working properly pls some help me with regular expression Regards kshitij On Wed, Jun 1, 2011 at 6:07 PM, Duane Hill

Re: email tracking from postfix log file

2012-02-09 Thread Ralf Hildebrandt
* kshitij mali foreplay...@gmail.com: Hi , how to trace email from particular domain i want to trace all log from yahoo.com cat /var/log/maillog | egrep -i 'from=*@yahoo.com' cat /var/log/maillog | egrep -i 'from=.*@yahoo\.com' -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung

Re: email tracking from postfix log file

2012-02-09 Thread Tom Kinghorn
On 10/02/2012 09:28, Ralf Hildebrandt wrote: * kshitij maliforeplay...@gmail.com: cat /var/log/maillog | egrep -i 'from=.*@yahoo\.com' Why waste processing cycles, just use egrep instead of using cat first. egrep -i 'from=.*@yahoo\.com' /var/log/maillog

Re: email tracking from postfix log file

2012-02-09 Thread Ralf Hildebrandt
* Tom Kinghorn thomas.kingh...@gmail.com: On 10/02/2012 09:28, Ralf Hildebrandt wrote: * kshitij maliforeplay...@gmail.com: cat /var/log/maillog | egrep -i 'from=.*@yahoo\.com' Why waste processing cycles, just use egrep instead of using cat first. egrep -i 'from=.*@yahoo\.com'

email tracking from postfix log file

2011-06-01 Thread kshitij mali
I want to list email send to the domain gmail.com how to achive it cat /var/log/maillog | grep -i cleanup | egrep 'to=*@gmail.com' where * = all user of gmail.com domain i think is the above reular expression is correct ? Please help i want the count for how mail email are sent to

Re: email tracking from postfix log file

2011-06-01 Thread Ralf Hildebrandt
* kshitij mali foreplay...@gmail.com: I want to list email send to the domain gmail.com how to achive it cat /var/log/maillog | grep -i cleanup | egrep 'to=*@gmail.com' where * = all user of gmail.com domain i think is the above reular expression is correct ? No. egrep

Re: email tracking from postfix log file

2011-06-01 Thread kshitij mali
Thank u ralf Can u please give me link for learn regular experssion all alway get complex reqirement to track the postfix log more oftenly which will help me . for example 1. how many email got dilver from one intenal user for certain domain in last 5 hrs 2. how many email got

Re: email tracking from postfix log file

2011-06-01 Thread Ralf Hildebrandt
* kshitij mali foreplay...@gmail.com: Thank u ralf Can u please give me link for learn regular experssion The best book is: http://oreilly.com/catalog/9780596002893 (IMHO of course) -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin

Re: email tracking from postfix log file

2011-06-01 Thread postfix
As perl contains the most complete regular expression implementation, you may as well go into the perl tutorial for regular expressions: http://perldoc.perl.org/index-tutorials.html suomi On 2011-06-01 10:31, kshitij mali wrote: Thank u ralf Can u please give me link for learn regular

Re: email tracking from postfix log file

2011-06-01 Thread Duane Hill
Wednesday, June 1, 2011, 3:33:41 AM, Ralf wrote: * kshitij mali foreplay...@gmail.com: Thank u ralf Can u please give me link for learn regular experssion The best book is: http://oreilly.com/catalog/9780596002893 (IMHO of course) I also use: http://www.regular-expressions.info/ --