LinuxQuestions.org
Register a domain and help support LQ
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 12-29-2009, 05:57 PM   #1
volga629
Member
 
Registered: Dec 2009
Posts: 67

Rep: Reputation: 21
Question Snort SMTP rule "Access Denied for Mail Relay"


I added this new rule to snort/rules:

alert tcp $SMTP_SERVERS 25 -> $EXTERNAL_NET any
(msg:"Possible mail relay usage"; content:"Relaying denied";
flags:A+; classtype:trojan-activity; sid:1000001; rev:1


I wonder what else need add to snort ? Mail server is deny mail relay anyway, but i want the snort will do this job instead.
When i am using snort in verbose mode:
snort -v
And I test the open relay mail and mail server is deny any relays.
I see smtp traffic going through, but not denied by snort.


Thank you in advance.
 
Old 01-17-2010, 07:06 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Quote:
Originally Posted by volga629 View Post
Code:
tcp $SMTP_SERVERS 25 -> $EXTERNAL_NET any
Shouldn't it be "tcp $SMTP_SERVERS any -> $EXTERNAL_NET 25"? Snort, unless run in in-line mode, doesn't drop traffic itself. You'll need an add-on. But why not just -d !LAN -j DENY TCP/25 instead?
 
Old 01-19-2010, 05:44 AM   #3
volga629
Member
 
Registered: Dec 2009
Posts: 67

Original Poster
Rep: Reputation: 21
Thank you on you response. Yes you right snort run in inline mode, the whole idea behind that to make alert for attempts of spammers mail relays through the server. By the way on the server him self mail relays is denied. And i advised about it and problem is the snort him self cannot recognize when is mail relay or not. That function only for mail server him self.
So just need to wait maybe in future will be develop some solution for this.
 
Old 01-19-2010, 02:09 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Quote:
Originally Posted by volga629 View Post
make alert for attempts of spammers mail relays through the server. (..) problem is the snort him self cannot recognize when is mail relay or not. That function only for mail server him self.
Spam is not as much a packet-level "threat" but a problem tackled best at the application layer, so yeah, for fighting spam MTA configuration and using RBL's is part of the solution but Snort is not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix returns "Relay Access Denied (smtp code 554)" bornfree Linux - Server 3 09-30-2008 12:01 PM
Postfix "Relay access denied" cant send to other domain Proxx Linux - Server 6 01-11-2008 10:10 AM
Postfix "554 Relay access denied" alexpopescu Linux - Software 1 10-17-2005 04:22 AM
Postfix - "Relay Access Denied" clickster Linux - Software 1 09-12-2005 05:28 PM
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 04:00 PM


All times are GMT -5. The time now is 08:58 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration