I always intend to understand configs that I take from examples. The problem is, almost all examples describing "master.cf" say to put the string:
"-o content_filter=lmtp:unix:/var/run/dspam.sock" under "smtp inet n - n - - smtpd" 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. I don't know why this happens, maybe it's because of SSL configs in Postfix? (However, I've provided "main.cf", is there something wrong?) But if my current way of applying a content filter is not correct, then with "correct" config like in examples: smtp inet n - n - - smtpd -o content_filter=lmtp:unix:/var/run/dspam.sock DSPAM just doesn't tag any header. We can describe the problem in this way, if you wish. I have neither separate Posfix instances, nor additional mail server for now. The only configs I didn't provide now is Dovecot configs, but if you suspect that they can cause my problems, I can provide those configs also. 2015-01-29 20:29 GMT+04:00 Noel Jones <njo...@megan.vbhcs.org>: > The fix I provided is correct. If it doesn't work, then either you > are editing the wrong postfix config or you have some additional > problem. > > > > -- Noel Jones > > On 1/29/2015 10:19 AM, Орхан Ибад-оглы Гасымов wrote: > > That string does nothing when uncommented. Previously it was > > uncommented, but then DSPAM didn't tag headers at all. Then I copied > > that string under string starting with "smtps" (as you can see in > > "master.cf <http://master.cf>"), and DSPAM started to tag mails from > > local users, but not from outer domains. After that I commented out > > the first string (the one that you were talking about), to see if > > anything changes, and nothing changed. > > > > In short: if I uncomment that string, the situation doesn't change, > > but if I remove identical string currently put under "smtps", then > > DSPAM won't tag even local mail. > > > > Отправлено от Blue Mail <http://r.bluemailapp.com> > > > > На 29.01.2015, в 18:43, Noel Jones <njo...@megan.vbhcs.org > > <mailto:njo...@megan.vbhcs.org>> написал:п > > > > On 1/29/2015 7:32 AM, Орхан Ибад-оглы Гасымов wrote: > > > > > > 2. master.cf <http://master.cf> <http://master.cf>: > > > > # > > > -------------------------------------------------------------------- > > > > # service type private unpriv chroot wakeup maxproc command > > + args > > # (yes) (yes) (yes) (never) (100) > > # > > > -------------------------------------------------------------------- > > > > smtp inet n - n - - smtpd > > # -o content_filter=lmtp:unix:/var/run/dspam.sock > > > > > > > > You commented out the content_filter setting for mail arriving from > > the internet. Remove the "#", but be sure to leave some spaces > > before the " -o" then restart postfix. > > > > -- Noel Jones > > > >