• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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 why does plesk change the postfix mail log file to /var/log/maillog ?

PeterKi

Regular Pleskian
The default mail log file in Ubuntu is /var/log/mail.log which is also configured in /etc/logrotate.d/rsyslog
Plesk does change the default in /etc/rsyslog.d/plesk-mail.conf to /var/log/maillog.
Thus, logrotate does not work without modifying the rsyslog config file.

Is there a special reason why plesk does change the log file?
Can I change the log file in plesk-mail.conf without breaking any plesk features?
 
Sorry for being not precise enough.
I do not want to manage rotation settings for /var/log/maillog.
I am looking to change /etc/rsysllog.d/plesk-mail.conf to
mail.* -/var/log/mail.log
or even remove /etc/rsyslog.d/plesk-mail.conf at all.
Then mail logs should be in /var/log/mail.log which in turn gets rotated by logrotate
 
What is the advantage of removing a fully integrated automatic rotation by Plesk that you can customize by y different log file name and your own rotation? What can your own rotation do better than the one provided by Plesk?
 
Most default log rotations suck (as does the defaults coming with logrotate)
I want all my log files rotate by size only, never by date, and I want a certain history.
Having my log files with the standard names (i.e mail.log instead of maillog) also works out of the box with logwatch.
I like logwatch as it keeps me informed about warnings and errors by a single mail once a day.
 
Back
Top