On Fri, 2014-05-23 at 11:30 +0200, Alex Andreotti wrote: > is there a way to configure spamd (without patching it) to log only > errors?
AFAIK there is no such option. Though isn't that exactly what log levels are for? If you aren't interested in the info noise, filter it out. See the journalctl --priority option. > journalctl show that idle messages are emitted about every minute > (circa). Ironically, the uninteresting noise you asked to get rid of shows, there may be some issue with your setup. (Granted, or a deliberate config decision.) The --max-conn-per-child default is 200. Your ratio of child status and spawning new children in the pasted logs is about 2:1. Did you deliberately set that option to 2? The prefork child status logs are not only informational, but may also indicate warnings or even error conditions, e.g. in case you get a consistent high number of non-idle children. > spamd[756]: prefork: child states: II > spamd[756]: spamd: handled cleanup of child pid [23965] due to SIGCHLD: exit 0 > spamd[756]: spamd: server successfully spawned child process, pid 25747 > spamd[756]: prefork: child states: II > spamd[756]: prefork: child states: II > spamd[756]: spamd: handled cleanup of child pid [24032] due to SIGCHLD: exit 0 > spamd[756]: spamd: server successfully spawned child process, pid 25837 > spamd[756]: prefork: child states: II > spamd[756]: prefork: child states: II > spamd[756]: spamd: handled cleanup of child pid [25747] due to SIGCHLD: exit 0 > spamd[756]: spamd: server successfully spawned child process, pid 25979 > spamd[756]: prefork: child states: II -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}