D.J. Stewart von Karmasphere hat die folgende Nachricht auf der Karmasphere Users und der Karmasphere Announce Liste gepostet: As a registered user of Karmasphere Reputation Services, we wanted to let you know that we are discontinuing the service, effective November 16, 2009. If you are using the services through DNS, BQuery or email plugins, please make plans to adjust your configurations ideally prior to November 9 and no later than November 16, 2009. On that final date, we will disable the reputation servers so that you can no longer query them. Anybody who still has not removed Karmasphere's reputation service from their mail configuration when this happens may find that their mail servers appear to slow down while they wait for their queries to Karmasphere to time out. You may be thinking "why are they doing this?". The answer is that we are moving the business in a different direction. We have applied the experience gained in manipulating and analysing large data sets in reputation services into developing software that makes it easier to use Hadoop. This change in focus means that we no longer have the time nor resources to give the reputation service the attention it deserves. Rather than letting the service slowly decay, we are ending them. This end of service will proceed in the following stages. Stage 1: To November 9, 2009 Our services will continue as they have for the past 4 years. This gives you a chance to remove karmasphere's feeds and feedsets from your mail server configurations. Stage 2: November 9 - November 16, 2009 Our servers will continue to respond but our feedsets will whitelist everything. Stage 3: November 16, 2009 The reputation servers will be turned off. Thank you for using our services. The Karmasphere Team. Karmasphere ist ein offenes Reputationsnetzwerk für Mailserver.
"... Where SenderBase and TrustedSource are proprietary, closed systems that reflect the world from a single vendor's point of view, Karmasphere offers a whole array of independent reputation systems, bundled into a single convenient package with extraordinary coverage. ..." Die hier beschriebene Installation behandelt den Client für SpamAssassin. Grundlegend sind folgende Schritte durchzuführen:
1. Anpassen der Firewalleinstellungen 2. Installation des Client-Programms 3. Erzeugen eines Accounts auf www.karmasphere.com 4. Anpassen/ Erweitern der SpamAssassin- Konfiguration
In der vorhandenen Firewall ist der Port 8666/UDP zu öffnen. UDP ist beim eingesetzten Protokoll BQuery das bevorzugte Protokoll. Trotzdem funktioniert BQuery auch mit TCP. Somit kann bei Problemen mit UDP die Verbindung zum Server auch mit TCP hergestellt werden. Der Karmasphere- Server beantwortet die Anfrage direkt auf dem ankommenden Port. Die Regeln sollten also Stateful sein. Das Client-Programm ist ein Perl-Modul, das im CPAN zu finden ist. Zur Installation kann die Perl-Shell verwendet werden:
# perl -MCPAN -e shell > install Mail::SpamAssassin::Plugin::Karmasphere
Diese Befehlssequenz installiert das Modul. Während der Installation werden verschiedene Fragen zu Einstellungen gestellt. Prinzipiell können alle Werte auf Standard "Y" belassen werden. Erst nach dem Erstellen eines Accounts auf www.karmasphere.com ist es möglich den Dienst zu nutzen. Das System versendet nach Angabe einiger Daten einen Aktivierungscode an die angegebene eMail-Adresse. Nach erfolgreicher Aktivierung wird auf der Website der Benutzernamen und das Passwort angezeigt mit denen man die Karmasphere- Server abfragen kann. Nun geht es mit der Anpassung von SpamAssassin los. Erstmal sollte die SpamAssassin- Konfiguration auf Konsistenz geprüft werden. Dies geschieht mittels
spamassassin --lint
Werden hier keine Fehler angezeigt, so kann mit der eigentlichen Konfiguration weiter unten fortgefahren werden- ansonsten ist es notwendig sich erstmal an die Problembehebung zu machen.
Die Datei /etc/mail/spamassassin/local.cf ist um folgende Zeilen zu ergänzen:
karma_host query.karmasphere.com karma_port 8666 karma_timeout 15 karma_principal ANMELDENAME karma_credentials PASSWORT
Nun kann man mittels
spamassassin -D --lint 2>&1 | grep 'site rules dir'
das vom SpamAssassin verwendete Regel-Verzeichnis aus der laufenden Konfiguration herausgesucht werden. Die Ausgabe sollte so ähnlich wie
[64920] dbg: config: using "/etc/mail/spamassassin" for site rules dir
lauten. Hier ist /etc/mail/spamassassin das gesuchte Verzeichnis. In diesem Verzeichnis wird nun eine neue Datei mit dem Namen 26_karmasphere.cf angelegt. Die Datei hat folgenden Inhalt (ist auch im Verzeichnis eg\spamassassin der Sourcen zu finden):
# SpamAssassin rules file: karmasphere # # Please don't modify this file as your changes will be overwritten with # the next update. Use /etc/mail/spamassassin/local.cf instead. # See 'perldoc Mail::SpamAssassin::Conf' for details. # # <@LICENSE> # Copyright 2004 Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # </@LICENSE>
loadplugin Mail::SpamAssassin::Plugin::Karmasphere
ifplugin Mail::SpamAssassin::Plugin::Karmasphere
karma_feedset connect karmasphere.email-sender karma_feedset content karmasphere.email-sender
karma_range KARMA_CONNECT_POSITIVE connect 300 1000 karma_range KARMA_CONNECT_NEGATIVE connect -1000 -300
karma_range KARMA_CONTENT_POSITIVE content 300 1000 karma_range KARMA_CONTENT_NEGATIVE content -1000 -300
score KARMA_CONNECT_POSITIVE -2.0 score KARMA_CONNECT_NEGATIVE 2.0 score KARMA_CONTENT_POSITIVE -1.0 score KARMA_CONTENT_NEGATIVE 1.0
add_header all Karma-Connect _KARMASCORE(connect)_: _KARMADATA(connect)_ add_header all Karma-Content _KARMASCORE(content)_: _KARMADATA(content)_
endif # Mail::SpamAssassin::Plugin::Karmasphere
Wichtig ist hierbei dass die beiden Zeilen
karma_feedset connect karmasphere.email-sender karma_feedset content karmasphere.email-sender
einkommentiert werden.
Nach einem Reload der SpamAssassin- Konfiguration ist der Karmasphere-Client nun einsatzbereit. |