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 help.

Regards,
Kshitij Mali

On Fri, Feb 10, 2012 at 12:58 PM, Ralf Hildebrandt <
ralf.hildebra...@charite.de> wrote:

> * 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 Netzwerk
>  Charité - Universitätsmedizin Berlin
>  Campus Benjamin Franklin
>  Hindenburgdamm 30 | D-12203 Berlin
>  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
>  ralf.hildebra...@charite.de | http://www.charite.de
>
>

Reply via email to