Re: [swinog] Greylisting

2009-10-25 Diskussionsfäden Lukas Beeler
On Sun, Oct 25, 2009 at 17:41, Tonnerre Lombard
tonne...@bsdprojects.net wrote:
 There are customers out there that don't care if Exchange is broken,
 unfortunately. We're living in a world where «broken» may mean «Find a
 workaround» rather than «Have them fix it».

This was an issue with Exchange 2003, that has since then been fixed.

Microsoft recommended Exchange 2003 to be deployed with an Edge server
running another MTA to mitigate security risks. Many vendors have
sprung in an offered appliances to do this task, but simpler solutions
would be to deploy Postfix or another full-fledged MTA.

Basically, anyone that experiences this issue is running a
configuration that's not recommended by Microsoft and does not have
the proper hotfixes applied to make the not-recommended scenario work
correctly.

Exchange 2007/2010 have a much better SMTP implementation, one that
can actually talk to the Internet without messing up too much.

I have deployed that patch to all our customers running Exchange 2003.
Every other Exchange administrator should do the same.

-- 
Read my blog at http://projectdream.org

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-25 Diskussionsfäden Tonnerre Lombard
Salut, Stanislav,

On Mon, 19 Oct 2009 12:30:09 -0700 (PDT), Stanislav Sinyagin wrote:
 Martin implemented this hack in a FreeBSD kernel module. Of course
 this gives more room for performance, but then it binds the solution
 to a specific OS and kernel release. I personally feel there's
 something wrong if the kernel has to deal with an application-level
 protocol. On the other side, you usually install a dedicated server
 just for incoming mail processing.

It's fairly easy to implement in Postfix:

smtpd_helo_restrictions =
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
permit_mynetworks, 
check_helo_access hash:/usr/pkg/etc/postfix/checks/helo_checks,
sleep 30,
reject_unauth_pipelining,
permit

There you go.

-- 
Tonnerre


signature.asc
Description: PGP signature

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-22 Diskussionsfäden Patrick Studer
Please note, that some mailservers has a default timeout of 30 seconds for smtp 
connection. So if
you go to delay the HELO/EHLO message for 30 seconds, you will probably block 
legitimate mails, because
the sending server will disconnect, caused by his timeout settings.

Patrick

-Ursprüngliche Nachricht-
Von: swinog-boun...@lists.swinog.ch [mailto:swinog-boun...@lists.swinog.ch] Im 
Auftrag von Daniel Kamm
Gesendet: Dienstag, 20. Oktober 2009 10:39
An: swi...@swinog.ch
Betreff: Re: [swinog] Greylisting

Stanislav Sinyagin wrote:
 last AprilMartin Blapp has presented a nice concept at SwiNOG:
 
 instead of greylisting, the SMTP server delays the first OK response to 
 HELO/EHLO 
 for 30 seconds. That is usually enough for the vast majority of spambots to 
 give up.

On a heavy traffic mail server, you probably run into a max session
problem when you try to hold many idle connections for 30 seconds.

  - Dan


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-21 Diskussionsfäden Arnold Nipper
On 19.10.2009 18:27 Gregoire Galland wrote

 I was wondering who is using Greylisting in their compangny, and if
 yes, do they receive any complaints from customers about latency or
 not deliverance of mail?
 

I'm doing hostname-based selective greylisting (see
http://lists.ee.ethz.ch/postgrey/msg01214.html ff for details( which
works absolutely fine for me. No problems at all,



Best regards,
Arnold
-- 
Arnold Nipper / nIPper consulting, Sandhausen, Germany
email: arn...@nipper.de   phone: +49 6224 9259 299
mobile: +49 172 2650958 fax: +49 6224 9259 333



signature.asc
Description: OpenPGP digital signature

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-20 Diskussionsfäden Daniel Kamm
Stanislav Sinyagin wrote:
 last AprilMartin Blapp has presented a nice concept at SwiNOG:
 
 instead of greylisting, the SMTP server delays the first OK response to 
 HELO/EHLO 
 for 30 seconds. That is usually enough for the vast majority of spambots to 
 give up.

On a heavy traffic mail server, you probably run into a max session
problem when you try to hold many idle connections for 30 seconds.

  - Dan


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Marc Balmer

Am 19.10.2009 um 18:27 schrieb Gregoire Galland:

 Hi all!

 I was wondering who is using Greylisting in their compangny, and if  
 yes,
 do they receive any complaints from customers about latency or not
 deliverance of mail?

we use it for about 35'000 accounts and did not get any complaints.   
much to the contrary our customers acclaim the brilliant spam filters  
we have.


 Thanks for answer

 G.Galland

 ___
 swinog mailing list
 swinog@lists.swinog.ch
 http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Andre Keller
Am 19.10.2009 18:27, schrieb Gregoire Galland:
 I was wondering who is using Greylisting in their compangny, and if yes,
 do they receive any complaints from customers about latency or not
 deliverance of mail?
   

If you don't know about the impact you can run greylisting without
actually block something.

In postfix you would add warn_if_reject before the policy daemon. If you
enable auto whitelisting this fills your database and when you activate
the rejects the users the send you mails frequently wont get blocked.

Another possibility would be running greylisting selective, using a
regex to filter only hostname containing dailin patterns or no reverse
dns entry at all...


Regards André

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Benoit Panizzon
On Monday 19 October 2009 18.27:25 Gregoire Galland wrote:
 Hi all!

 I was wondering who is using Greylisting in their compangny, and if yes,
 do they receive any complaints from customers about latency or not
 deliverance of mail?

There are mailservers out there who don't cope with greylisting.

