Dies ist eine alte Version des Dokuments!


Quelle1)

Hetzner-Server Mailserver einrichten

Die Anleitung ist in einem Punkt ungenau: Es fehlt ein

apt-get install spamc

bei den Spamassasin-Installationen. Daher bekam ich Fehlermeldungen, dass die Date /usr/bin/spamc nicht vorhanden ist.

Postfix statt sendmail. Das Kommando 'sendmail' ist von postfix und dient der Kompatibilität

Postfix einrichten

Mails hängen

Wenn Du das manuell anstossen möchtest :

 # postqueue -f

Anzeigen der hängenden Mails:

 # postqueue -p

Probleme mit Spamassissin

Problem: bekomme solche Meldungen in /var/log/mail.err

Nov 11 19:43:18 www spamd[2622]: mkdir /nonexistent/.spamassassin: Permission denied at /usr/share/perl5/Mail/SpamAssassin.pm line 1530
Nov 11 19:43:18 www spamd[2622]: mkdir /nonexistent/.spamassassin: Permission denied at /usr/share/perl5/Mail/SpamAssassin.pm line 1530
Nov 11 19:43:18 www spamd[2622]: locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/auto-whitelist.lock.www.foto-und-kind.de.2622 for /nonexistent/.spamassassin/auto-whitelist.lock: No such file or directory
Nov 11 19:43:18 www spamd[2622]: bayes: locker: safe_lock: cannot create tmp lockfile /etc/spamassassin/bayes.lock.www.foto-und-kind.de.2622 for /etc/spamassassin/bayes.lock: Permission denied

Quelle2)

Package: spamassassin Version: 3.1.7-2 Severity: normal

When using spamd child processes run as 'nobody' users who has no home dir. That causes a permission denied error in creation of bayesian filtering files, as explained here for instance:

http://lists.debian.org/debian-user/2007/01/msg03725.html

Adding something like:

--virtual-config-dir=/var/cache/spamassassin

to OPTIONS in /etc/default/spamassassin with nobody owning that dir would be appropriate. It would be better also creating a system spamd user with appropriate home and shell, instead of using nobody.

 
Nach oben
mailserver.1226480743.txt.gz · Zuletzt geändert: 2024/02/29 13:34 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp