PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Spamassassin u. Amavis (Spamassassin verweigert dienst)



Andy.C
30.12.08, 10: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

Roger Wilco
30.12.08, 16:44
Ob und ab welcher Punktzahl eine E-Mail markiert werden soll, musst du in der amavis.conf festlegen. Die local.cf wird nicht mehr benutzt.

Andy.C
31.12.08, 09:17
Und wie soll das ganze aussehen? Wird Apamassassin weiterhin genutzt, oder kann ich das entferen wenn Amavis sich darum kümmert?

Roger Wilco
31.12.08, 14:19
Und wie soll das ganze aussehen?
Schau dir einfach mal die wunderbar kommentierte amavisd-new Konfigurationsdatei an. Kleiner Tipp: Es hat mit spam und tag zu tun...


Wird Apamassassin weiterhin genutzt, oder kann ich das entferen wenn Amavis sich darum kümmert?
amavisd-new nutzt SpamAssassin. Also nicht deinstallieren.

Andy.C
01.01.09, 10:54
Ein Frohes Neues Wünsch ich euch :)

@Roger Wilco, ich habe mir deinen Tipp zu Herzen genommen und danach geschaut. Habe auch sachen finden können. Dennoch, in den Logs kann ich kein verweis finden, dass ein Spam check durfgeführt wurde.
Lediglich

amavis[1708]: (01708-01) Passed CLEAN
Ist zu finden.

Auch im Header der eMail ist kein hinweis darauf dass eine Überprüfung stattgefunden hat. Auch hier nur der Virus Check zu finden.
Ich habe einiges an der conf Datei verändert, amavisd gestopppt und wieder neugestartet um Sicherstellen zu können, dass die Konfiguration auch Greift. Aber es Passiert nichts. Ich habe nun den standard der Konfiguratuion wiederhergestellt, da ich das ganze ja doch irgendwie nicht zum Laufen bekomme, warum auch immer :mad: .

Andy.C
01.01.09, 18:23
Folgenden Header erhalte ich, wenn ich die sample-spam.txt Datei als Email versende.



X-Virus-Scanned: amavisd-new at xxx.de
X-Spam-Flag: NO
X-Spam-Score: 3
X-Spam-Level: ***
X-Spam-Status: No, score=3 tagged_above=-900 required=4.31 tests=[none]


Wenn ich jedoch Manuell eine email verfasse und dort sachen wie BUY, DRUGS, VIAGRA uvm. dort an Betreff und in den Text Schreibe, hat Spamassasin die email immer als Spam Markiert. mit amavis jedoch komm die Mail ohne Score durch.


X-Virus-Scanned: amavisd-new at xxx.de
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-900 required=4.31 tests=[none]


Ich renn da mom. echt gegen eine Wand, ich komm dort kein Stück weiter (Oo)

Phreeze
19.06.09, 11:49
push ;)

habe das gleiche Problem und in etlichen Suchen findet man keine Lösung da Threads unbeantwortet bleiben :(