procmail
[Top] [All Lists]

Re: spamassassin in my procmailrc fills up mail.log

2004-10-30 18:50:06
Am 2004-10-30 17:58:36, schrieb Shane Williams:
As others have pointed out, this isn't really a procmail issue, but...

if you're using spamd, you can use the --syslog option to tell what
syslog what service to categorize spamd logs as.  For instance, I call
spamd with --syslog=local4.  Then in your syslog.conf, you can point
local4 to go wherever you want, whether that's just to one of your log
files, or to /dev/null.

OK, now I have changed my

  __( '/etc/default/spamassassin' )_________________________________
 /
| OPTIONS="--syslog=local4 --pidfile --whitelist --create-prefs --ma
| x-children 15 -H"
 \__________________________________________________________________

  __( '/etc/syslog.conf' )__________________________________________
 /
| local4.*                      -/var/log/spamd.log
| 
| *.*;auth,authpriv,local4.none -/var/log/syslog
                   ^^^^^^^
        This was what I have missed...
 \__________________________________________________________________

and then created a logrotate script (hoping this works)

  __( '/etc/logrotate.d/spamassassin' )_____________________________
 /
| /var/log/spamd.log {
|       dayly
|       missingok
|       rotate 120
|       compress
|       delaycompress
|       notifempty
|       creates 640 root admin
|       sharedscripts
|       postrotate
|               /etc/init.d/spamassassin reload >/dev/null
|       endscript
| }
 \__________________________________________________________________


I think, this will work correctly. 'spamd' writes already to
/var/log/spamd.log and not more to /var/log/{syslog,mail.info,mail.log}

So it is 3:42 and I go to bed...
Enough worked today oops... yesterday and today

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>