You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alex Regan <my...@gmail.com> on 2015/06/26 18:33:50 UTC

Rules needed...

Hi,

I have one system with greylisting enabled and another that hasn't yet 
been enabled. On the system without it, I'm receiving a ton of random 
spam that hits bayes99 but pretty much nothing else.

http://pastebin.com/FzUkEvRp

It all seems to be related to the same botnet because it has these 
random URLs to .gov sites in them, trying to legitimize its contents.

Any ideas for a rule or pattern that would block these more generally 
than for just this specific version?

I'm sure it would now be on all the RBLs and be blocked, but I'd like to 
know if there's something in the header or something else that can be 
done to block all the random versions of this without having to write 
body rules for each version.

I can supply other versions if needed...

Thanks,
Alex

Re: Rules needed...

Posted by Bill Cole <sa...@billmail.scconsult.com>.
On 26 Jun 2015, at 12:33, Alex Regan wrote:

> Hi,
>
> I have one system with greylisting enabled and another that hasn't yet 
> been enabled. On the system without it, I'm receiving a ton of random 
> spam that hits bayes99 but pretty much nothing else.
>
> http://pastebin.com/FzUkEvRp
>
> It all seems to be related to the same botnet because it has these 
> random URLs to .gov sites in them, trying to legitimize its contents.

No botnet, rather a "snowshoe" spammer: one who buys fixed ranges of IPs 
typically smaller than /25 from careless or knowingly collaborative 
ISPs, and spreads their use across the whole range and often multiple 
ranges, sometimes across multiple ISPs simultaneously. This allows them 
to keep the flow from any one IP below levels where simplistic trafic 
monitoring would catch it.

The CSS component of the Spamhaus BL (also included in their Zen 
combined DNSBL) is designed to catch these spammers and it does a very 
good job. Within less than a minute of the message you pasted, they were 
listing 45.62.178.8 and nearby addresses. Looking at a log for one 
system I work with, I see that /25 offered over 100 messages today 
starting around 13:45 UTC and because of the CSS, 95% were refused.

> Any ideas for a rule or pattern that would block these more generally 
> than for just this specific version?

I see similarities between the message you posted and some I've seen 
recently from 23.245.225.0/24, but I haven't worked up rules for them 
yet, as they are not simple: an odd pattern of domains used in the SMTP 
envelope, From header, and Message-ID. The MID is the only thing that 
seems relatively simple: a long pseudo-TLD (.local and .sender are 2 
I've seen) appended to a classical gTLD domain (.com, .org, etc). The 
inter-relation between domains in the envelope and headers is probably 
not subject to rules per se...

There's also a particular issue with sharing rules for this spam. See 
below...

> I'm sure it would now be on all the RBLs and be blocked, but I'd like 
> to know if there's something in the header or something else that can 
> be done to block all the random versions of this without having to 
> write body rules for each version.
>
> I can supply other versions if needed...

No doubt...

This stream is the latest iteration of a snowshoe spammer (or related 
set of spammers) who have a relatively stable and limited address list, 
but have been spamming those poor folks mercilessly for most of a 
decade. Less than 10% of addresses on any system where I've seen it over 
the years get it at all, but those get hammered: dozens per day if left 
unshielded, a steady trickle of a few per week getting through even with 
the most diligent protection. This is the spam that makes people abandon 
addresses. That is why I have 'trap' addresses on one system that get no 
other mail but these streams: their original owners sought refuge in 
fresh addresses years ago.

The problem with sharing rules for this spam is that even when the 
sharing is not very public (e.g. not posted on this or any other open 
list) there has been a history of the spam evolving away from long-good 
patterns swiftly after they appear in public use, even if they aren't 
well-documented. It seems that this is spam which gets tested against 
the SA standard ruleset *and other published rules* and actively evolved 
away from being caught. In short: these are the smartest spammers in 
active operation when it comes to filter evasion.

So please: write a rule that matches the last element of a MID domain 
being longer than 3 characters and the 2nd to last being 3 or shorter 
and give it a big fact score, but don't post it here or pass it around 
to people who publish rulesets. You may also find persistent 
commonalities in structural quirks of the MIME and HTML layers of these 
messages (there have been such in the past...) but if you want those to 
remain useful, don't tell us about them. Yeah, this sucks.

Re: Rules needed...

Posted by Ted Mittelstaedt <te...@ipinc.net>.
Are you running a centralized Bayes with some honeypot addresses feeding
it?

A search of your messages log should give you plenty of bogus email 
addresses that the botnet has been probing for on your system.  Pick
some of the obvious ones and set them up as feeders to Bays and that 
should take care of this.

Ted

On 6/26/2015 9:33 AM, Alex Regan wrote:
> Hi,
>
> I have one system with greylisting enabled and another that hasn't yet
> been enabled. On the system without it, I'm receiving a ton of random
> spam that hits bayes99 but pretty much nothing else.
>
> http://pastebin.com/FzUkEvRp
>
> It all seems to be related to the same botnet because it has these
> random URLs to .gov sites in them, trying to legitimize its contents.
>
> Any ideas for a rule or pattern that would block these more generally
> than for just this specific version?
>
> I'm sure it would now be on all the RBLs and be blocked, but I'd like to
> know if there's something in the header or something else that can be
> done to block all the random versions of this without having to write
> body rules for each version.
>
> I can supply other versions if needed...
>
> Thanks,
> Alex

Re: Rules needed...

Posted by David Jones <dj...@ena.com>.
>From: Benny Pedersen <me...@junc.eu>
Sent: Friday, June 26, 2015 11:45 AM
>To: users@spamassassin.apache.org
>Subject: Re: Rules needed...

>Alex Regan skrev den 2015-06-26 18:33:

>> http://pastebin.com/FzUkEvRp

>blacklist_from *@*.allisonarctictrips.com

>spf-pass take responselily

That IP is on a ton of RBLs.  Setup RBLs on the MTA to
save yourself a lot of headaches playing whack-a-mole
like this.
Search back on this list for numerous RBL threads on
which ones to start with and how to setup a local caching
DNS server to make sure your DNS queries to RBLs don't
get aggregated in with others so you keep your traffic
below their thresholds for free usage.

http://multirbl.valli.org/lookup/65.11.16.3.html

Dave

Re: Rules needed...

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>> But, putting RBL checks into the MTA is the best way I know to piss off
>> your users since tag-and-forward is not an option on MTA rbl checking.
>> That's why we all do our RBL checks in spamassassin.

On 27.06.15 10:18, Martin S wrote:
>Could you elaborate on this? I'm "new" to running a mail server (it's in test
>phase atm) as my only experience is with sendmail many years ago. I take it SA
>does RBL look-ups by default and there is no need to att RBL look-ups in
>postfix main.cf file?

