Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolved] Blocking Postfix Spam Bombs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jlward4th
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 83

PostPosted: Wed Dec 19, 2007 5:28 pm    Post subject: [resolved] Blocking Postfix Spam Bombs? Reply with quote

I've been getting hit by some crazy distributed spam bombs for a few days now. The attacks come from thousands of different hosts and try to phish for email addresses. Here is one rejected attempt:
Code:
Dec 19 09:21:23 temple postfix/smtpd[16631]: NOQUEUE: reject: RCPT from mail.wocken.com[62.225.141.131]: 450 4.1.1 <donaldpiggishanderson@jamesward.org>: Recipient address rejected: User unknown in virtual mailbox table; from=<webmaster@mail.wocken.com> to=<donaldpiggishanderson@jamesward.org> proto=ESMTP helo=<mail.wocken.com>


Since these attacks are coming from many different hosts I can't easily just block hosts. Is there any easy way to stop these attacks with Postfix? I already have the following setting in Postfix:
Code:
unknown_local_recipient_reject_code = 550


Thanks in advance.


Last edited by jlward4th on Mon Dec 24, 2007 12:06 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Wed Dec 19, 2007 6:05 pm    Post subject: Reply with quote

You could just grep all those away, or disable mail completely? (obviously with the side effect of not receiving any more legitimate mail.)

Really no matter what you do, you'll still get some sort of connection from the spam source host. As soon as it reveals it's trying to send to a nonexistent address, then you get the log, then it will finally disconnect...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Dec 19, 2007 6:26 pm    Post subject: Reply with quote

It's more likely that someone has been using your domain as their from: address. What you're seeing is bounces from legitimate mail servers to the randomly generated from addresses at your domain. At least that's what I usually see under the same conditions. Unfortunately there is no decent way to deal with this.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Wed Dec 19, 2007 11:28 pm    Post subject: Reply with quote

Sorry to have to say this but

"Welcome to the realities of the real world."

I get so much crap over the internet, all I can do is ignore them as much as I can. I get so much junk spam scatterbacks, ftp warez server searches, ssh attempts, phpbb spam posters, ugh...

The spam scatterbacks I can't do much about but eat them.
ssh attempts - if it's random, same thing, have to eat, else I do have something like fail2ban.
ftp searches - well i disabled ftpd, problem solved.
phpbb spam posters, well this one I hacked up a solution that has seemed to work - those OCR bots seem to now have some trouble decoding my captchas. No more spam registrations! woohoo!
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Thu Dec 20, 2007 1:12 am    Post subject: Reply with quote

For spam, I've found greylisting to be very effective. Check it out on the wiki:
http://gentoo-wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier_Mail_System_with_PostfixAdmin#Sqlgrey
Back to top
View user's profile Send private message
jlward4th
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 83

PostPosted: Mon Dec 24, 2007 12:08 am    Post subject: Reply with quote

I've found a few things helpful in resolving this:

http://systembash.com/content/450-vs-550-smtp-errors/
http://en.wikipedia.org/wiki/Joe_job

And thanks to everyone who responded and helped me figure out better ways to resolve this.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum