How to increase Postfix SMTP log retention?

Posted on

How to increase Postfix SMTP log retention? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, postfix, smtp, , .

I’m running Postfix Sendmail 2.6.6 and my SMTP logs seem to only be going back one month. How can I configure it to retain logs for a longer period of time?

BTW I’m referring to logs in varlogsmaillog*

Solution :

Postfix never throws logs away, that is logrotate’s job. Check /etc/logrotate.conf and /etc/logrotate.d/syslog and configure it to your liking.

Leave a Reply

Your email address will not be published.