The MTA can use RBLs and refuse the mail based on connecting IP listd in
RBL, without the need to receive mail itself, but Ted is argiung against
this (so are many others).

There are other possibilities - you can check HELO string, connecting IP,
DNS, multiple RBLs etc - all without receving the mail, before the DATA
phase, when SA can't be used (SA needs the mail).
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
You have the right to remain silent. Anything you say will be misquoted,
then used against you. 

Re: Rules needed...

Posted by Reindl Harald <h....@thelounge.net>.
Am 29.06.2015 um 20:00 schrieb Ted Mittelstaedt:
> I have users who sometimes want to receive mail from a system in an RBL.
> It's their mailbox, they are paying for it.  Why should I not let them
> do it?
>
> these are corporate customers getting mail from other corporate
> customers who are completely clueless that they are on an RBL and don't
> give a damn if you told them they were.

what exactly did you not understand in "RBL scoring"

frankly a server on enough RBLs to get rejected by it would also reach 
the sa-score for a milter reject

> My experience is RBLs don't guarantee "dead sure spam"   Unfortunately,
> the effectiveness of RBLs has drastically decreased in recent years, at
> least for the mail _I_ am getting.  Too much spam is coming in now
> that's from IPs that are not on ANY RBLs but clearly ought to be

when you *score* multiple RBLs combined with DNSWL and the reject score 
is high enough you can guarantee it and even when most of the rest comes 
from gmail, yahoo and friends there are every day 40 times more RBL 
rejects than spamass-milter rejects


Re: Rules needed...

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>On 6/29/2015 10:39 AM, Reindl Harald wrote:
>>tell me one reason why should i waste 1-5 seconds for on some days a
>>million blocked mails while i can get rid of them in ms?

On 29.06.15 11:00, Ted Mittelstaedt wrote:
>Because, it's 1-5 seconds.  If it was 1-5 minutes then sure.

million times 1-5 seconds is stil some time...

>>every contentfilter is expensive, frankly even let the client go so far
>>that he starts to send mailbody while you already know for sure you can
>>quit the connection is expensive

>Unless your running a) free or b) corporate mailservers, the client is
>PAYING YOU for that content filtering.  It's not your money, it's his
>money.  Spend it!

Since (nearly) all customers search ways to pay less money for their
services, it's often worth to avoid spending their money for something that
is not really needed.

1. yes, I know this is often way to hell, but not always

2. I don't agree with Harald very often, but I find smtp-time scoring safe,
if properly set up

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I wonder how much deeper the ocean would be without sponges. 

Re: Rules needed...

Posted by Ted Mittelstaedt <te...@ipinc.net>.

On 6/29/2015 10:39 AM, Reindl Harald wrote:
>
>
> Am 29.06.2015 um 19:28 schrieb Ted Mittelstaedt:
>> The days of squeezing every last CPU cycle out of something are
>> long, gone Reindl.
>
> nonsense
>
>> I really appreciate that your bound and determined to keep that
>> 80486 server running but nobody else is doing it anymore.
>
> tell me one reason why should i waste 1-5 seconds for on some days a
> million blocked mails while i can get rid of them in ms?
>

Because, it's 1-5 seconds.  If it was 1-5 minutes then sure.

>> Why do you think SA is written in Perl? Of all languages!!!
>> Sure, let's pick the -slowest- scripting language available for
>> a high-volume filtering system!
>
> why not when it don#t have to deal with every connection
>
>> What is an "expensive content filter"?
>
> every contentfilter is expensive, frankly even let the client go so far
> that he starts to send mailbody while you already know for sure you can
> quit the connection is expensive
>

Unless your running a) free or b) corporate mailservers, the client is
PAYING YOU for that content filtering.  It's not your money, it's his
money.  Spend it!

>> It's a content filter that is run on an underpowered server that should
>> have been retired 5 years ago.
>>
>> Dude, check out hardware prices for God's sake! They are selling
>> dual CPU, with each CPU quad core 1U servers for $150 on the used
>> market nowadays.
>
> dude i work with a 50 GHz cluster and 200 GB RAM
>

That small?

> but that is not a reason to waste ressources, power, cooling and at the
> end of the day it makes a difference independet of how fast your
> hardware is
>
>> You can waste a whole lot of time chasing down those last bits of CPU
>> cycle. If your the size of Google then maybe it is still worth doing.
>
> i waste a lot of time by *once* setup RBL weighting and have running it
> untouched for years - *lol*
>
>> But if your not, then maintainability and flexibility are far more
>> important.
>>
>> When you block something outside of SA than you lose flexibility and
>> increase maintenance needs. You push the ability to control acceptance
>> of a particular email further away from your users.
>
> jesus christ my users don't want that control,

Mine do.  Clearly different markets, here.  If your handing out free
addresses or getting money from ad revenue or something like that, then
sure, I can agree with what your saying.

  they don't want have
> tagged junk, they just want the rest and pay for that
>

I have users who sometimes want to receive mail from a system in an RBL.
It's their mailbox, they are paying for it.  Why should I not let them
do it?

these are corporate customers getting mail from other corporate 
customers who are completely clueless that they are on an RBL and don't 
give a damn if you told them they were.

>> Oh sure, you can wow your friends with graphs of CPU utilization and
>> boast about how you managed to create a Byzantine system that would be
>> more appropriate with a million accounts where saving a few cycles over
>> all of them would actually add up to something.
>
> childish argumentation
>
>> But, why on Earth would you build a system with all the disadvantages
>> and inflexibility of a giant email provider that has to worrry about
>> "expensive content filtering" when your NOT a giant email provider?
>
> bullshit - there are no disadvantages and there is no inflexibility when
> you use sensible *scoring* and take whitelists into the mix - you just
> block *dead sure spam* at the MTA level and *the rest* is for the
> contentfilter
>

My experience is RBLs don't guarantee "dead sure spam"   Unfortunately, 
the effectiveness of RBLs has drastically decreased in recent years, at 
least for the mail _I_ am getting.  Too much spam is coming in now 
that's from IPs that are not on ANY RBLs but clearly ought to be.

Ted

>> Far smarter to build a system that can take full advantage of being
>> small when you ARE small!!!
>>
>> Ted
>>
>> On 6/29/2015 9:35 AM, Reindl Harald wrote:
>>>
>>> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
>>>> Of course, Postfix fixes everything from AIDS to global warming, it's
>>>> the greatest MTA ever invented. <eyeroll>
>>>
>>> for other MTA'S score-bayes RBL handling on MTA level exists too in form
>>> of policy daemons <eyeroll>
>>>
>>>> Exactly the kind of thing I would expect from you. Haven't you worn
>>>> out that Postfix drum your banging yet?
>>>
>>> no but "That's why we all do our RBL checks in spamassassin" is plain
>>> wrong, *you are doing* not "we all" - most people except you try to get
>>> most spam blocked in a sensible way before it hits expensive content
>>> filters, so just stop talk about "we all" if you have no clue
>>>
>>> the RBL checks in SA are fine and good, but only for addititional
>>> scoring comined with other rules to get messages rejected via milter
>>> which are not on enough RBLs to block them straight ahead
>>>
>>>> On 6/27/2015 3:04 AM, Reindl Harald wrote:
>>>>> Am 27.06.2015 um 10:18 schrieb Martin S:
>>>>>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>>>>>
>>>>>>> But, putting RBL checks into the MTA is the best way I know to piss
>>>>>>> off
>>>>>>> your users since tag-and-forward is not an option on MTA rbl
>>>>>>> checking.
>>>>>>> That's why we all do our RBL checks in spamassassin.
>>>>>>
>>>>>> Could you elaborate on this? I'm "new" to running a mail server (it's
>>>>>> in test
>>>>>> phase atm) as my only experience is with sendmail many years ago. I
>>>>>> take it SA
>>>>>> does RBL look-ups by default and there is no need to att RBL
>>>>>> look-ups in
>>>>>> postfix main.cf file?
>>>>>
>>>>> he should speek for himself and not for "us all"
>>>>>
>>>>> a sane MTA setup is using something like Postscreen with scoring and
>>>>> *you don't want* to scan and tag 90% of all mails which are on 5 or
>>>>> even
>>>>> 10 RBLs, frankly you won't waste a smtpd process at all when
>>>>> postscreen
>>>>> can kill them
>>>>>
>>>>> below the current month and scanning additional 200000 messages would
>>>>> waste ressources all day long
>>>>>
>>>>> Reject Postscreen: 205389
>>>>> Reject Postfix: 18275
>>>>> Reject Milter: 7052
>>>>> Reject Temporary: 1888
>>>>> Blacklist: 200032
>>>>> Pregreet: 40171
>>>>> Hangup: 74936
>>>>> Protocol Error: 3479
>

Re: Rules needed...

Posted by Reindl Harald <h....@thelounge.net>.

Am 29.06.2015 um 19:28 schrieb Ted Mittelstaedt:
> The days of squeezing every last CPU cycle out of something are
> long, gone Reindl.

nonsense

> I really appreciate that your bound and determined to keep that
> 80486 server running but nobody else is doing it anymore.

tell me one reason why should i waste 1-5 seconds for on some days a 
million blocked mails while i can get rid of them in ms?

> Why do you think SA is written in Perl?  Of all languages!!!
> Sure, let's pick the -slowest- scripting language available for
> a high-volume filtering system!

why not when it don#t have to deal with every connection

> What is an "expensive content filter"?

every contentfilter is expensive, frankly even let the client go so far 
that he starts to send mailbody while you already know for sure you can 
quit the connection is expensive

