[Postfixbuch-users] Problem mit Spamassasin

Andreas Winkelmann ml at awinkelmann.de
Mo Mai 29 08:00:13 CEST 2006


Am Monday 29 May 2006 05:04 schrieb Niels Kalle:

> Ich habe das Problem, das Spamassasin auf meinem neuen Server
> anscheinend in einen Loop laeuft...
> ich habe mich endlich getraut meinen Mailserver mit mysql und
> gechrootet zu bauen was an sich schon eine Reihe von Problemen mit
> sich brachte aber beim SA komm ich jetzt garnicht mehr weiter:
>
> May 29 04:46:37 schnake spamd[5187]: spamd: connection from localhost
> [127.0.0.1] at port 40562
> May 29 04:46:37 schnake spamd[5187]: spamd: setuid to nobody succeeded
> May 29 04:46:37 schnake spamd[5187]: spamd: creating default_prefs:
> //.spamassassin/user_prefs
> May 29 04:46:37 schnake spamd[5187]: mkdir /.spamassassin: Permission
> denied at /usr/lib/perl5/vendor_perl/5.8.7/Mail/SpamAssassin.pm line 1467
> May 29 04:46:37 schnake spamd[5187]: config: cannot write to
> //.spamassassin/user_prefs: No such file or directory
> May 29 04:46:37 schnake spamd[5187]: spamd: failed to create readable
> default_prefs: //.spamassassin/user_prefs

Du solltest es ausschalten, dass spamd user_prefs-Directories anlegt. Wenn ich 
mir die man-page so ansehe, denke ich, dass Du es sogar explizit 
eingeschaltet hast. Das ist natürlich unter gleichzeitiger Verwendung des 
Users nobody äusserst sinnfrei.

> und so geht das weiter und weiter bis er dann endgueltig mit folgender
> Meldung stirbt:
>
> May 29 04:46:41 schnake sSMTP[25970]: 554 Error: too many hops

Das ist ein Loop, da hast Du irgendeinen Ring konfiguriert. Postfix nimmt die 
Mail nicht mehr an, weil sie schon durch 50 MTAs gelaufen ist.

> May 29 02:46:41 schnake postfix/smtpd[25959]: disconnect from
> unknown[217.11.52.12]
> May 29 04:46:41 schnake postfix/pipe[25917]: 066772008AE1:
> to=<nkalle at humbug.org>, relay=spamassassin, delay=0, status=bounced
> (Command died with status 1: "/usr/bin/spamc". Command output:
> sendmail: 554 Error: too many hops )
> May 29 04:46:41 schnake postfix/cleanup[25961]: 40C0C2008B7A:
> message-id=<20060529024641.40C0C2008B7A at mail.humbug.org>
> May 29 04:46:41 schnake postfix/qmgr[25835]: 40C0C2008B7A: from=<>,
> size=9283, nrcpt=1 (queue active)
> May 29 04:46:41 schnake postfix/qmgr[25835]: 066772008AE1: removed
> May 29 04:46:41 schnake postfix/smtp[25974]: 40C0C2008B7A:
> to=<nobody at schnake.humbug.org>, relay=none, delay=0, status=bounced
> (mail for schnake.humbug.org loops back to myself)
>
> Hier mal ein Teil meiner master.cf:
>
> [...]
> discard   unix  -       -       n       -       -       discard
> anvil     unix  -       -       n       -       1       anvil
> scache    unix  -       -       n       -       1       scache
> trace     unix  -       -       n       -       0       bounce
> verify    unix  -       -       n       -       1       verify
> smtp      inet  n       -       -       -       -       smtpd
>           -o content_filter=spamassassin
> ## AvMailGate
> 127.0.0.1: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.
> spamassassin unix -     n       n       -       -       pipe
>         user=nobody argv=/usr/bin/spamc -f -e
>         /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Zeig doch mal "postconf -n". Wie ist denn so content_filter in der main.cf 
eingestellt?

> #
> # maildrop. See the Postfix MAILDROP_README file for details.
> #
> maildrop  unix  -       n       n       -       -       pipe
>   flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
> #
> # The Cyrus deliver program has changed incompatibly, multiple times.
> #
> #old-cyrus unix  -       n       n       -       -       pipe
> #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
> # Cyrus 2.1.5 (Amos Gouaux)
> #cyrus     unix  -       n       n       -       -       pipe
> #  user=cyrus argv=/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

-- 
	Andreas



Mehr Informationen über die Mailingliste Postfixbuch-users