Email statistics module


(Francesco) #1

Hello, I wanted to ask you where I can find the package to see my nethserver statistics.
I use nethserver 7 in the company I work for.
I have configured about 70 emails and everything works out of wonder for more than a year.

I just wanted to have a statistical form to view:
emails sent
spam
email with virus
archived emails
received emails
email rejected

I look forward to your info
regards


(Markus Neuberger) #2

Hello @ohifra,

I found this thread:

https://community.nethserver.org/t/mailserver-stats/1498

  • nethserver-awstats is available but we have to setup Mail stats, just works for virtual hosts actually I think:

https://wiki.nethserver.org/doku.php?id=awstats

  • pflogsumm, a perl script for stats that may be sent by mail:

https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=7


(Stefano Zamboni) #3

some hints:

http://www.postfix.org/addon.html#logfile


(Francesco) #4

Thanks so much


(Stefano Zamboni) #5

take a look at this one:
http://sareport.darold.net/index.html

there are info on how to install it on centos, even with the rpm way:


(Francesco) #6

I have installed and configured awstats.
It works really well.
I followed this link
https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=8
Thanks a lot yet


(Francesco) #7

wow
now I test it
Thanks


(Eddie Atherton) #8

I use Logwatch. Here are a couple of excerpts from last nights report:

--------------------- Amavisd-new Begin ------------------------ 

        2   Total messages scanned ------------------  100.00%
   13.175K  Total bytes scanned                         13,491
 ========   ==================================================
 
        2   Passed ----------------------------------  100.00%
        2     Clean passed                             100.00%
 ========   ==================================================
 
        2   Ham -------------------------------------  100.00%
        2     Clean passed                             100.00%
 ========   ==================================================
 
 
 
 **Unmatched Entries**
        1   (02237-12) spam-tag, <root@fortknox.bogolinux.net> -> <root@nethserver.bogolinux.net>, No, score=-2.403 tagged_above=-1000 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001, MISSING_MID=0.497, RP_MATCHES_RCVD=-0.001] autolearn=no autolearn_force=no
        1   (02237-12) ubzkEQeVjHfl FWD from <root@fortknox.bogolinux.net> -> <root@nethserver.bogolinux.net>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as C57E010043A5
        1   (02238-12) spam-tag, <root@fortknox.bogolinux.net> -> <root@nethserver.bogolinux.net>, No, score=-2.403 tagged_above=-1000 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, HTML_MESSAGE=0.001, MISSING_MID=0.497, RP_MATCHES_RCVD=-0.001] autolearn=no autolearn_force=no
        1   (02238-12) 0UoOR9DZyKjh FWD from <root@fortknox.bogolinux.net> -> <root@nethserver.bogolinux.net>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6317C1013377
 
 ---------------------- Amavisd-new End ------------------------- 

 
 --------------------- Clamav Begin ------------------------ 

 
 Viruses detected:
    Porcupine.Junk.39637.UNOFFICIAL:                       1 Time(s)
    Sanesecurity.Junk.12171.UNOFFICIAL:                    1 Time(s)
    Sanesecurity.Junk.37478.UNOFFICIAL:                    1 Time(s)
    Sanesecurity.Junk.56979.UNOFFICIAL:                    1 Time(s)
 
 Virus database reloaded 29 time(s) (last time with 6479930 viruses)
 
 ---------------------- Clamav End ------------------------- 

 --------------------- Postfix Begin ------------------------ 

      199   Miscellaneous warnings  
 
   80.325K  Bytes accepted                              82,253
   80.768K  Bytes sent via LMTP                         82,706
   15.075K  Bytes forwarded                             15,437
 ========   ==================================================
 
        6   Accepted                                   100.00%
 --------   --------------------------------------------------
        6   Total                                      100.00%
 ========   ==================================================
 
      641   Connections             
       79   Connections lost (inbound) 
      641   Disconnections          
        7   Removed from queue      
        4   Sent via LMTP           
        3   Forwarded               
 
        1   Timeouts (inbound)      
       41   Hostname verification errors (FCRDNS) 
        1   SMTP protocol violations 
 
 
 ---------------------- Postfix End ------------------------- 

--------------------- SpamAssassin Begin ------------------------ 

 
 Mail Recipients:
    amavis   :   21 clean,     3 spam
 
 Summary:
 	Total Clean:    21 ( 88%)
 	Total Spam:      3 ( 13%)
 
 Top 10 Spam Relays:
    : 3 Time(s)
 
 ---------------------- SpamAssassin End ------------------------- 

Cheers.