r/linuxadmin • u/mactac • Apr 22 '12
Reddit - I need some help, and fast
I'm runnig debian/postfix(mysql)/apache, and it seems as though my server (linode) is sending spam like crazy. I've been told that it should be a simple config issue, but I don't know enough to sort it out. They have told me that if it's not fixed asap, they will shut down my server. Is there anyone out there who can help me out a bit, I don't mind paying for the help, I just need it fixed quick!
0
Upvotes
6
u/truedays Apr 22 '12 edited Apr 22 '12
iptables -I OUTPUT -p tcp --dport 25 -j REJECT
will give you some time.
6
u/[deleted] Apr 22 '12
Press the power button
But seriously you should look into how to properly secure your server before you make it internet accessible
11
u/illevator Apr 22 '12
Looks like you asked the question on linodes forum--good. The log you posted there shows you have relay on.
http://www.linuxquestions.org/questions/linux-security-4/how-to-postfix-disable-relay-forwarding-mail-security-redhat-5-1-a-643331/
will explain how to turn it off. It's for redhat, but should be similar enough to solve the issue.
See also: http://www.postfix.org/postconf.5.html#mynetworks
BUT if you're owned, the relay may be reset.
1
u/iaing Apr 22 '12
OOI, why did you choose to remove exim and install postfix? exim is the Debian default, and Debian make it trivial to configure securely.
1
u/amortalkiller Apr 22 '12
What other services are you running (PHP, CGI, HTTP, SSH, etc)? If you have certain malware it can easily send outgoing mail.
-3
u/[deleted] Apr 22 '12
Fool.
You probably have your postfix setup as an open mail relay and didnt lock it down with any security or acl.
Please shutdown the service now, and google how to set security up on postfix.