LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2017, 11:15 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Where are saslauthd auth failure message coming from?


I've got a bunch of messages in my /var/log/messages file like:
Code:
Feb 17 00:06:24 mail saslauthd[1472]: do_auth         : auth failure: [user=office] [service=smtp] [realm=ohprs.org] [mech=shadow] [reason=Invalid username]
What is creating these messages? Yes, I know saslauthd is, but what is calling saslauthd to do this? something is trying a lot of different user names. This is a security concern.
 
Old 02-17-2017, 05:13 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
postfix?
 
Old 02-17-2017, 06:21 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Not running postfix, running sendmail. Sendmail does use saslauth:
Code:
# File: /etc/sasl2/Sendmail.conf
pwcheck_method: saslauthd 
mech_list: EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
saslauthd is started at boot as `/usr/sbin/saslauthd -a shadow`

It's not really clear from the error message that sendmail is causing this, except I suppose that could be extrapolated from the "[service=smtp]" bit in the message.

But, if sendmail, my real question is what is causing sendmail to do this? It is apparently doing auth request for numerous bogus users (I have 2660 such errors for 581 different user IDs logged in the past 30 days). These failures are not showing in /var/log/maillog and there is no indication from which IP they are originating. If they are accessing through port 25 I would think there would be something in maillog.

I'd like to find the IP of these would-be hackers.
 
Old 02-17-2017, 07:39 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Maybe its local?

Surely, ohprs.org is a clue?
Or
Ohio Highway Patrol Retirement System

Ya, I'd be digging...
Code:
zgrep ohprs.org /var/log/messages*
and if that doesn't show anything obvious (subjective, I know),
you could pastebin it and toss us the link?
It shouldn't be too sensitive and you should expire it short term, JIC
If it is not clean, or you aren't totally okay with it. Don't.

Thanks.

Last edited by Habitual; 02-17-2017 at 07:50 AM.
 
Old 02-17-2017, 07:52 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://www.mailradar.com/openrelay/

result?
 
Old 02-17-2017, 11:12 AM   #6
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
ohprs.org is our domain, this is the Ohio Highway Patrol Retirement System. I am subscribed with mxtoolbox.com which provides a similar service to your suggested mailradar.com.

Here's a possibility ...

In digging into the logfiles I noticed a one-to-one timestamp correlation between the saslauthd messages in /var/log/messages and messages in /var/log/maillog. For example, for the message shown in my OP in /var/log/messages posted at Feb 17 00:06:24, I have a time-corresponding message in /var/log/maillog:
Code:
Feb 17 00:06:24 mail sm-mta[31592]: v1H56NAR031592: [94.102.56.181] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
I'm thinking these are related. It's not a perfect one-to-one, but some of the saslauthd messages that are clustered together (within a few seconds of each other) have the message in /var/log/maillog:
Code:
Feb 13 02:44:23 mail sm-mta[28228]: v1D7iHdr028228: [222.110.153.146]: possible SMTP attack: command=AUTH, count=5
followed by a "did not issue" message, which I'm guessing means that the perpetrator can try several times within some time range or retry range (notice the "count=5" bit) before the attempt is logged in maillog.

If what I'm observing is correct, these saslauthd failures do ultimately make it to maillog, but there is no obvious correlation between the log events, other than this not-always-one-to-one timestamp correlation.

What do you think?
 
1 members found this post helpful.
  


Reply

Tags
saslauthd


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, saslauthd, SMTP AUTH mechanisms hydraMax Linux - Server 1 01-03-2011 04:30 AM
[SOLVED] Postfix + saslauthd can't get it to work/(auth?) nikooo777 Linux - Software 2 11-16-2010 04:44 PM
postfix 'auth login' using saslauthd set up doesn't work. lxvor Linux - Software 1 09-10-2010 03:48 PM
Postfix SMTP AUTH, Problem using saslauthd + pam k1e0x Debian 0 10-19-2004 05:21 PM

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

All times are GMT -5. The time now is 12:01 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
Open Source Consulting | Domain Registration