> It's a content filter that is run on an underpowered server that should
> have been retired 5 years ago.
>
> Dude, check out hardware prices for God's sake!  They are selling
> dual CPU, with each CPU quad core 1U servers for $150 on the used
> market nowadays.

dude i work with a 50 GHz cluster and 200 GB RAM

but that is not a reason to waste ressources, power, cooling and at the 
end of the day it makes a difference independet of how fast your hardware is

> You can waste a whole lot of time chasing down those last bits of CPU
> cycle.  If your the size of Google then maybe it is still worth doing.

i waste a lot of time by *once* setup RBL weighting and have running it 
untouched for years - *lol*

> But if your not, then maintainability and flexibility are far more
> important.
>
> When you block something outside of SA than you lose flexibility and
> increase maintenance needs.  You push the ability to control acceptance
> of a particular email further away from your users.

jesus christ my users don't want that control, they don't want have 
tagged junk, they just want the rest and pay for that

> Oh sure, you can wow your friends with graphs of CPU utilization and
> boast about how you managed to create a Byzantine system that would be
> more appropriate with a million accounts where saving a few cycles over
> all of them would actually add up to something.

childish argumentation

> But, why on Earth would you build a system with all the disadvantages
> and inflexibility of a giant email provider that has to worrry about
> "expensive content filtering" when your NOT a giant email provider?

bullshit - there are no disadvantages and there is no inflexibility when 
you use sensible *scoring* and take whitelists into the mix - you just 
block *dead sure spam* at the MTA level and *the rest* is for the 
contentfilter

> Far smarter to build a system that can take full advantage of being
> small when you ARE small!!!
>
> Ted
>
> On 6/29/2015 9:35 AM, Reindl Harald wrote:
>>
>> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
>>> Of course, Postfix fixes everything from AIDS to global warming, it's
>>> the greatest MTA ever invented. <eyeroll>
>>
>> for other MTA'S score-bayes RBL handling on MTA level exists too in form
>> of policy daemons <eyeroll>
>>
>>> Exactly the kind of thing I would expect from you. Haven't you worn
>>> out that Postfix drum your banging yet?
>>
>> no but "That's why we all do our RBL checks in spamassassin" is plain
>> wrong, *you are doing* not "we all" - most people except you try to get
>> most spam blocked in a sensible way before it hits expensive content
>> filters, so just stop talk about "we all" if you have no clue
>>
>> the RBL checks in SA are fine and good, but only for addititional
>> scoring comined with other rules to get messages rejected via milter
>> which are not on enough RBLs to block them straight ahead
>>
>>> On 6/27/2015 3:04 AM, Reindl Harald wrote:
>>>> Am 27.06.2015 um 10:18 schrieb Martin S:
>>>>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>>>>
>>>>>> But, putting RBL checks into the MTA is the best way I know to piss
>>>>>> off
>>>>>> your users since tag-and-forward is not an option on MTA rbl
>>>>>> checking.
>>>>>> That's why we all do our RBL checks in spamassassin.
>>>>>
>>>>> Could you elaborate on this? I'm "new" to running a mail server (it's
>>>>> in test
>>>>> phase atm) as my only experience is with sendmail many years ago. I
>>>>> take it SA
>>>>> does RBL look-ups by default and there is no need to att RBL
>>>>> look-ups in
>>>>> postfix main.cf file?
>>>>
>>>> he should speek for himself and not for "us all"
>>>>
>>>> a sane MTA setup is using something like Postscreen with scoring and
>>>> *you don't want* to scan and tag 90% of all mails which are on 5 or
>>>> even
>>>> 10 RBLs, frankly you won't waste a smtpd process at all when postscreen
>>>> can kill them
>>>>
>>>> below the current month and scanning additional 200000 messages would
>>>> waste ressources all day long
>>>>
>>>> Reject Postscreen: 205389
>>>> Reject Postfix: 18275
>>>> Reject Milter: 7052
>>>> Reject Temporary: 1888
>>>> Blacklist: 200032
>>>> Pregreet: 40171
>>>> Hangup: 74936
>>>> Protocol Error: 3479


Re: Rules needed...

Posted by Ted Mittelstaedt <te...@ipinc.net>.
The days of squeezing every last CPU cycle out of something are
long, gone Reindl.

I really appreciate that your bound and determined to keep that
80486 server running but nobody else is doing it anymore.

Why do you think SA is written in Perl?  Of all languages!!!
Sure, let's pick the -slowest- scripting language available for
a high-volume filtering system!

What is an "expensive content filter"?

It's a content filter that is run on an underpowered server that should 
have been retired 5 years ago.

Dude, check out hardware prices for God's sake!  They are selling
dual CPU, with each CPU quad core 1U servers for $150 on the used
market nowadays.

You can waste a whole lot of time chasing down those last bits of CPU
cycle.  If your the size of Google then maybe it is still worth doing.

But if your not, then maintainability and flexibility are far more
important.

When you block something outside of SA than you lose flexibility and
increase maintenance needs.  You push the ability to control acceptance
of a particular email further away from your users.

Oh sure, you can wow your friends with graphs of CPU utilization and
boast about how you managed to create a Byzantine system that would be
more appropriate with a million accounts where saving a few cycles over
all of them would actually add up to something.

But, why on Earth would you build a system with all the disadvantages
and inflexibility of a giant email provider that has to worrry about 
"expensive content filtering" when your NOT a giant email provider?

Far smarter to build a system that can take full advantage of being
small when you ARE small!!!

Ted

