Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I think they are already in your queue for outbound mail. But there could already be thousinds. So maybe no more are comming in but as your mail server is unable to deliver those that are already there it might try to resend them. If memory serves me right there should be some delay before next delivery attempt.
Spam is a neverending story so you might want to look at block/blacklists.
What is your "mynetworks_style=" set to in main.cf?
And your "mynetworks="?
Maybe you are allowing mail relay. That is a sure way to have your mailserver be used for sending smap mail.
As far as I remember SA should work out of the box but always need some finetuning and stuff to do. Open relay, keyword filters, blacklists etc.
Sorry I dont run SA or Postfix atm.
It looks like you allow your outside ip address to send mail to remote destinations.
mynetworks = 22.214.171.124/24, 127.0.0.0/8
Only local users should be allowed to send emails to the world. Emails coming to you should only be to you and not relayed to remote destinations.
I think you need to set mynetworks to your local addresses.
If you set mynetworks_style to "host" postfix will permit only ipadresses on the host it runs on to send messages to remote locations.
If you set it to "class" it will allow only for the network class (local ip range) it is in. 10.0.0.0/8, 172.16.0.0/16 or 192.168.0.0/24 or what ever ip class you are in.
If you set it to subnet only the hosts in the same subnet as postfix will be allowed to relay to remote destinations.
Or you could set mynetworks=127.0.0.0/8, 10.0.0.0/24, 192.168.1.10/32 #localhost, the whole 10 subnet or only host 192.168.1.10
Or what ever your subnet is.
Maybe I post this at the Newbie section but im not that noob - -
I did restarted.
I think i'll use check_sender_access hash:$config_directory/sender_client to identify my clients...it's the only thing blocking them. it seems to be the only manner to block them completely.
or maybe block all those clients. thanks anyway
i'm open to better solutions, I think the approach of using SpamA is useless because what's happenning in the /vsr/spool/postfix directory is chaos, new file opened and deleted each second...so the SA deletes the spam, so what? it still takes all the queue and loads the heck of the server!
need some kind of firewall blocking...iptables or something but I don't understand why it isn't blocking them?
theoretically, if i'll extract all the hosts bombarding the server from the log, and:
for x in `cat hosts`
iptables -A INPUT -p tcp -s $x --dport 25 -j DROP
and leave it to work every 10 minutes, after the night it should block them all, not?
please fix me if i'm wrong.
OK somthing very very weird is happening please help me,
after giving about 10,000 bans in iptables it seems to do somthing: now in the logs :
I see that every bot login from localhost
Apr 19 01:00:01 game3 postfix/smtpd: connect from localhost.localdomain[127.0.0.1]
Adding to what noden already suggested (smtpd_recipient_restrictions) http://www.postfix.org/SMTPD_ACCESS_README.html more or less suggests the following lines. Do check if these are OK for your Postfix version then add them to main.cf and restart:
OTOH would it be a good idea to just shut your MTA down until you've got a fix on things? How about setting "mynetworks = 127.0.0.1" and "inet_interfaces = lo"? That way your MTA won't be exposed (OK, unless there's something fishy running locally). And manually adding IP addresses will only consume RAM since there's no way of knowing if and when a specific IP address will return: instead try something like fail2ban. IIGC it has a configuration for Postfix. Just thinking out loud...
Nevertheless, nothing is working this attack is unStoppable! anyway settings inet_interface to localhost stops it (: so I guess it's not from the inside or somthing like this but still it's fucking weird I blocked all of them and they still can connect .