non_smtp_milters don't work with spamassassin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

non_smtp_milters don't work with spamassassin

Guido Goluke, MajorLabel
I have a setup where I filter smtp mail with:

smtpd_milters=unix:/spamass/spamass.sock,
unix:/var/run/opendkim/opendkim.sock

and non-smtp mail with

non_smtpd_milters=unix:/spamass/spamass.sock,
unix:/var/run/opendkim/opendkim.sock

But when I receive non-smtp mail (typically LMTP, from a contact form
from a website on the same server) I see no spamassassin headers. I do
see DKIM headers though, so local miltering is working, just not for
spamassassin. Does anyone have an idea on how I can get this to work?
Reply | Threaded
Open this post in threaded view
|

Re: non_smtp_milters don't work with spamassassin

Dominic Raferd
On Wed, 5 Aug 2020 at 08:36, Guido Goluke, MajorLabel
<[hidden email]> wrote:

>
> I have a setup where I filter smtp mail with:
>
> smtpd_milters=unix:/spamass/spamass.sock,
> unix:/var/run/opendkim/opendkim.sock
>
> and non-smtp mail with
>
> non_smtpd_milters=unix:/spamass/spamass.sock,
> unix:/var/run/opendkim/opendkim.sock
>
> But when I receive non-smtp mail (typically LMTP, from a contact form
> from a website on the same server) I see no spamassassin headers. I do
> see DKIM headers though, so local miltering is working, just not for
> spamassassin. Does anyone have an idea on how I can get this to work?

I doubt it is a postfix issue. Your spamassassin may be configured so
that no headers get added unless it finds something spammy, maybe this
never happens with mail from your LMTP sources (deemed to be within
internal_networks or if there is some good filtering happening before
web contact form data is passed to postfix)?
Reply | Threaded
Open this post in threaded view
|

Re: non_smtp_milters don't work with spamassassin

Guido Goluke, MajorLabel

> On Wed, 5 Aug 2020 at 08:36, Guido Goluke, MajorLabel
> <[hidden email]> wrote:
>> I have a setup where I filter smtp mail with:
>>
>> smtpd_milters=unix:/spamass/spamass.sock,
>> unix:/var/run/opendkim/opendkim.sock
>>
>> and non-smtp mail with
>>
>> non_smtpd_milters=unix:/spamass/spamass.sock,
>> unix:/var/run/opendkim/opendkim.sock
>>
>> But when I receive non-smtp mail (typically LMTP, from a contact form
>> from a website on the same server) I see no spamassassin headers. I do
>> see DKIM headers though, so local miltering is working, just not for
>> spamassassin. Does anyone have an idea on how I can get this to work?
> I doubt it is a postfix issue. Your spamassassin may be configured so
> that no headers get added unless it finds something spammy, maybe this
> never happens with mail from your LMTP sources (deemed to be within
> internal_networks or if there is some good filtering happening before
> web contact form data is passed to postfix)?

Very well possible it is a spamassassin issue and not a postfix one.
Spamassassin always adds headers when it checks, even when it doesn't
find anything spammy. So here, spamassassin just never checks, it's not
that it doesn't find anything.

Thanks anyway, let me run this by the spamassassin people as well and
get back here if and when I find a solution.

Reply | Threaded
Open this post in threaded view
|

Re: non_smtp_milters don't work with spamassassin

Guido Goluke, MajorLabel

>> On Wed, 5 Aug 2020 at 08:36, Guido Goluke, MajorLabel
>> <[hidden email]> wrote:
>>> I have a setup where I filter smtp mail with:
>>>
>>> smtpd_milters=unix:/spamass/spamass.sock,
>>> unix:/var/run/opendkim/opendkim.sock
>>>
>>> and non-smtp mail with
>>>
>>> non_smtpd_milters=unix:/spamass/spamass.sock,
>>> unix:/var/run/opendkim/opendkim.sock
>>>
>>> But when I receive non-smtp mail (typically LMTP, from a contact form
>>> from a website on the same server) I see no spamassassin headers. I do
>>> see DKIM headers though, so local miltering is working, just not for
>>> spamassassin. Does anyone have an idea on how I can get this to work?
>> I doubt it is a postfix issue. Your spamassassin may be configured so
>> that no headers get added unless it finds something spammy, maybe this
>> never happens with mail from your LMTP sources (deemed to be within
>> internal_networks or if there is some good filtering happening before
>> web contact form data is passed to postfix)?
>
> Very well possible it is a spamassassin issue and not a postfix one.
> Spamassassin always adds headers when it checks, even when it doesn't
> find anything spammy. So here, spamassassin just never checks, it's
> not that it doesn't find anything.
>
> Thanks anyway, let me run this by the spamassassin people as well and
> get back here if and when I find a solution.
>
Sorry, already found out. I use spamass-milter
(https://linux.die.net/man/1/spamass-milter) which, out of the box,
doesn't offer mails from 127.0.0.1 to spamassassin at all.