LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2013, 11:43 PM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
pretty sure my mail server is being spam-assaulted... worry?


Bear in mind that i've had a working mail server for ~2 months, so i'm new at it.

It's postfix running on a linux desktop behind a router. For the past 30 minutes, i'm getting a barrage of packets showing up in logs like so:

Code:
Sep 01 23:15:54 MAILSERVERNAME postfix/smtpd[736]: connect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:55 MAILSERVERNAME postfix/smtpd[738]: connect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:55 MAILSERVERNAME postfix/smtpd[741]: connect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:56 MAILSERVERNAME postfix/smtpd[740]: connect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:57 MAILSERVERNAME postfix/smtpd[730]: connect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:57 MAILSERVERNAME postfix/smtpd[730]: warning: Connection rate limit exceeded: 16 from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214] for service smtp
Sep 01 23:15:57 MAILSERVERNAME postfix/smtpd[730]: disconnect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:57 MAILSERVERNAME postfix/smtpd[744]: connect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:57 MAILSERVERNAME postfix/smtpd[744]: warning: Connection rate limit exceeded: 17 from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214] for service smtp
Sep 01 23:15:57 MAILSERVERNAME postfix/smtpd[744]: disconnect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:58 MAILSERVERNAME postfix/smtpd[734]: lost connection after AUTH from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:58 MAILSERVERNAME postfix/smtpd[734]: disconnect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:58 MAILSERVERNAME postfix/smtpd[735]: lost connection after AUTH from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:58 MAILSERVERNAME postfix/smtpd[735]: disconnect from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
Sep 01 23:15:58 MAILSERVERNAME postfix/smtpd[736]: lost connection after AUTH from 214.Red-80-33-151.staticIP.rima-tde.net[80.33.151.214]
I have a connection limit of 15/minute/ip as it's just a personal server with 2 accounts, and i can see that it's being maxed out. In fact, at the moment it's currentl 478 past 15 from this 1 ip. I eventually just set up an iptables rule on the mail server that drops packets with source 80.33.151.214.

So is this something I should worry about? Can i maybe contact whoever is the ISP for this address to maybe get them to stop?
 
Old 09-02-2013, 01:36 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,160

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
block those ip address from your firewall..

block the range or just the IP ..check out this one -->http://www.linuxquestions.org/questi...tables-469432/

change your password..to make sure..

Last edited by JJJCR; 09-02-2013 at 01:37 AM. Reason: edit
 
Old 09-02-2013, 03:14 AM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
you can query an RBL as part of your smtpd_*_restrictions. Notice that the problem IP address is listed on spamhaus. example:
Code:
smtpd_client_restrictions =
  permit_mynetworks
  permit_sasl_authenticated
  reject_rbl_client zen.spamhaus.org
edit:
i just took a closer look at the logs you posted. it's not a spam issue in the mail spam sense.
for mail spam, rbls are useful. they wouldn't be very useful against a client that just tries to open
many connections, but you should read about smtpd_delay_reject. i wouldn't worry about a misbehaving
client unless it's affecting the machine's resources, which i think is not the case for you. i've had success
reporting clients to U.S.-based ISPs; not sure what would happen elsewhere. the IP in question is in spain.

Last edited by Berhanie; 09-02-2013 at 03:58 AM.
 
Old 09-02-2013, 11:00 AM   #4
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Berhanie View Post
you can query an RBL as part of your smtpd_*_restrictions. Notice that the problem IP address is listed on spamhaus. example:
Code:
smtpd_client_restrictions =
  permit_mynetworks
  permit_sasl_authenticated
  reject_rbl_client zen.spamhaus.org
edit:
i just took a closer look at the logs you posted. it's not a spam issue in the mail spam sense.
for mail spam, rbls are useful. they wouldn't be very useful against a client that just tries to open
many connections, but you should read about smtpd_delay_reject. i wouldn't worry about a misbehaving
client unless it's affecting the machine's resources, which i think is not the case for you. i've had success
reporting clients to U.S.-based ISPs; not sure what would happen elsewhere. the IP in question is in spain.
i actually contacted the isp (telefonica de espana) and they said they would need full contents of the actual spam message (which of course i'm not going to allow relayed through my server). i'll look into spamhaus; though personally i'm not a huge fan of their extortion-like method of business. it's not really affecting my machine much. smtpd_delay_reject looks valuable
 
Old 09-02-2013, 10:33 PM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
i actually contacted the isp (telefonica de espana) and they said they would need full contents of the actual spam message
mmm. maybe you shouldn't have used the word "spam". i would have said that the client is opening spurious connections and trying to guess passwords / authenticate, and then included a section of the log, something like what you posted.
 
Old 09-02-2013, 10:40 PM   #6
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Berhanie View Post
mmm. maybe you shouldn't have used the word "spam". i would have said that the client is opening spurious connections and trying to guess passwords / authenticate, and then included a section of the log, something like what you posted.
even though that's OBVIOUSLY what they're doing?

whatevs, i've messaged them again to clarify. who knows...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Simple Image Reducer - Pretty slick, Pretty easy, Pretty light, & Pretty nice. LXer Syndicated Linux News 0 05-14-2013 06:41 AM
My mail server may be sending spam.. davidstvz Linux - Security 16 08-03-2010 12:13 PM
Ubuntu server with postfix. My mail goes to Spam in Gmail and Yahoo Mail. Ideeas? bob808 Linux - Server 4 02-07-2009 04:11 PM
spam control in mail server crown_bd Linux - Server 1 04-22-2007 09:15 AM
Other mail server to filter spam eescaler Linux - Networking 1 01-10-2006 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration