Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
There are too many ways to stop spam. But if you are new to Sendmail, the steps below may be the simplest method :
1. cd /etc/mail
2. create or edit a file called 'access'
3. in 'access' file, add one or all of the following lines depends on your situation and change the word spammer / spam to your target : spammer@spam.com REJECT
spam.com REJECT
spammer@ REJECT
4. in /etc/mail directory, run the following command:
makemap hash access.db < access
5. restart sendmail (or simply reboot the server)
Frankly, this is not a long-term solution as you have to add spammer record as long as you discover them. Usually, we set Sendmail to rely only mail from a particular domain name, but the setting is too complicated though it is one-off task.
Thank you all for replying,
I have had the access file already setup from before,.. The current problem I am having is that my IP keeps getting hit over and over ....Although all mail messages are being rejected with Access denied messages but I am losing all my bandwidth deal ing with it...
If your e-mail server had been known that could be used for spam mail, it is not unusual to have more than 1 spammer !
Just take it easy and let your firewall / sendmail reject those mails, the spammer(s) will know it and a few days later, they will forget your server and look for others.
What if you don't have a couple of days? I have the same problem but I need to be able to have web forms send mail so I can't really turn off connections to mail ports for an extended period of time. Any suggestions? The logs show nothing useful but I know the box is being used to send spam elsewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.