Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi!
For the past few days, my logwatch entries for Sendmail are full of attempts
to send mail to unknown users no less than two times per. It looks like this
person is working through the alphabet, and all of these are coming from
multiple IP's. I'm pretty sure it is one person as these unknown users
appear to be sequential. Is there anyway I can stop this?
I tried Google'ing, I have searched through FAQ's, but to be honest, I just
don't know what to look for.
i tried to block the ip address thru iptables but it keeps coming with a different ip address??? iam sure that my server is not an open relay server cuz i saw in my maillog that someone try to relay to me and my mailserver reject it
i try also enable dnsl's in sendmail.cf it work in some spammer site like verizon.net but not this one i dont want too install a 3rd party software...
cuz iam afraid to misconfigure my mailserver...can sendmail and iptables do the job???
People are going to try this as long as you have a email server accessible to the internet. All you need to do is make surethat you aren't an open relay and don't worry about it. I get thousands of attempts daily but there is really nothing you can do. Just as if you have a webserver open to the inet you will see thousands of hits from infected boxes looking for .dlls.
thk guys! now i know iam not alone to this attack
one more question? if i can not do anything to prevent the attack is there a way to hardening my linux box??? iam using slackware 10.0 thks again!
If you were running postfix you could very easily run it in a chroot environment, I have never tried to run sendmail in a chroot jail but i'm sure it is possible.
The attack is called a "dictionary attack" and isn't used by anything but spammer 'n00bs" now. The solution you're looking for is tarpitting.
As an alternative, you could write a cron job that inspects the maillog for lots of attempts for invalid users from the same IP and then adds it to the list of DENY IPs in your firewall rules. Beware though, as this can block real (legit) mail in certain circumstances.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.