TheGrudge
02.11.05, 14:45
Ich habe in der Firma spamassassin aufgesetzt, auf einer alten Kiste läuft es auch und loggt in die /var/log/mail, und zwar sowas wie
... identified spam ...
... clean message ...
Das lese ich per Skript aus und stelle grafisch per cacti eine Statistik dar.
Nun will auf der neuen Kiste aber spamassassin nicht mehr loggen.
Wieso schreibt er nix mehr in die /var/log/mail???
Hier mal ein Auszug aus der /etc/postfix/master.cf:
smtp inet n - y - - smtpd -o content_filter=procmail:filter
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp -o content_filter=procmail:filter
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
und die /etc/procmailrc:
#LOGFILE=/tmp/procmail.log
#VERBOSE=yes
LOGFILE=/var/log/mail
SENDER=$1
SHIFT=1
# Until now, mail is untagged, you may add rules for
# mail that must not be tagged
:0 hbfw
| /usr/bin/spamassassin
# Now mail is tagged by spamassassin
# You may insert other rules here
:0:
* ^X-Spam-Status: Yes
! xxx@xxxxxx.de
:0
| /usr/sbin/sendmail -i -f "$SENDER" -- "$@"
Warum werden diese Infos von spamassassin nicht mehr ins log geschrieben, fehlt da eine Option???
... identified spam ...
... clean message ...
Das lese ich per Skript aus und stelle grafisch per cacti eine Statistik dar.
Nun will auf der neuen Kiste aber spamassassin nicht mehr loggen.
Wieso schreibt er nix mehr in die /var/log/mail???
Hier mal ein Auszug aus der /etc/postfix/master.cf:
smtp inet n - y - - smtpd -o content_filter=procmail:filter
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp -o content_filter=procmail:filter
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
und die /etc/procmailrc:
#LOGFILE=/tmp/procmail.log
#VERBOSE=yes
LOGFILE=/var/log/mail
SENDER=$1
SHIFT=1
# Until now, mail is untagged, you may add rules for
# mail that must not be tagged
:0 hbfw
| /usr/bin/spamassassin
# Now mail is tagged by spamassassin
# You may insert other rules here
:0:
* ^X-Spam-Status: Yes
! xxx@xxxxxx.de
:0
| /usr/sbin/sendmail -i -f "$SENDER" -- "$@"
Warum werden diese Infos von spamassassin nicht mehr ins log geschrieben, fehlt da eine Option???