Andy.C
30.12.08, 09:08
Guten Morgen,
ich habe hier Postfix laufen, dort habe ich zuvor Postgrey installiert und entsprechend Postfix Konfiguriert. Das läuft.
Anschließend habe ich Spamassassing Installiert und auch das entsprechend bei Postfix konfiguriert.
Ab dem Zeitpunkt wurden die Mails geprüft, im Header standen folgende informationen
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on openSUSE-110-64-LAMP
X-Spam-Level: *******
X-Spam-Status: Yes, score=7.3 required=5.0
Nun habe ich zuguter Letzt Amavis Installiert u. eingebunden, seither steht in den Email zusätzlich folgendes
X-Virus-Scanned: amavisd-new at host.tld
Aber seitdem amavis läuft werden die Mails nicht mehr durch Spamassassing markiert. Ich habe in der Konfiguration den wert required_score auf 0.00 gesetzt. Dennoch, weder der Betreff wurde verändert, noch im Quelltext der eMail ist ein verweise daraufhin zu finden.
Postgrey und Amavis laufen gemütlich weiter.
Woran liegt das? Ich habe für die suche und Probieren einige Stunden geopfert und bin schlussendlich zur der ernüchternden Erkenntnis gekommen dass ein weiterkommen ohne Hilfe nicht mehr möglich ist :(
Ich wäre für Hinweise und Lösungen echt Dankbar.
Grüße
CONF Dateien
main.cf
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
append_dot_mydomain = no
delay_warning_time = 4h
myhostname = mail.domain.de
mydomain = domain.de
alias_maps = hash:/etc/postfix/andy_aliases
alias_database = hash:/etc/postfix/andy_aliases
myorigin = localhost
mydestination = $myhostname, localhost.$mydomain $mydomain,localhost
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
message_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, check_policy_service inet:127.0.0.1:10031
smtpd_client_restrictions =
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
home_mailbox = Maildir/
content_filter=smtp-amavis:[127.0.0.1]:10024
virtual_alias_domains = hash:/etc/postfix/andy_virtual_alias_domains
virtual_alias_maps = hash:/etc/postfix/andy_virtual_alias_maps
sender_canonical_maps = hash:/etc/postfix/andy_sender_canonical
master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd
-o content_filter=spamfilter:
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#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 unix - - n 1000? 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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#localhost:10025 inet n - n - - smtpd -o content_filter=
scache unix - - n - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
spamfilter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1800
-o disable_dns_lookups=yes
smtp inet n - n - - smtpd
localhost:10025 inet n - n - - smtpd -o content_filter=
local.cf (Spamassassin)
# Add your own customisations to this file. See 'man Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
#
# do not change the subject
# to change the subject, e.g. use
# rewrite_header Subject ****SPAM(_SCORE_)****
rewrite_header Subject ****SPAM(_SCORE_)****
# Set the score required before a mail is considered spam.
required_score 5.00
# uncomment, if you do not want spamassassin to create a new message
# in case of detecting spam
# report_safe 0
# Enhance the uridnsbl_skip_domain list with some usefull entries
# Do not block the web-sites of Novell and SUSE
ifplugin Mail::SpamAssassin::Plugin::URIDNSBL
uridnsbl_skip_domain suse.de opensuse.org suse.com suse.org ziegert-immobilien.de
uridnsbl_skip_domain novell.com novell.org novell.ru novell.de novell.hu novell.co.uk
endif # Mail::SpamAssassin::Plugin::URIDNSBL
#The combination of SpamAssassin + The Bat! as mail client can cause false positives.
#The reason for the high spam rating is the Reply-To header inserted by mailman,
#which seems to have more quoting than The Bat! can do.
#If you have such problem activate the next two lines
#header IS_MAILMAN exists:X-Mailman-Version
#score IS_MAILMAN -2
ich habe hier Postfix laufen, dort habe ich zuvor Postgrey installiert und entsprechend Postfix Konfiguriert. Das läuft.
Anschließend habe ich Spamassassing Installiert und auch das entsprechend bei Postfix konfiguriert.
Ab dem Zeitpunkt wurden die Mails geprüft, im Header standen folgende informationen
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on openSUSE-110-64-LAMP
X-Spam-Level: *******
X-Spam-Status: Yes, score=7.3 required=5.0
Nun habe ich zuguter Letzt Amavis Installiert u. eingebunden, seither steht in den Email zusätzlich folgendes
X-Virus-Scanned: amavisd-new at host.tld
Aber seitdem amavis läuft werden die Mails nicht mehr durch Spamassassing markiert. Ich habe in der Konfiguration den wert required_score auf 0.00 gesetzt. Dennoch, weder der Betreff wurde verändert, noch im Quelltext der eMail ist ein verweise daraufhin zu finden.
Postgrey und Amavis laufen gemütlich weiter.
Woran liegt das? Ich habe für die suche und Probieren einige Stunden geopfert und bin schlussendlich zur der ernüchternden Erkenntnis gekommen dass ein weiterkommen ohne Hilfe nicht mehr möglich ist :(
Ich wäre für Hinweise und Lösungen echt Dankbar.
Grüße
CONF Dateien
main.cf
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
append_dot_mydomain = no
delay_warning_time = 4h
myhostname = mail.domain.de
mydomain = domain.de
alias_maps = hash:/etc/postfix/andy_aliases
alias_database = hash:/etc/postfix/andy_aliases
myorigin = localhost
mydestination = $myhostname, localhost.$mydomain $mydomain,localhost
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
message_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, check_policy_service inet:127.0.0.1:10031
smtpd_client_restrictions =
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
home_mailbox = Maildir/
content_filter=smtp-amavis:[127.0.0.1]:10024
virtual_alias_domains = hash:/etc/postfix/andy_virtual_alias_domains
virtual_alias_maps = hash:/etc/postfix/andy_virtual_alias_maps
sender_canonical_maps = hash:/etc/postfix/andy_sender_canonical
master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd
-o content_filter=spamfilter:
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#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 unix - - n 1000? 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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#localhost:10025 inet n - n - - smtpd -o content_filter=
scache unix - - n - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
spamfilter unix - n n - - pipe
flags=Rq user=filter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1800
-o disable_dns_lookups=yes
smtp inet n - n - - smtpd
localhost:10025 inet n - n - - smtpd -o content_filter=
local.cf (Spamassassin)
# Add your own customisations to this file. See 'man Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
#
# do not change the subject
# to change the subject, e.g. use
# rewrite_header Subject ****SPAM(_SCORE_)****
rewrite_header Subject ****SPAM(_SCORE_)****
# Set the score required before a mail is considered spam.
required_score 5.00
# uncomment, if you do not want spamassassin to create a new message
# in case of detecting spam
# report_safe 0
# Enhance the uridnsbl_skip_domain list with some usefull entries
# Do not block the web-sites of Novell and SUSE
ifplugin Mail::SpamAssassin::Plugin::URIDNSBL
uridnsbl_skip_domain suse.de opensuse.org suse.com suse.org ziegert-immobilien.de
uridnsbl_skip_domain novell.com novell.org novell.ru novell.de novell.hu novell.co.uk
endif # Mail::SpamAssassin::Plugin::URIDNSBL
#The combination of SpamAssassin + The Bat! as mail client can cause false positives.
#The reason for the high spam rating is the Reply-To header inserted by mailman,
#which seems to have more quoting than The Bat! can do.
#If you have such problem activate the next two lines
#header IS_MAILMAN exists:X-Mailman-Version
#score IS_MAILMAN -2