simplybe

Well-Known Member
Nov 29, 2002
153
0
166
Hi,
can anyone help me, I need to reduce the amount that is written to the exim main_log. I have rbl filters in place and the rejected messages are filling up exim logs quickly.

I want to stop these being written to the exim logs and other events such as queue runs etc..

I have tried the log_selector = option but can't seem to get it to stop writing to the logs.

Thanks
 

RickG

Well-Known Member
Feb 28, 2005
238
2
168
North Carolina
IMHO a better approach would be to rotate the logs more frequently which you can control through /etc/logrotate.conf and /etc/logrotate.d/exim. You never know when you might need that information to troubleshoot an issue.

How large are the logs getting?
 

simplybe

Well-Known Member
Nov 29, 2002
153
0
166
Hi,
The 2 main reasons i want to reduce the amount written to the logs is

1 to reduce the space used in /var
2 to reduce the load on the hd

Rotating them still uses too much space in /var and does not reduce the load on the hd. I am not looking to stop all logs but just stop the spam rbl rejected ones from being written to the logs.

There are 1000's per day of 'this messages was rejected because ip is listed at spamhaus' etc..

I have no need for this info in the logs. The log i removed yesterday was 2GB.

Reading the exim docs log_selector = can add extra info to logs or remove it by using the + or - sign

something like
log_selector = +all -dnslist_defer

should work but i can't seem to get it to.

thanks
 

simplybe

Well-Known Member
Nov 29, 2002
153
0
166
hi,
yes I already read the docs but it does not seem to make any difference using log_selector = -


still get the same logs