You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by John Schmerold <sc...@gmail.com> on 2016/04/26 01:55:09 UTC
Trust but verify
One of my mail filters is a smart host for a trusted mail server
(mail.sample.com), how do we assign a -10 score to mail coming from
mail.sample.com
I thought this would work, but it doesn't:
score LOCAL__H_from_sample -10.0
header LOCAL__H_from_sample ALL =~ /mail\.sample\.com/i
Re: Trust but verify
Posted by John Hardin <jh...@impsec.org>.
On Mon, 25 Apr 2016, John Schmerold wrote:
> One of my mail filters is a smart host for a trusted mail server
> (mail.sample.com), how do we assign a -10 score to mail coming from
> mail.sample.com
>
> I thought this would work, but it doesn't:
> score LOCAL__H_from_sample -10.0
> header LOCAL__H_from_sample ALL =~ /mail\.sample\.com/i
Post the headers from such a message so we have something to work from.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
After ten years (1998-2008) of draconian gun control in the State
of Massachusetts, the results are in: firearms-related assaults up
78%, firearms-related homicides up 67%, assault-related emergency
room visits up 331%. Gun Control does not reduce violent crime.
-----------------------------------------------------------------------
125 days since the first successful real return to launch site (SpaceX)
Re: Trust but verify
Posted by David Jones <dj...@ena.com>.
>On 4/25/2016 7:07 PM, David Jones wrote:
>> score LOCAL__H_from_sample -10.0
>>> header LOCAL__H_from_sample ALL =~ /mail\.sample\.com/i
>> Add it's IP to your trusted_networks and subtract a few points for
>> ALL_TRUSTED. I wouldn't recommend subtracting 10 points as you
>> still want to be able to block outbound spam if there there were a
>> compromized account on that trusted server. If you don't properly
>> filter outbound email then your mail server could become listed on
>> RBLs.
>>
>> - Dave
>>
>>
>This did the trick:
>score ALL_TRUSTED -2
>
>Thanks guys
The nice side effect of doing it this way is if there is a compromised
account on this trusted server and the trusted servers inserts the
proper Received: or X-Originating-IP: headers, then SA will not
hit ALL_TRUSTED and will perform RBL checks against that IP so
you can properly score from earlier mail servers that you may
not trust. If the mail originates on the trusted mail server or
it doesn't put the proper headers, then it will hit ALL_TRUSTED.
Re: Trust but verify
Posted by John Schmerold <sc...@gmail.com>.
On 4/25/2016 7:07 PM, David Jones wrote:
> score LOCAL__H_from_sample -10.0
>> header LOCAL__H_from_sample ALL =~ /mail\.sample\.com/i
> Add it's IP to your trusted_networks and subtract a few points for
> ALL_TRUSTED. I wouldn't recommend subtracting 10 points as you
> still want to be able to block outbound spam if there there were a
> compromized account on that trusted server. If you don't properly
> filter outbound email then your mail server could become listed on
> RBLs.
>
> - Dave
>
>
This did the trick:
score ALL_TRUSTED -2
Thanks guys
Re: Trust but verify
Posted by David Jones <dj...@ena.com>.
>One of my mail filters is a smart host for a trusted mail server
>(mail.sample.com), how do we assign a -10 score to mail coming from
>mail.sample.com
>I thought this would work, but it doesn't:
>score LOCAL__H_from_sample -10.0
>header LOCAL__H_from_sample ALL =~ /mail\.sample\.com/i
Add it's IP to your trusted_networks and subtract a few points for
ALL_TRUSTED. I wouldn't recommend subtracting 10 points as you
still want to be able to block outbound spam if there there were a
compromized account on that trusted server. If you don't properly
filter outbound email then your mail server could become listed on
RBLs.
- Dave