On 6/29/2015 9:35 AM, Reindl Harald wrote:
>
> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
>> Of course, Postfix fixes everything from AIDS to global warming, it's
>> the greatest MTA ever invented. <eyeroll>
>
> for other MTA'S score-bayes RBL handling on MTA level exists too in form
> of policy daemons <eyeroll>
>
>> Exactly the kind of thing I would expect from you. Haven't you worn
>> out that Postfix drum your banging yet?
>
> no but "That's why we all do our RBL checks in spamassassin" is plain
> wrong, *you are doing* not "we all" - most people except you try to get
> most spam blocked in a sensible way before it hits expensive content
> filters, so just stop talk about "we all" if you have no clue
>
> the RBL checks in SA are fine and good, but only for addititional
> scoring comined with other rules to get messages rejected via milter
> which are not on enough RBLs to block them straight ahead
>
>> On 6/27/2015 3:04 AM, Reindl Harald wrote:
>>> Am 27.06.2015 um 10:18 schrieb Martin S:
>>>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>>>
>>>>> But, putting RBL checks into the MTA is the best way I know to piss
>>>>> off
>>>>> your users since tag-and-forward is not an option on MTA rbl checking.
>>>>> That's why we all do our RBL checks in spamassassin.
>>>>
>>>> Could you elaborate on this? I'm "new" to running a mail server (it's
>>>> in test
>>>> phase atm) as my only experience is with sendmail many years ago. I
>>>> take it SA
>>>> does RBL look-ups by default and there is no need to att RBL
>>>> look-ups in
>>>> postfix main.cf file?
>>>
>>> he should speek for himself and not for "us all"
>>>
>>> a sane MTA setup is using something like Postscreen with scoring and
>>> *you don't want* to scan and tag 90% of all mails which are on 5 or even
>>> 10 RBLs, frankly you won't waste a smtpd process at all when postscreen
>>> can kill them
>>>
>>> below the current month and scanning additional 200000 messages would
>>> waste ressources all day long
>>>
>>> Reject Postscreen: 205389
>>> Reject Postfix: 18275
>>> Reject Milter: 7052
>>> Reject Temporary: 1888
>>> Blacklist: 200032
>>> Pregreet: 40171
>>> Hangup: 74936
>>> Protocol Error: 3479
>

Re: Rules needed...

Posted by Reindl Harald <h....@thelounge.net>.

Am 29.06.2015 um 19:34 schrieb Ted Mittelstaedt:
> My objection isn't to Postfix.  My objection is to assuming that
> Postfix is the one and only way to do something.
>
> If you have an idea on how to block spam I'm all ears - until your
> idea gets positioned as a Postfix-only solution first.
>
> If you cannot explain how your idea works, and all you can do is throw
> off a "load postblahblah" then your NOT HELPING your just saying in
> a rather veiled way that Postfix is better

bullshit - i said "RBL scoring" and "something like postscreen"

frankly the OP afaik did not mention his MTA at all and type "RBL 
scoring" in google isnot that hard while at the same time smarter people 
like you could have pointed out the same for other MTA's

i point out solutions because i use them with success and hence there is 
no need for you to bite around like a little child


Re: Rules needed...

Posted by Ted Mittelstaedt <te...@ipinc.net>.

On 6/29/2015 9:48 AM, Charles Sprickman wrote:
> On Jun 29, 2015, at 12:35 PM, Reindl Harald<h....@thelounge.net>  wrote:
>
>>
>> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
>>> Of course, Postfix fixes everything from AIDS to global warming, it's
>>> the greatest MTA ever invented.<eyeroll>
>>
>> for other MTA'S score-bayes RBL handling on MTA level exists too in form of policy daemons<eyeroll>
>>
>>> Exactly the kind of thing I would expect from you.  Haven't you worn
>>> out that Postfix drum your banging yet?
>
> What other free MTA is there that’s in common use?  qmail is dead and buried.  Sendmail and Exim are pretty much niche.  What exactly is wrong with Postfix?
>

Nothing!

But, nothing is wrong with Sendmail either!  Calling it niche is just 
being a software bigot.

And you know there's even people running - gasp - Exchange - or at least 
that's what Microsoft CLAIMS to be doing on outlook.com/hotmail.com etc.

My objection isn't to Postfix.  My objection is to assuming that
Postfix is the one and only way to do something.

If you have an idea on how to block spam I'm all ears - until your
idea gets positioned as a Postfix-only solution first.

If you cannot explain how your idea works, and all you can do is throw
off a "load postblahblah" then your NOT HELPING your just saying in
a rather veiled way that Postfix is better.

Ted

Re: Rules needed...

Posted by David Jones <dj...@ena.com>.
>On Jun 29, 2015, at 12:35 PM, Reindl Harald <h....@thelounge.net> wrote:
>>
>> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:

>What other free MTA is there that’s in common use?  qmail is dead and
>buried.  Sendmail and Exim are pretty much niche.  What exactly is wrong
>with Postfix?

