On 1/29/2015 10:52 AM, Орхан Ибад-оглы Гасымов wrote:
> I always intend to understand configs that I take from examples. The
> problem is, almost all examples describing "master.cf
> <http://master.cf>" say to put the string:
> 
> "-o content_filter=lmtp:unix:/var/run/dspam.sock"
> under 
> "smtp      inet  n       -       n       -       -       smtpd"

Yes, that is the correct way to enable a content filter for mail
coming from the internet.  Note the second line must be indented
with at least one space character.

Your dspam filter will certainly never work without this line.


> 
> In my setup, if I do so, it accomplishes nothing: DSPAM doesn't tag
> headers at all.
> 
> What worked in my case for local mails, was the same string
> 
> "-o content_filter=lmtp:unix:/var/run/dspam.sock"
> under 
> "smtps      inet  n       -       n       -       -       smtpd"
> 
> Then DSPAM started to tag headers for mail from local users.


Yes, that enables the same content filter for mail arriving via the
smtps port 465.  That shows you postfix really does call dspam when
told to.

Once you eliminate the possibility of master.cf syntax errors, then
the problem is outside postfix and you need to look at your dspam
logging and config.


  -- Noel Jones

Reply via email to