• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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