Nothing.  It's very powerful and fast with a lot of features built-in and
plenty that can be added in added in as a milter.  Postscreen is amazing
with RBL weighting (just learned this recently from Reindl's suggestion).

> I also do not undersrtand your (Ted) attitude, it really doesn’t seem
>appropriate for this list.

Chris, Ted, and others,
Please don't take  Reindl's comments as personal.  He is always like this.  Maybe
English is not his first language or something and he doesn't understand how
harsh he comes across.  I have tried to email him off list to tone down his emails
but nothing has changed.  He has some good points and is very knowledgeable
so we will have to take the bad with the good.  I try to give him the benefit of
the doubt that he simply means well.

Email is not a place for emotion since there are no clues of body language or
context so it's best to keep emails factual and free of opinion and expletives.

>Absolutely.  The amount of load you take off spamassassin by having the MTA
>do some filtering (and it’s not an all-or-nothing affair with postscreen) is pretty
>amazing.  I see no reason to let junk that far into the infrastructure when I can
>block it at the front door with so many fewer cpu cycles.  Putting weighted RBLs
>up front also frees you up to re-examine your spamassassin config.  And of
>course you can toggle postscreen on a per-user basis if you have customers that
>want all the spam…

If you filter for large environments (more than a few hundred mailboxes) or
don't use SA via a milter at SMTP-time, i.e. MailScanner, it's not possible to
scan all of your email in SA and do it fast (a few seconds) without a lot of
CPUs (across many servers).  I block as much as possible in Postfix so the
sender has proper feedback at the SMTP-level.  And before everyone gets
started on this being backscatter, it's not backscatter.  Backscatter would
be caused by accepting the message at SMTP-time then later bouncing it
back to a potentially forged envelope-from address.

Dave

Re: Rules needed...

Posted by Charles Sprickman <sp...@bway.net>.
On Jun 29, 2015, at 12:35 PM, Reindl Harald <h....@thelounge.net> wrote:

> 
> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
>> Of course, Postfix fixes everything from AIDS to global warming, it's
>> the greatest MTA ever invented. <eyeroll>
> 
> for other MTA'S score-bayes RBL handling on MTA level exists too in form of policy daemons <eyeroll>
> 
>> Exactly the kind of thing I would expect from you.  Haven't you worn
>> out that Postfix drum your banging yet?

What other free MTA is there that’s in common use?  qmail is dead and buried.  Sendmail and Exim are pretty much niche.  What exactly is wrong with Postfix?

I also do not undersrtand your (Ted) attitude, it really doesn’t seem appropriate for this list.

> 
> no but "That's why we all do our RBL checks in spamassassin" is plain wrong, *you are doing* not "we all" - most people except you try to get most spam blocked in a sensible way before it hits expensive content filters, so just stop talk about "we all" if you have no clue
> 
> the RBL checks in SA are fine and good, but only for addititional scoring comined with other rules to get messages rejected via milter which are not on enough RBLs to block them straight ahead

Absolutely.  The amount of load you take off spamassassin by having the MTA do some filtering (and it’s not an all-or-nothing affair with postscreen) is pretty amazing.  I see no reason to let junk that far into the infrastructure when I can block it at the front door with so many fewer cpu cycles.  Putting weighted RBLs up front also frees you up to re-examine your spamassassin config.  And of course you can toggle postscreen on a per-user basis if you have customers that want all the spam…

Charles (not speaking as a “we”)

> 
>> On 6/27/2015 3:04 AM, Reindl Harald wrote:
>>> Am 27.06.2015 um 10:18 schrieb Martin S:
>>>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>>> 
>>>>> But, putting RBL checks into the MTA is the best way I know to piss off
>>>>> your users since tag-and-forward is not an option on MTA rbl checking.
>>>>> That's why we all do our RBL checks in spamassassin.
>>>> 
>>>> Could you elaborate on this? I'm "new" to running a mail server (it's
>>>> in test
>>>> phase atm) as my only experience is with sendmail many years ago. I
>>>> take it SA
>>>> does RBL look-ups by default and there is no need to att RBL look-ups in
>>>> postfix main.cf file?
>>> 
>>> he should speek for himself and not for "us all"
>>> 
>>> a sane MTA setup is using something like Postscreen with scoring and
>>> *you don't want* to scan and tag 90% of all mails which are on 5 or even
>>> 10 RBLs, frankly you won't waste a smtpd process at all when postscreen
>>> can kill them
>>> 
>>> below the current month and scanning additional 200000 messages would
>>> waste ressources all day long
>>> 
>>> Reject Postscreen: 205389
>>> Reject Postfix: 18275
>>> Reject Milter: 7052
>>> Reject Temporary: 1888
>>> Blacklist: 200032
>>> Pregreet: 40171
>>> Hangup: 74936
>>> Protocol Error: 3479
> 


Re: Rules needed...

Posted by Reindl Harald <h....@thelounge.net>.
and here you go, so the next time before you answer with foam in front 
of your mouth and don't get what "something like Postscreen" means 
educate yourself!

http://blog.schalanda.name/archives/118-Exim-4-and-policyd-weight.html/