But if you use greylisting with a whitelist including allmost all known 
mailserver (like doing a query to dnswl.swinog.ch and if listed, don't 
greylist) you get very good results and don't delay mails from known 
mailserver which would anyway resend the email later.

-Benoit-

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden ben mongol
btw

Spam2Co2 :-):
http://img.en25.com/Web/McAfee/CarbonFootprint_12pg_web_REV_NA.pdf



Gregoire Galland wrote:
 Hi all!
 
 I was wondering who is using Greylisting in their compangny, and if yes,
 do they receive any complaints from customers about latency or not
 deliverance of mail?
 
 Thanks for answer
 
 G.Galland
 
 ___
 swinog mailing list
 swinog@lists.swinog.ch
 http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Gregory Agerba
Ben,

Should companies calculate extra heat and ressource usage (CPU, RAM, HDD,
SAN, LAN, WAN) for filtering spam and ask a counter-part when some spammers
get caught to sue them? :)

Would be fun.

- Gregory

2009/10/19 ben mongol go...@monsoleil.ch

 btw

 Spam2Co2 :-):
 http://img.en25.com/Web/McAfee/CarbonFootprint_12pg_web_REV_NA.pdf



 Gregoire Galland wrote:
  Hi all!
 
  I was wondering who is using Greylisting in their compangny, and if yes,
  do they receive any complaints from customers about latency or not
  deliverance of mail?
 
  Thanks for answer
 
  G.Galland
 
  ___
  swinog mailing list
  swinog@lists.swinog.ch
  http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Andre Timmermann
Am Montag, den 19.10.2009, 19:14 +0200 schrieb Benoit Panizzon:

 There are mailservers out there who don't cope with greylisting.

Sorry, but these mailservers are broken. 

http://webattacks.de/exchange-greylist-problem-und-kein-offizieller-patch.html

This problem is known since 2003, I think there is no further comment
needed ;)


-- 
Mit freundlichen Gruessen

Andre Timmermann
Nine Internet Solutions AG, Albisriederstr. 243c, CH-8047 Zuerich
Tel +41 44 637 40 00 | Direkt +41 44 637 40 06 | Fax +41 44 637 40 01


___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Stanislav Sinyagin
last AprilMartin Blapp has presented a nice concept at SwiNOG:

instead of greylisting, the SMTP server delays the first OK response to 
HELO/EHLO 
for 30 seconds. That is usually enough for the vast majority of spambots to 
give up.
Also if the client tries to send something before receiving the OK, the 
connection 
is dropped immediately.

Martin implemented this hack in a FreeBSD kernel module. Of course this gives 
more room for performance, but then it binds the solution to a specific OS and 
kernel release. I personally feel there's something wrong if the kernel has to 
deal with an application-level protocol. On the other side, you usually install 
a 
dedicated server just for incoming mail processing.

I think there should be ways to do it outside of kernel, in userland, in a nice 
and efficient way. But I never had the time to dig any deeper :)
The biggest challenge is to keep thousands of open TCP connections in the memory
and still have enough CPU power to process SMTP and deliver the mail. 


cheers,
stan


- Original Message 
 From: Gregoire Galland m...@hispeed.ch
 To: swinog@lists.swinog.ch swinog@lists.swinog.ch
 Sent: Mon, October 19, 2009 6:27:25 PM
 Subject: [swinog] Greylisting
 
 Hi all!
 
 I was wondering who is using Greylisting in their compangny, and if yes,
 do they receive any complaints from customers about latency or not
 deliverance of mail?
 
 Thanks for answer
 
 G.Galland

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Chris Meidinger
On 19.10.2009, at 21:30, Stanislav Sinyagin wrote:

 last AprilMartin Blapp has presented a nice concept at SwiNOG:

 instead of greylisting, the SMTP server delays the first OK response  
 to HELO/EHLO
 for 30 seconds. That is usually enough for the vast majority of  
 spambots to give up.
 Also if the client tries to send something before receiving the OK,  
 the connection
 is dropped immediately.

That feature is in stock sendmail. It's called the greet_pause ruleset.

FEATURE(`greet_pause', `5000')  dnl 5 seconds

causes the MTA to wait 5 seconds before greeting. You could also use  
3 to make it be 30 seconds, though usually 5 is plenty.

Check http://www.sendmail.org/documentation/configurationReadme for a  
further description of how to implement.

 I think there should be ways to do it outside of kernel, in  
 userland, in a nice
 and efficient way. But I never had the time to dig any deeper :)
 The biggest challenge is to keep thousands of open TCP connections  
 in the memory
 and still have enough CPU power to process SMTP and deliver the mail.

It's not that many thousands of connections. 30 seconds is pretty  
long, less usually works. The feature set basically loads the box with  
X extra seconds worth of connections, usually not actually thousands.

Chris

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog


Re: [swinog] Greylisting

2009-10-19 Diskussionsfäden Martin Blapp
Hi,
 That feature is in stock sendmail. It's called the greet_pause ruleset.

 FEATURE(`greet_pause', `5000')  dnl 5 seconds

 causes the MTA to wait 5 seconds before greeting. You could also use  
 3 to make it be 30 seconds, though usually 5 is plenty.
The problem here is that sendmail forks() before it delays the 
connection. This opens another
weakness, especially during a DDoS attack. With the five seconds delay, 
you only catch the
pregreeting spammer connections, with a larger delay, the spammers often 
give up sending
anything at all.

I use kernel greatpause support together with graylisting in a second 
stage in my commercial
email appliance.

IMHO graylisting still works best to keep a lot of the connections away. 
If it is implemented
in a clever way, you can bypass mail delays for real email traffic.

--
Martin

___
swinog mailing list
swinog@lists.swinog.ch
http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog