Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm going through all the amavisd-new config files, and I can't find anything that tells amavis to talk to spamassassin/spamd to get a spam score. The reason I ask is because I'd like to swap out spamassassin for dspam, and am wondering how amavis is wired up.

share|improve this question

2 Answers 2

Amavis/Amavisd-new works as a filtering service. The general flow is Internet -> Postfix (or other) -> Amavisd-new -> Antispam -> Amavis -> A/V -> Postfix -> mailbox.

In the specific case of spamassassin the default config of amavisd is to invoke it directly via the perl module Mail::SpamAssassin. If memory serves right the examples (at least on debian) had quite a good commented configuration.

Generally speaking you need to tell amavis to send the mail on a socket (net/local/etc) and the thing on the other end of this socket should return the proper status.

More info can be found: http://wiki.apache.org/spamassassin/IntegratedInPostfixWithAmavis

A bit dated howto for dspam: http://help.ubuntu.ru/wiki/amavis_clamav_dspam_ubuntu_10_04 (in Russian but translate should deal with it)

share|improve this answer

Never mind, I figured it out. The file /usr/share/doc/amavisd-new/examples/amavisd.conf-default.gz contains the following line:

# @spam_scanners = ( ['SpamAssassin', 'Amavis::SpamControl::SpamAssassin'] );

So this is a default value that I wasn't seeing in my /etc/amavis/conf.d folder.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.