On 5.1.2010 13:09, Angel L. Mateo wrote:
Hello,

Because FH_DATE_PAST_20XX bug, I have found that when I run spamassassin
through amavisd-new (in a postfix server) I need to restart spamassassin
and amavisd-new after any change in spamassassin.

Debugging this, I found that amavisd-new doesn't connect to my spamd
daemon to check mails, so I think it is using spamassassin command
instead of spamc (I have spamd running in foreground, without -d option
and I haven't seen any connection)

However, I have read in spamassassin that spamc has better performance
than spamassassin, so I would like amavisd-new to use spamc instead of
spamassassin.

I don't know much of amavisd-new and spamassassin implementations
details, but I have found that amavisd-new connect with spamassassin
throught is perl interface by create a SpamAssassin object like this:

my($spamassassin_obj) = Mail::SpamAssassin->new({
debug => $sa_debug,
save_pattern_hits => $sa_debug,
dont_copy_prefs => 1,
local_tests_only => $sa_local_tests_only,
home_dir_for_helpers => $helpers_home,
stop_at_threshold => 0,
});

Do you know if there is any option to tell perl object to use the spamd
daemon? Is there any way to use spamd daemon with amavis? Is it worth in
a mail gateway with hugh loads?


amavisd-new does not use spamd NOR spamassassin command. It is itself a daemon like spamd, and is linked to SpamAssassin library code.

If you want to use SA via amavisd-new there is nothing to worry about, it works efficiently.

Just disable spamd as it is redundant and takes memory uselessly.

--
http://www.iki.fi/jarif/

The Least Perceptive Literary Critic
        The most important critic in our field of study is Lord Halifax.  A
most individual judge of poetry, he once invited Alexander Pope round to
give a public reading of his latest poem.
        Pope, the leading poet of his day, was greatly surprised when Lord
Halifax stopped him four or five times and said, "I beg your pardon, Mr.
Pope, but there is something in that passage that does not quite please me."
        Pope was rendered speechless, as this fine critic suggested sizeable
and unwise emendations to his latest masterpiece.  "Be so good as to mark
the place and consider at your leisure.  I'm sure you can give it a better
turn."
        After the reading, a good friend of Lord Halifax, a certain Dr.
Garth, took the stunned Pope to one side.  "There is no need to touch the
lines," he said.  "All you need do is leave them just as they are, call on
Lord Halifax two or three months hence, thank him for his kind observation
on those passages, and then read them to him as altered.  I have known him
much longer than you have, and will be answerable for the event."
        Pope took his advice, called on Lord Halifax and read the poem
exactly as it was before.  His unique critical faculties had lost none of
their edge.  "Ay", he commented, "now they are perfectly right.  Nothing can
be better."
                -- Stephen Pile, "The Book of Heroic Failures"

Reply via email to