• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • 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