anmaxp
04-20-2006, 03:06 AM
Hey all,
I have a home linux server set up for a couple of months now, since yesterday I've been noticing a lot of disk activity So i checked my logs an noticed that the server has sent thousands of mails through postfix/imap ... Im pretty sure its spamming. Weirdest thing now, I have tried to stop the mail daemons , and it will only let me stop postfix, while imap,imaps,ipop3 and pop3s all return an unrecognized service error... Did i get hacked or what?
I thought I had a secure setup... through iptables and only allowing ssh through non-root user on local lan, few running services, etc...
any way i can fix this without reinstalling? and if i do, how do i prevent this ?
tail /var/log/maillog
Apr 20 00:39:26 aluna postfix/qmgr[2069]: C31E012196D: from=<>, size=8704, nrcpt=1 (queue active)
Apr 20 00:39:26 aluna postfix/smtp[14803]: connect to clmboh-01.mgw.rr.com[65.24.7.10]: server refused to talk to me: 550-clmboh-mx-01.mgw.rr.com 550 ERROR: Mail Refused - server.ip - See http://security.rr.com/cgi-bin/block-lookup?server.ip (port 25)
Apr 20 00:39:26 aluna postfix/qmgr[2069]: C59A31222A9: from=<>, size=31822, nrcpt=1 (queue active)
Apr 20 00:39:26 aluna postfix/smtp[14901]: 0CFF41220C1: enabling PIX <CRLF>.<CRLF> workaround for mailproxy.dinanet.net.co[200.89.224.244]
Apr 20 00:39:26 aluna postfix/smtp[14857]: CEE3C79E01: to=<hvactech@visto.com>, relay=none, delay=37608, status=deferred (connect to relayb2.corp.visto.com[208.49.234.36]: server refused to talk to me: 554 Service unavailable; Client host [server.ip] blocked using sbl-xbl.spamhaus.org; http://www.spamhaus.org/query/bl?ip=server.ip )
Apr 20 00:39:26 aluna postfix/smtp[14846]: C56D4121CAF: to=<mesoderm@hutchcity.com>, relay=none, delay=38783, status=deferred (connect to smtpip02.hutchcity.com[210.0.255.220]: server refused to talk to me: 554 smtpip02.hutchcity.com )
Apr 20 00:39:26 aluna postfix/smtp[14773]: C93C4121EBB: host sinamx.sina.com.cn[202.108.3.188] said: 450 4.7.1 Client host rejected: cannot find your hostname, [server.ip] (in reply to RCPT TO command)
Apr 20 00:39:26 aluna postfix/smtp[14773]: C93C4121EBB: host sinamx.sina.com.cn[202.108.3.188] said: 450 4.7.1 Client host rejected: cannot find your hostname, [server.ip] (in reply to RCPT TO command)
Apr 20 00:39:26 aluna postfix/smtp[14850]: C5F4F121DFA: to=<anncom@gateway.net>, relay=none, delay=38577, status=deferred (connect to gateway.net[149.174.33.10]: Connection timed out)
Apr 20 00:39:26 aluna postfix/smtp[14788]: CECA879EC8: to=<lindsay@tecjewelers.com>, relay=mail.tecjewelers.com[66.235.192.60], delay=36759, status=deferred (host mail.tecjewelers.com[66.235.192.60] said: 451 http://dsbl.org/listing?server.ip (in reply to RCPT TO command))
Apr 20 00:39:26 aluna postfix/qmgr[2069]: C800578D00: from=<>, size=9705, nrcpt=1 (queue active)
Its being doing that for 2 days now, Imagine the log filesize...
Just in case, services the server is running: apache,postfix,imap,mysql,squid,dhcp,ssh,samba & iptables
edit: doing some reading I found out that this could be the proxy server relaying emails? If so, why cant i seem to stop the services?
I have a home linux server set up for a couple of months now, since yesterday I've been noticing a lot of disk activity So i checked my logs an noticed that the server has sent thousands of mails through postfix/imap ... Im pretty sure its spamming. Weirdest thing now, I have tried to stop the mail daemons , and it will only let me stop postfix, while imap,imaps,ipop3 and pop3s all return an unrecognized service error... Did i get hacked or what?
I thought I had a secure setup... through iptables and only allowing ssh through non-root user on local lan, few running services, etc...
any way i can fix this without reinstalling? and if i do, how do i prevent this ?
tail /var/log/maillog
Apr 20 00:39:26 aluna postfix/qmgr[2069]: C31E012196D: from=<>, size=8704, nrcpt=1 (queue active)
Apr 20 00:39:26 aluna postfix/smtp[14803]: connect to clmboh-01.mgw.rr.com[65.24.7.10]: server refused to talk to me: 550-clmboh-mx-01.mgw.rr.com 550 ERROR: Mail Refused - server.ip - See http://security.rr.com/cgi-bin/block-lookup?server.ip (port 25)
Apr 20 00:39:26 aluna postfix/qmgr[2069]: C59A31222A9: from=<>, size=31822, nrcpt=1 (queue active)
Apr 20 00:39:26 aluna postfix/smtp[14901]: 0CFF41220C1: enabling PIX <CRLF>.<CRLF> workaround for mailproxy.dinanet.net.co[200.89.224.244]
Apr 20 00:39:26 aluna postfix/smtp[14857]: CEE3C79E01: to=<hvactech@visto.com>, relay=none, delay=37608, status=deferred (connect to relayb2.corp.visto.com[208.49.234.36]: server refused to talk to me: 554 Service unavailable; Client host [server.ip] blocked using sbl-xbl.spamhaus.org; http://www.spamhaus.org/query/bl?ip=server.ip )
Apr 20 00:39:26 aluna postfix/smtp[14846]: C56D4121CAF: to=<mesoderm@hutchcity.com>, relay=none, delay=38783, status=deferred (connect to smtpip02.hutchcity.com[210.0.255.220]: server refused to talk to me: 554 smtpip02.hutchcity.com )
Apr 20 00:39:26 aluna postfix/smtp[14773]: C93C4121EBB: host sinamx.sina.com.cn[202.108.3.188] said: 450 4.7.1 Client host rejected: cannot find your hostname, [server.ip] (in reply to RCPT TO command)
Apr 20 00:39:26 aluna postfix/smtp[14773]: C93C4121EBB: host sinamx.sina.com.cn[202.108.3.188] said: 450 4.7.1 Client host rejected: cannot find your hostname, [server.ip] (in reply to RCPT TO command)
Apr 20 00:39:26 aluna postfix/smtp[14850]: C5F4F121DFA: to=<anncom@gateway.net>, relay=none, delay=38577, status=deferred (connect to gateway.net[149.174.33.10]: Connection timed out)
Apr 20 00:39:26 aluna postfix/smtp[14788]: CECA879EC8: to=<lindsay@tecjewelers.com>, relay=mail.tecjewelers.com[66.235.192.60], delay=36759, status=deferred (host mail.tecjewelers.com[66.235.192.60] said: 451 http://dsbl.org/listing?server.ip (in reply to RCPT TO command))
Apr 20 00:39:26 aluna postfix/qmgr[2069]: C800578D00: from=<>, size=9705, nrcpt=1 (queue active)
Its being doing that for 2 days now, Imagine the log filesize...
Just in case, services the server is running: apache,postfix,imap,mysql,squid,dhcp,ssh,samba & iptables
edit: doing some reading I found out that this could be the proxy server relaying emails? If so, why cant i seem to stop the services?