My linux sendmail server is being forced out of commission by a flood of invalid smtp saslauthd logins.
Steady stream of PAM auth errors logged for saslauthd in messages.
I have searched and searched for a way to determine the IP so I can block it ... no luck.
The IP is not being recorded in the messages or secure logs.
Any advice would be greatly appreciated.
|
| |||
|
feedback
|
|
This might help: Blocking SMTP authentication brute force attacks using Fail2Ban | |||||||||||||||
feedback
|
|
Sendmail logs to the If that doesn't work, you can use the
You'll get a list of traffic on port 25, which will look something like this:
That's a timestamp, then a protocol, then the source ip address, then the destination ip address. This should give you what you need. You could also get something similar using the
This should show connections on port 25 on your local system. There are a variety of mechanisms for either rate-limiting smtp connections per source address or blocking addresses with a high rate of authentication failures. You can use | |||||||
feedback
|
|
You have to increase the LogLevel to 10 or more.
Look in sendmail.mc or put something like
define( This will log the IP number on auth failures. | |||
|
feedback
|
netstatto list the connection details to determine the IP addresses connecting to your SMTP port. – rthomson Jun 17 '11 at 2:53