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 deliver from one user to external
domains for last 3 week
            etc


Regards,
Kshitij

On Wed, Jun 1, 2011 at 1:27 PM, Ralf Hildebrandt <
ralf.hildebra...@charite.de> wrote:

> * 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 'postfix/cleanup.*to=<.*@gmail.com>' /var/log/maillog
>
> --
> 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