Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I installed awstats and configured it to stat a Postfix mail server activity. Works fine but I only get number of emails sent and received. Is it possible to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136

    awstats : postfix mail server figures


    Hello,

    I installed awstats and configured it to stat a Postfix mail server activity.
    Works fine but I only get number of emails sent and received.
    Is it possible to obtain finest data, especially emails snet / received by user ?

    Thanks for attention.
    Bye,
    Bruno

    My (partial) current config is :

    LogFile="perl /usr/share/doc/awstats/examples/maillogconvert.pl standard < /var/log/mail.log |"

    LogType=M
    LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
    LevelForBrowsersDetection=0
    LevelForOSDetection=0
    LevelForRefererAnalyze=0
    LevelForRobotsDetection=0
    LevelForWormsDetection=0
    LevelForSearchEnginesDetection=0
    LevelForFileTypesDetection=0
    ShowMenu=1
    ShowSummary=HB
    ShowSummary=HB
    ShowMonthStats=HB
    ShowDaysOfMonthStats=HB
    ShowDaysOfWeekStats=HB
    ShowHoursStats=HB
    ShowDomainsStats=0
    ShowHostsStats=HBL
    ShowAuthenticatedUsers=0
    ShowRobotsStats=0
    ShowEMailSenders=HBML
    ShowEMailReceivers=HBML
    ShowSessionsStats=0
    ShowPagesStats=0
    ShowFileTypesStats=0
    ShowFileSizesStats=0
    ShowBrowsersStats=0
    ShowOSStats=0
    ShowOriginStats=0
    ShowKeyphrasesStats=0
    ShowKeywordsStats=0
    ShowMiscStats=0
    ShowHTTPErrorsStats=0
    ShowSMTPErrorsStats=1

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    IMO, here is the best way to get logs for postfix
    Postfix Monitoring With Mailgraph And pflogsumm | HowtoForge - Linux Howtos and Tutorials

    I didn't really care about the mailgraph so I just use pflogsumm on its own and it sounds very much like what you want, fine grained reports.

  3. #3
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136
    Cheers. Indeed result looks good.
    Also they're packaged under Debian which is my distro, so also convenient to install.

    Bye,
    Bruno

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •