Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 \var\logs\maillog*

share|improve this question

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.

share|improve this answer
Do I need to restart any service to apply the changes? – blizz Apr 28 '13 at 15:11
no, logrotate runs as a cronjob. no need to restart anything. – Gryphius Apr 28 '13 at 15:44
Nevermind answered it myself. Thanks for the help. – blizz Apr 28 '13 at 16:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.