• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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