Am 29.06.2015 um 18:35 schrieb Reindl Harald:
>
> Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
>> Of course, Postfix fixes everything from AIDS to global warming, it's
>> the greatest MTA ever invented. <eyeroll>
>
> for other MTA'S score-bayes RBL handling on MTA level exists too in form
> of policy daemons <eyeroll>
>
>> Exactly the kind of thing I would expect from you.  Haven't you worn
>> out that Postfix drum your banging yet?
>
> no but "That's why we all do our RBL checks in spamassassin" is plain
> wrong, *you are doing* not "we all" - most people except you try to get
> most spam blocked in a sensible way before it hits expensive content
> filters, so just stop talk about "we all" if you have no clue
>
> the RBL checks in SA are fine and good, but only for addititional
> scoring comined with other rules to get messages rejected via milter
> which are not on enough RBLs to block them straight ahead
>
>> On 6/27/2015 3:04 AM, Reindl Harald wrote:
>>> Am 27.06.2015 um 10:18 schrieb Martin S:
>>>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>>>
>>>>> But, putting RBL checks into the MTA is the best way I know to piss
>>>>> off
>>>>> your users since tag-and-forward is not an option on MTA rbl checking.
>>>>> That's why we all do our RBL checks in spamassassin.
>>>>
>>>> Could you elaborate on this? I'm "new" to running a mail server (it's
>>>> in test
>>>> phase atm) as my only experience is with sendmail many years ago. I
>>>> take it SA
>>>> does RBL look-ups by default and there is no need to att RBL
>>>> look-ups in
>>>> postfix main.cf file?
>>>
>>> he should speek for himself and not for "us all"
>>>
>>> a sane MTA setup is using something like Postscreen with scoring and
>>> *you don't want* to scan and tag 90% of all mails which are on 5 or even
>>> 10 RBLs, frankly you won't waste a smtpd process at all when postscreen
>>> can kill them
>>>
>>> below the current month and scanning additional 200000 messages would
>>> waste ressources all day long
>>>
>>> Reject Postscreen: 205389
>>> Reject Postfix: 18275
>>> Reject Milter: 7052
>>> Reject Temporary: 1888
>>> Blacklist: 200032
>>> Pregreet: 40171
>>> Hangup: 74936
>>> Protocol Error: 3479


Re: Rules needed...

Posted by Reindl Harald <h....@thelounge.net>.
Am 29.06.2015 um 18:29 schrieb Ted Mittelstaedt:
> Of course, Postfix fixes everything from AIDS to global warming, it's
> the greatest MTA ever invented. <eyeroll>

for other MTA'S score-bayes RBL handling on MTA level exists too in form 
of policy daemons <eyeroll>

> Exactly the kind of thing I would expect from you.  Haven't you worn
> out that Postfix drum your banging yet?

no but "That's why we all do our RBL checks in spamassassin" is plain 
wrong, *you are doing* not "we all" - most people except you try to get 
most spam blocked in a sensible way before it hits expensive content 
filters, so just stop talk about "we all" if you have no clue

the RBL checks in SA are fine and good, but only for addititional 
scoring comined with other rules to get messages rejected via milter 
which are not on enough RBLs to block them straight ahead

> On 6/27/2015 3:04 AM, Reindl Harald wrote:
>> Am 27.06.2015 um 10:18 schrieb Martin S:
>>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>>
>>>> But, putting RBL checks into the MTA is the best way I know to piss off
>>>> your users since tag-and-forward is not an option on MTA rbl checking.
>>>> That's why we all do our RBL checks in spamassassin.
>>>
>>> Could you elaborate on this? I'm "new" to running a mail server (it's
>>> in test
>>> phase atm) as my only experience is with sendmail many years ago. I
>>> take it SA
>>> does RBL look-ups by default and there is no need to att RBL look-ups in
>>> postfix main.cf file?
>>
>> he should speek for himself and not for "us all"
>>
>> a sane MTA setup is using something like Postscreen with scoring and
>> *you don't want* to scan and tag 90% of all mails which are on 5 or even
>> 10 RBLs, frankly you won't waste a smtpd process at all when postscreen
>> can kill them
>>
>> below the current month and scanning additional 200000 messages would
>> waste ressources all day long
>>
>> Reject Postscreen: 205389
>> Reject Postfix: 18275
>> Reject Milter: 7052
>> Reject Temporary: 1888
>> Blacklist: 200032
>> Pregreet: 40171
>> Hangup: 74936
>> Protocol Error: 3479


Re: Rules needed...

Posted by Ted Mittelstaedt <te...@ipinc.net>.
Of course, Postfix fixes everything from AIDS to global warming, it's 
the greatest MTA ever invented. <eyeroll>

Exactly the kind of thing I would expect from you.  Haven't you worn
out that Postfix drum your banging yet?

Ted

On 6/27/2015 3:04 AM, Reindl Harald wrote:
>
>
> Am 27.06.2015 um 10:18 schrieb Martin S:
>> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>>
>>> But, putting RBL checks into the MTA is the best way I know to piss off
>>> your users since tag-and-forward is not an option on MTA rbl checking.
>>> That's why we all do our RBL checks in spamassassin.
>>
>> Could you elaborate on this? I'm "new" to running a mail server (it's
>> in test
>> phase atm) as my only experience is with sendmail many years ago. I
>> take it SA
>> does RBL look-ups by default and there is no need to att RBL look-ups in
>> postfix main.cf file?
>
> he should speek for himself and not for "us all"
>
> a sane MTA setup is using something like Postscreen with scoring and
> *you don't want* to scan and tag 90% of all mails which are on 5 or even
> 10 RBLs, frankly you won't waste a smtpd process at all when postscreen
> can kill them
>
> below the current month and scanning additional 200000 messages would
> waste ressources all day long
>
> Reject Postscreen: 205389
> Reject Postfix: 18275
> Reject Milter: 7052
> Reject Temporary: 1888
> Blacklist: 200032
> Pregreet: 40171
> Hangup: 74936
> Protocol Error: 3479
>

Re: Rules needed...

Posted by Reindl Harald <h....@thelounge.net>.

Am 27.06.2015 um 10:18 schrieb Martin S:
> On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:
>
>> But, putting RBL checks into the MTA is the best way I know to piss off
>> your users since tag-and-forward is not an option on MTA rbl checking.
>> That's why we all do our RBL checks in spamassassin.
>
> Could you elaborate on this? I'm "new" to running a mail server (it's in test
> phase atm) as my only experience is with sendmail many years ago. I take it SA
> does RBL look-ups by default and there is no need to att RBL look-ups in
> postfix main.cf file?

