> My boss is asking me if can keep 2 months of logs on the mail gateway > server. I know I could write a script to do this but Im wondering if there > is a built in command in postfix for this type of action. ty.
In FBSD /etc/newsyslog.conf controls log rotation. The count column is how many logs to keep. You just need to up it to 60 if you are rotating once per day. For 10 days it looks something like this: /var/log/maillog 640 10 * @T00 Z For 60 days it looks something like this: /var/log/maillog 640 60 * @T00 Z --Eric
