* 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