he should speek for himself and not for "us all"

a sane MTA setup is using something like Postscreen with scoring and 
*you don't want* to scan and tag 90% of all mails which are on 5 or even 
10 RBLs, frankly you won't waste a smtpd process at all when postscreen 
can kill them

below the current month and scanning additional 200000 messages would 
waste ressources all day long

Reject Postscreen: 205389
Reject Postfix:    18275
Reject Milter:     7052
Reject Temporary:  1888
Blacklist:         200032
Pregreet:          40171
Hangup:            74936
Protocol Error:    3479


Re: Rules needed...

Posted by Martin S <ma...@skjoldebrand.eu>.
On Friday 26 June 2015 17.40.04 Ted Mittelstaedt wrote:

> But, putting RBL checks into the MTA is the best way I know to piss off
> your users since tag-and-forward is not an option on MTA rbl checking.
> That's why we all do our RBL checks in spamassassin.

Could you elaborate on this? I'm "new" to running a mail server (it's in test 
phase atm) as my only experience is with sendmail many years ago. I take it SA 
does RBL look-ups by default and there is no need to att RBL look-ups in 
postfix main.cf file?

/Martin S

Re: Rules needed...

Posted by Dave Wreski <dw...@guardiandigital.com>.
Hi,

>>> blacklist_from *@*.allisonarctictrips.com
>>>
>>> spf-pass take responselily
>>
>> Yes, after it's received, there are a ton of things that could be done
>> to block it (including my local RBL). I was hoping for something
>> preventative.
>>
>
> Eh?  I'm afraid I don't get this at all - greylisting and RBL checks in
> the MTA before SA even sees it, are the only thing
> out there that is even in the realm of preventative measures and you
> already know about greylisting.
>
> Are you not aware that once a DATA channel is opened on an SMTP
> transaction that you have effectively "received" it?

You're thinking too hard about it. Yes, of course I was talking about 
before this message, or the dozens like it, were received in the first 
place.

> But, putting RBL checks into the MTA is the best way I know to piss off
> your users since tag-and-forward is not an option on MTA rbl checking.
> That's why we all do our RBL checks in spamassassin.

Look into postscreen and the postscreen_dnsbl_threshold to rank the 
DNSBLs to weight them to prevent any single one from rejecting mail.

Regards,
Dave

Re: Rules needed...

Posted by Ted Mittelstaedt <te...@ipinc.net>.

On 6/26/2015 10:53 AM, Dave Wreski wrote:
>
>
> On 06/26/2015 12:45 PM, Benny Pedersen wrote:
>> Alex Regan skrev den 2015-06-26 18:33:
>>
>>> http://pastebin.com/FzUkEvRp
>>
>> blacklist_from *@*.allisonarctictrips.com
>>
>> spf-pass take responselily
>
> Yes, after it's received, there are a ton of things that could be done
> to block it (including my local RBL). I was hoping for something
> preventative.
>

Eh?  I'm afraid I don't get this at all - greylisting and RBL checks in 
the MTA before SA even sees it, are the only thing
out there that is even in the realm of preventative measures and you
already know about greylisting.

Are you not aware that once a DATA channel is opened on an SMTP 
transaction that you have effectively "received" it?

You can load your RBL checks into the MTA itself and block it at the
IP level before issuing an ack on the handshake, or you can greylist
which also blocks it before issuing an ack on the handshake.

But, putting RBL checks into the MTA is the best way I know to piss off
your users since tag-and-forward is not an option on MTA rbl checking.
That's why we all do our RBL checks in spamassassin.

Ted



Re: Rules needed...

Posted by Benny Pedersen <me...@junc.eu>.
On June 26, 2015 8:00:22 PM Dave Wreski <dw...@guardiandigital.com> wrote:

>
>
> On 06/26/2015 12:45 PM, Benny Pedersen wrote:
> > Alex Regan skrev den 2015-06-26 18:33:
> >
> >> http://pastebin.com/FzUkEvRp
> >
> > blacklist_from *@*.allisonarctictrips.com
> >
> > spf-pass take responselily
>
> Yes, after it's received, there are a ton of things that could be done
> to block it (including my local RBL). I was hoping for something
> preventative.

greylist longer then time to get rbl listed so, sqlgrey can keep greylist 
botlist, in that case copy blacklist_from to be in sqlgrey aswell to 
allways being greylisted, when timeout to be accepted botnets a rbl listed

in spamassassin i dont like to use ip banning of spams, since a single ip 
can be unlimithed domains

Re: Rules needed...

Posted by Dave Wreski <dw...@guardiandigital.com>.

On 06/26/2015 12:45 PM, Benny Pedersen wrote:
> Alex Regan skrev den 2015-06-26 18:33:
>
>> http://pastebin.com/FzUkEvRp
>
> blacklist_from *@*.allisonarctictrips.com
>
> spf-pass take responselily

Yes, after it's received, there are a ton of things that could be done 
to block it (including my local RBL). I was hoping for something 
preventative.

Thanks,
Alex


Re: Rules needed...

Posted by Benny Pedersen <me...@junc.eu>.
Alex Regan skrev den 2015-06-26 18:33:

> http://pastebin.com/FzUkEvRp

blacklist_from *@*.allisonarctictrips.com

spf-pass take responselily