Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

List top sender address emails in zimbra

How to List top sender address emails in zimbra from command line. From MTA zimbra I will run command to list 6 sender address email Zimbra.

The command as below:
$ cat /var/log/zimbra.log | awk -F 'from=<' '{print $2}' | awk -F'>' '{print $1}' | sed '/^$/d' | sort | uniq -c | sort -nk1 -r | sed -n '1,6p'
Note:

  • sed '/^$/d' : To delete only blank lines
  • sed -n '1,6p' : To print 1 line to 6 line.
  • awk -F 'from=<' '{print $2}' | awk -F'>' '{print $1}' : To print the email of sender address

Conclusion

Thought the article, To help you list top sender address emails in zimbra. if you any question then command below

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com

6 comments

Thanks for sharing. this is help me

Relay
This comment has been removed by the author.
This comment has been removed by the author.
This comment has been removed by the author.

I read this article, it is really informative one. Your way of writing and making things clear is very impressive. Thanking you for such an informative article.Direct Mail Marketing Printing

Relay

I always check this type of advisory post and I found your article which is related to my interest.Smtp Provider For Bulk Email This is a great way to increase knowledge for us. Thanks for sharing an article like this.

Relay