News for hackers. Stuff that matters.
Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by seven on Thursday February 25, 2010 @01:26PM (#1151206)
The obvious downside of greylisting is that the first contact takes some minutes.

Another downside is that some poorly written applications try to deliver mail on their own, instead of using a real mailserver.

It is somehow required that the mail user knows about the greylisting setup so that he can request the other application to send the same mail again after some minutes. One real world example are those registration links you get via mail to confirm your account. It happens very often to me that I have to re-request the mail, to get it into my mailserver.

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by jrockway on Thursday February 25, 2010 @01:36PM (#1151234)
One real world example are those registration links you get via mail to confirm your account. It happens very often to me that I have to re-request the mail, to get it into my mailserver.

Oh, you'll get those in an hour or so, when their mailer retires. I have never had a problem.

I did kill greylisting, though, because it breaks when the mail server that first tried to send the message is not the one that tries to send it again. Gmail does this, for example, and unless you keep up to date on Google's internal architecture, you are going to lose mail from Gmail users. Combined with being tired of waiting an hour or more for every email, this killed greylisting for me. Now I let the spammers deal with spamassassin, which is quite nice if you bump up the scores on the content and URI blacklists.

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by talison on Thursday February 25, 2010 @02:14PM (#1151328)
I used postfix-policyd for a while. I whitelisted the major email providers. You can also run the policy daemon in 'training mode' for a while.

http://www.policyd.org/tiki-index.php?page=Greylisting&s...

I still had the same problems others have mentioned though, where crappy registration systems were sending their confirmation mails directly from their PHP application, rather than relaying it through a smart MTA that actually understood the SMTP protocol and would do the retry.

Ultimately, too many users complained about mail delays and missing email. This is one of those scenarios where the cost of not delivering an important email may outweigh the benefits of blocking a few more invalid ones.

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by seven on Thursday February 25, 2010 @01:59PM (#1151288)
I was talking about registration mails from 'poorly written' applications. Mail comes after one hour. I am cool.

I am aware that most prominent site do this the right way, but just wanted to mention that some do not.

About the problem with gmail, I was not aware of that. Thanks for the info. I will go grep my logs now. :)

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by seven on Thursday February 25, 2010 @02:09PM (#1151312)
Aaahh.. google is inside my whitelist. :) That explains it.

btw: anybody needs to see a list of 'no-retry' servers, check out:

/etc/postgrey/whitelist_clients

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by jrockway on Thursday February 25, 2010 @02:12PM (#1151323)
The issue there being that if Google ever changes their internal network structure, you lose mail until someone notices. Personally, I don't like coupling myself to other networks that tightly, and I also don't like losing email.

So no greylisting for me.

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by FlorinAndrei on Thursday February 25, 2010 @03:08PM (#1151463)
Spam from @gmail.com is increasing nowadays, AFAICT.
Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by merrick33 on Thursday February 25, 2010 @01:53PM (#1151275)
The Gmail issue you highlight I believe would only happen when the original outbound smtp server goes dark before it reattempts delivery. I say this because I have been receiving emails from Gmail with greylisting on for a week now.
Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by jrockway on Thursday February 25, 2010 @02:03PM (#1151299)
Look at the logs and you will notice a lot of initial attempts that are never "followed through" on, and these are from Google's IPs.

And BTW, spammers have figured out RFC822 now, so this doesn't even prevent a lot of spam.

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by pkulak on Thursday February 25, 2010 @01:35PM (#1151231)
I don't think many (if any) web services work that way. I know that at my company we set up a Postfix daemon on one of our servers which all of our web servers connect to to send mail. So, when you get your password emailed to you, it's Postfix doing the actual sending, and Postfix will retry for hours, let alone 5 minutes. Same thing for all my personal projects.
Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by merrick33 on Thursday February 25, 2010 @01:35PM (#1151229)
Good points. I used to do enterprise IT consulting and we couldn't integrate many spam cutting techniques without getting a large dose of complaints saying "where is my spam".

In our case, it's just two of us, and the level of spam was overwhelming. I accept the trade-off.

Re:How I Stopped over 1000 Spam Emails/Day from Reaching Me ... by jrockway on Thursday February 25, 2010 @02:04PM (#1151301)
Heh, I always assume I've broken my mailserver when I don't get any spam. Unfortunately, I am usually right.