Postfix mail logs

Soldato
Joined
17 Jan 2005
Posts
8,770
Location
Liverpool
I'm currently running a Linux server that is using the Postfix mail service. A month or so ago I changed the relay over to authorised only. Since then however the mail logs have been filling up rapidly the /var directory and maxing out its size limit.

Is there a way of limiting the logging? As it seems to log every bounced email etc taking up far too much space.

Cheers,
Andy
 
I'm currently running a Linux server that is using the Postfix mail service. A month or so ago I changed the relay over to authorised only. Since then however the mail logs have been filling up rapidly the /var directory and maxing out its size limit.

Is there a way of limiting the logging? As it seems to log every bounced email etc taking up far too much space.

Cheers,
Andy

Do you have verbose logging turned on in master.cf for the smtpd daemon?
 
Ahh.. Looks quite handy.

Do you have verbose logging turned on in master.cf for the smtpd daemon?

Haven't got a clue how to do that! :(

I only know the basics in Linux, used to use it a fair bit at uni, but in the last 4 years haven't really touched it. Am trying to teach myself a bit more now as it will come in handy! :)
 
I haven't used the software in question, but I'll take a guess. Master.cf is a master configuration file. It's just plain flat text, nothing fancy about it. In it there are options. One of them is verbose logging. You should locate master.cf then, as root, use a text editor like nano or gedit to open it and look for the line about verbosity. When you find it comment it out, or change the value, or whatever it is. It's probably documented with comments in the file.
 
Cool.. I'll have a play tomorrow when I'm less tired! :)

Have a look at master.cf through vi or something and see if you have -v tagged onto the smtpd line. If you havent used this before I doubt it will be their as it is not enabled by default I believe.
 
Back
Top Bottom