Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Logcheck filters - help!
PostPosted: Fri Feb 04, 2005 8:05 am 
Offline
Senior Newbie

Joined: Thu Jun 24, 2004 4:45 pm
Posts: 19
Website: http://jeffmacmichael.com
Location: Maryland, USA
I'm having a problem designing a Logcheck filter (on Debian woody) to suppress certain messages. I'm putting them in logcheck.ignore but only some of them work.

Things like this work:

Code:
kernel: OUT-internet:IN= OUT=eth0
su.*: \+ pts\/0 username-root
imaplogin:


But I want to suppress all my smtpd messages (relay denied, user unknown). I'm trying to do it this way, but it's not working:

Code:
postfix\/smtpd.*:


Here's an example of two of the messages I want to ignore; I get stuff like this all day long:

Code:
Feb  1 15:29:54 srv1 postfix/smtpd[23803]: reject: RCPT from unknown[210.122.212.121]: 550 <khickerson@gednet.com>: User unknown; from=<maryellenhorton_3@manairport.co.uk> to=<khickerson@gednet.com>

Feb  2 00:54:25 srv1 postfix/smtpd[30508]: reject: RCPT from unknown[222.101.92.125]: 554 <smtphunter66@daum.net>: Recipient address rejected: Relay access denied; from=<smtphunter15@yahoo.co.kr> to=<smtphunter66@daum.net>


Do I have some kind of regex problem I'm not seeing? I thought it might be the that I'm escaping the / character ("\/") after postfix but it seems to be needed on the su line I'm using.

I've also tried just using "Relay access denied" and others but to no avail.

Any help would be really appreciated.

Image


Top
   
 Post subject:
PostPosted: Fri Feb 04, 2005 2:51 pm 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ postfix/smtpd.+

?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: dobriain and 3 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group