From: Orhan Albay (orhan.albay@kaynet.com)
Date: Tue 02 Sep 2003 - 03:07:04 EDT
sistem kaynaklarini zorlayan spamassassin modulu. cok fazla zorlar cunku her
bir mesaj icin perl baslatmak zorundadir, spamassassin perl scripti standard
giristen mesaji alir ve sonuclari standard cikisa verir. spamd de yine bir
perl scriptidir ama gelen herbir mesaji almak icin soketi dinler. perl
sadecebir kez baslar ve tum mesajlar bu proses ile filtrelenir. servis
olarakcalisir yani. Asagida spamassasin ile spamd arasindaki farklar ve
zamankarsilastirmasi daha aciklayici olur sanirim. Saygilar, Orhan Albay.
****************************************************************** At the
core, SA is a collection of perl modules and a default config that perform a
number of operations. The distribution comes with "spamassassin" (in
/usr/binwith the debian package) which is a perl script that takes a message
on stdin, feeds it through the modules, and dumps the result back on stdout.
This is fully functional and requires no daemon. The downside is that you
have to start perl for each and every message you filter. That takes some
time and puts load on the system. THe distribution also comes with "spamd"
(also in /usr/bin). spamd is a perl script that listens on a socket to
receive messages, feeds them through the modules, and dumps the result back
to the socket. It is a deamon, thus you start perl once on the system and
usethat running process to filter all messages. In addition to removing the
startup overhead from each message, it is possible for the deamon to handle
load limiting to prevent DoSing the system (I don't know if it does, but it
is conceivable). The only problem is that shells can't access sockets
directly. Thus 'spamc', which is also part of the SA distribution, is used
asthe stdin/stdout<->socket interface layer. spamc is written in C so that
itdoesn't incur the overhead of perl, but does little more than stuff stdin
into a socket and dump the socket on stdout. 'spamc' and 'spamassassin' are
interchangeable, it's just a matter of preference. Just for a point of
reference, on my machine I get the following results (the test message is
spam that SA correctly tags) : $ time spamc -f <message >/dev/null real
0m0.808s user 0m0.000s sys 0m0.010s $ time spamassassin -P <message
>/dev/null real 0m7.425s user 0m0.860s sys 0m0.060s
******************************************************************
Mehmet UZUNKOL wrote:
Spamassasini inceledim fakat fazla kaynak tükettiğini okudum. daha verimli
çalışan bir sistem varsa onu tercih edeceğim. ----- Original Message -----
From: "Orhan Albay" <orhan.albay@kaynet.com>[1] To:
<linux-network@liste.linux.org.tr>[2] Sent: Tuesday, September 02, 2003 9:36
AM Subject: [linux-network] Re: Antispam SpamAssassin isinizi gorecektir.
Saygilar, Orhan Albay. Mehmet UZUNKOL wrote: Akadaşlar, sendmaille entegre
çalışacak spam önleyici yöntem ve program olarak ne tavsiye edersiniz?
Teşekkürler... Mehmet UZUNKOL
--- Links ---
1 mailto:orhan.albay@kaynet.com
2 mailto:linux-network@liste.linux.org.tr