Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.