• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Configure awstats for maillog

anthill

New Pleskian
Hi,

Im having issues configuring awstats to use the maillog as i'd also like mail statistics as well as web statistics. the web statistics are working fine.

I created a copy of an existing /opt/psa/etc/awstats/awstats.DOMAIN-http.conf and renamed to /opt/psa/etc/awstats/awstats.DOMAIN-mail.conf.

Following this guide i changed the settings within the new conf file. The only additions being:
LogFile="/usr/share/awstats/maillogconvert.pl standard < /usr/local/psa/var/log/maillog |"
DirData="/var/www/vhosts/system/DOMAIN/statistics/mailstat"

I ran a combination of:
/usr/local/psa/admin/sbin/statistics --calculate-all
./rebuild_awstats.sh
/usr/local/psa/admin/sbin/statistics --generate-all-webstat

the mailstat directory did not get created. So i created it manually and ran the above again. The mailstat directory did not get populated. I'm not even convinced it's is reading my config file.

I have attached a copy of my config file replacing my domain with DOMAIN.

Anybody able to assist?

Thanks
 

Attachments

  • awstats.DOMAIN-mail.txt
    60.9 KB · Views: 2
Back
Top