Postfix AntiVir Spamassassin
Posted: 2004-11-05 23:44
Hallo,
habe folgende Anleitung benutzt um Spamassassin einzubinden leider funktioniert die Filterung bei mir nicht.
Ich hoffe Ihr könnt mir helfen.
Anleitung:
1. yast -i spamassassin #i für "install"
2. Setzen Sie die SPAMD_ARGS in /etc/sysconfig/spamd auf "-d -x -q -L".
Fügen Sie spamassassin in die Liste der zu startenden Services ein:
insserv /etc/init.d/spamd
rcspamd start
3. Verwenden Sie folgende Datei als /etc/procmailrc:
---- schnipp ----
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamc
# Work around procmail bug: any output on stderr will cause the "F" in
"From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e '1s/^/F/'
}
---- schnapp ----
4. Fügen Sie als letzte Zeile in der Datei /etc/postfix/main.cf folgendes
ein:
mailbox_command = /usr/bin/procmail
Starten Sie jetzt Postfix neu:
rcpostfix restart
5. Führen Sie jetzt das admin-Skript von Confixx aus:
/root/confixx/admin/admin.pl
Hier wählen Sie den Punkt "E-Mail" dann "SpamAssassin" aus, gefolgt von
"Fortfahren ...". Die Abfragen können mit Enter bestätigt werden. Jetzt
werden die notwendigen Einstellungen von Confixx geschrieben. Um alles in
das System einzufügen, führen Sie folgenden Befehl aus:
/root/confixx/confixx_counterscript.pl -ft -fm
SpamAssassin ist jetzt erfolgreich installiert und in Confixx integriert.
Vielen Dank im Voraus für Eure Hilfe.
habe folgende Anleitung benutzt um Spamassassin einzubinden leider funktioniert die Filterung bei mir nicht.
Ich hoffe Ihr könnt mir helfen.
Anleitung:
1. yast -i spamassassin #i für "install"
2. Setzen Sie die SPAMD_ARGS in /etc/sysconfig/spamd auf "-d -x -q -L".
Fügen Sie spamassassin in die Liste der zu startenden Services ein:
insserv /etc/init.d/spamd
rcspamd start
3. Verwenden Sie folgende Datei als /etc/procmailrc:
---- schnipp ----
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamc
# Work around procmail bug: any output on stderr will cause the "F" in
"From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e '1s/^/F/'
}
---- schnapp ----
4. Fügen Sie als letzte Zeile in der Datei /etc/postfix/main.cf folgendes
ein:
mailbox_command = /usr/bin/procmail
Starten Sie jetzt Postfix neu:
rcpostfix restart
5. Führen Sie jetzt das admin-Skript von Confixx aus:
/root/confixx/admin/admin.pl
Hier wählen Sie den Punkt "E-Mail" dann "SpamAssassin" aus, gefolgt von
"Fortfahren ...". Die Abfragen können mit Enter bestätigt werden. Jetzt
werden die notwendigen Einstellungen von Confixx geschrieben. Um alles in
das System einzufügen, führen Sie folgenden Befehl aus:
/root/confixx/confixx_counterscript.pl -ft -fm
SpamAssassin ist jetzt erfolgreich installiert und in Confixx integriert.
Vielen Dank im Voraus für Eure Hilfe.