Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th June 2012, 00:38
forrie forrie is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parsing sendmail logs, per message-id

I use spamass-milter - it works very well. But, since it doesn't log the IP Address of rejected messages, I have to manually grep through to identify the info I need.

I am not sure the IP address is available to the milter at that part of the transaction; however, failing adding that to the log output (which would make life easier), I'm looking for a means to parse the textual log, using the message-id as the key, to parse out the information I need.

I know I could just use syslog-ng and log to mysql, but I'm not there yet.

My limited programming experience would have me parsing over the entire log for the message-id multiple times to match lines - that can't be efficient :-)

Basically, I want to get the IP address of the host that was rejected by Spamass-milter -- from there, I determine whether the host is offensive and needs to be packet filtered.

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 12th June 2012, 00:42
forrie forrie is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean queue-id, not message-id :-)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
ISPConfig "backend" completely unfunctional after a restart Xaymar Installation/Configuration 1 22nd August 2011 22:31
Sendmail to local domain ignoring MX records FractalizeR Installation/Configuration 6 20th January 2010 13:17
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
Sendmail: "Relaying denied. Proper authentication required." oskare100 Server Operation 0 2nd October 2007 17:31


All times are GMT +2. The time now is 06:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.