spamassassin postfix auf suse 8.1

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
wurtzel
Posts: 17
Joined: 2003-09-18 16:42

spamassassin postfix auf suse 8.1

Post by wurtzel » 2004-11-22 13:53

Hallo
ich habe folgendes Problem ich habe auf meiner installation einen Postfix 1.1.12 und spamassassin 2.6.4 (suse rpms)

/etc/mail/spamassassin

Code: Select all

# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)

# How many hits before a message is considered spam.
required_hits           7.5

# Whether to change the subject of suspected spam
rewrite_subject         1

# Text to prepend to subject if rewrite_subject is used
subject_tag             *****SPAM*****

# Encapsulate spam in an attachment
report_safe             1

# Use terse version of the spam report
use_terse_report        0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

/etc/postfix/master.cf

Code: Select all

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (50)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#-o content_filter=smtp:[localhost]:783
#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
#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       nqmgr
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
flush     unix  n       -       n       1000?   0       flush
smtp      unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
#localhost:10025 inet   n       -       n       -       -       smtpd -o content_filter=
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
# The Cyrus deliver program has changed incompatibly.
#
cyrus     unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -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
vscan     unix  -       n       n       -       10       pipe
  user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
nur irgendwie scheint er nix zu prüfen
obwohl spamd läuft
was kann da falsch kondiguriert sein??

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: spamassassin postfix auf suse 8.1

Post by Roger Wilco » 2004-11-22 20:29

Ohne zu wissen, wie du den Spamc aufrufst, kann die niemand helfen.

wurtzel
Posts: 17
Joined: 2003-09-18 16:42

Re: spamassassin postfix auf suse 8.1

Post by wurtzel » 2004-11-23 01:55

da liegt ja mein problem ich weis nicht wo er eingebunden werden muß das er richtig funktioniert

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: spamassassin postfix auf suse 8.1

Post by Roger Wilco » 2004-11-23 09:05

wurtzel wrote:da liegt ja mein problem ich weis nicht wo er eingebunden werden muß das er richtig funktioniert
Dann führe dir mal http://wiki.apache.org/spamassassin/UsedViaProcmail und http://wiki.apache.org/spamassassin/IntegratedInMta zu Gemüte.

wurtzel
Posts: 17
Joined: 2003-09-18 16:42

Re: spamassassin postfix auf suse 8.1

Post by wurtzel » 2004-11-23 11:40

ich habs nun nach der variante vom http://wiki.apache.org/spamassassin/IntegratedInMta

Code: Select all

spamassassin  unix  -       n       n       -       -       pipe
     user=nobody argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
probiert nur bringt er mir immer Fehlermeldungen

auch wenn ich den parameter -e weg lasse bringt er die fehlermeldung nur dann mit o


Code: Select all

Nov 23 11:31:25 xxxxxxxxx postfix/pipe[3412]: 3C40349018D: to=<web2p1@xxxxxxxxx.pureserver.de>, relay=spamassassin, delay=0, status=bounced (command line usage error. Command output: /usr/bin/spamc: invalid option -- e Usage: spamc [-d host] [-p port] [-c] [-f] [-h] -c: check only - print score/threshold and exit code set to 0 if message is not spam, 1 if spam -d host: specify host to connect to  [default: localhost] -f: fallback safely - in case of comms error, dump original message unchanges instead of setting exitcode -h: print this help message -p port: specify port for connection [default: 783] -s size: specify max message size, any bigger and it will be returned w/out processing [default: 250k] -u username: specify the username for spamd to process this message under )

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: spamassassin postfix auf suse 8.1

Post by Roger Wilco » 2004-11-23 16:55

Schau mal in man spamc oder spamc --help nach, ob deine Version von SpamAssassin den Parameter -e überhaupt unterstützt.
Ich zitiere mal kurz
spamc --help wrote:-e command [args] --- Pipe the output to the given command instead of stdout. This must be the last option.

wurtzel
Posts: 17
Joined: 2003-09-18 16:42

Re: spamassassin postfix auf suse 8.1

Post by wurtzel » 2004-11-23 19:10

so ich hab mir jetzt die 3.01 drtauf gemacht da dio option -e fehlte

so wie es jetzt aussieht schein die mails auch durch den spamd zu laufen

Code: Select all

Nov 23 18:54:11 xxxxxxxxxx popper[11966]: Stats: web1p1 0 0 0 0 80.145.26.57 80.145.26.57 [pop_updt.c:296]
Nov 23 18:55:09 xxxxxxxxxx postfix/smtpd[11981]: connect from bay2-f9.bay2.hotmail.com[65.54.247.9]
Nov 23 18:55:10 xxxxxxxxxx postfix/smtpd[11981]: 34E8D49018D: client=bay2-f9.bay2.hotmail.com[65.54.247.9]
Nov 23 18:55:10 xxxxxxxxxx postfix/cleanup[11982]: 34E8D49018D: message-id=<BAY2-F931B85AC9A8B06011E241D0C70@phx.gbl>
Nov 23 18:55:10 xxxxxxxxxx postfix/qmgr[11880]: 34E8D49018D: from=<xxxxxxxxx@hotmail.com>, size=9979, nrcpt=1 (queue active)
Nov 23 18:55:10 xxxxxxxxxx spamd[11703]: connection from localhost.localdomain [ 127.0.0.1 ] at port 51513
Nov 23 18:55:10 xxxxxxxxxx spamd[11986]: info: setuid to nobody succeeded
Nov 23 18:55:11 xxxxxxxxxx postfix/smtpd[11981]: disconnect from bay2-f9.bay2.hotmail.com[65.54.247.9]
Nov 23 18:55:12 xxxxxxxxxx spamd[11986]: clean message (0.1/7.5) for nobody:65534 in   2 seconds, 9805 bytes.
Nov 23 18:55:12 xxxxxxxxxx postfix/pickup[11879]: E886649018E: uid=65534 from=<xxxxxxxxx@hotmail.com>
Nov 23 18:55:12 xxxxxxxxxx postfix/cleanup[11982]: E886649018E: message-id=<BAY2-F931B85AC9A8B06011E241D0C70@phx.gbl>
Nov 23 18:55:12 xxxxxxxxxx postfix/qmgr[11880]: E886649018E: from=<xxxxxxxxx@hotmail.com>, size=10102, nrcpt=1 (queue active)
Nov 23 18:55:12 xxxxxxxxxx postfix/pipe[11984]: 34E8D49018D: to=<web2p4@xxxxxxxxxx.pureserver.de>, relay=spamassassin, delay=2, status=se
nt (xxxxxxxxxx.pureserver.de)
Nov 23 18:55:13 xxxxxxxxxx postfix/local[11989]: E886649018E: to=<web2p4@xxxxxxxxxx.pureserver.de>, relay=local, delay=1, status=sent (ma
ilbox)
wie bekomme ich es hin das er mir den spam status mit in den mails anzeigt??

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: spamassassin postfix auf suse 8.1

Post by Roger Wilco » 2004-11-23 19:16


wurtzel
Posts: 17
Joined: 2003-09-18 16:42

Re: spamassassin postfix auf suse 8.1

Post by wurtzel » 2004-11-23 21:48

local.cf

Code: Select all

# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# This file will be loaded before *all other* configuration files, including
# the system configuration.  As such, it's a good place to set things that
# will affect how those files are parsed, like which plugins are loaded
# etc.
#
###########################################################################

# RelayCountry - add metadata for Bayes learning, marking the countries
# a message was relayed through
#
# loadplugin Mail::SpamAssassin::Plugin::RelayCountry

# URIDNSBL - look up URLs found in the message against several DNS
# blocklists.
#
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL

# Hashcash - perform hashcash verification.
#
loadplugin Mail::SpamAssassin::Plugin::Hashcash

# SPF - perform SPF verification.
#
loadplugin Mail::SpamAssassin::Plugin::SPF


# SpamAssassin config file for version 2.5x
# generated by http://www.yrex.com/spam/spamconfig.php (version 1.01)

# How many hits before a message is considered spam.
required_hits           7.50
rewrite_header Subject ****SPAM(_SCORE_)****
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_
report_safe             1
use_terse_report        0
use_bayes               1
auto_learn              1
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1
ok_languages            all
ok_locales              all

was mache ich falsch das er keinerlei hinweise auf spamassassin in den mails liefert egal was ich versucht habe ich find nichts wo ich die x-spam header einschalte