<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Soumplis&#039; Personal Web Site &#187; Mail</title>
	<atom:link href="http://www.soumplis.com/category/linux/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soumplis.com</link>
	<description>Soumplis Alexandros Personal Web Site</description>
	<lastBuildDate>Mon, 16 Jan 2012 23:16:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Spammer Nightmare</title>
		<link>http://www.soumplis.com/2010/02/03/spammer-nightmare/</link>
		<comments>http://www.soumplis.com/2010/02/03/spammer-nightmare/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:59:38 +0000</pubDate>
		<dc:creator>asou</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.soumplis.com/?p=21</guid>
		<description><![CDATA[Well it happened to me today a strong fight against a spammer on one of my servers. I had a very hard time tracking down the originator of the spam as it was a shared hosting server and the spammer had gained, among others, ftp access to the exploited account. Thus it was easy to [...]]]></description>
			<content:encoded><![CDATA[<p>Well it happened to me today a strong fight against a spammer on one of my servers. I had a very hard time tracking down the originator of the spam as it was a shared hosting server and the spammer had gained, among others, ftp access to the exploited account. Thus it was easy to hide the spam sending code within a legitimate and ordinary looking php script which implemented its own SMTP engine. This way there where no logs on my Exim SMTP server log files and I had to examine Apache log files for every single hosting account on the server.</p>
<p>It has been a good lesson for me and my next move was to disallow anyone besides root and Exim to send mail to be able to connect to remote MTAs. Thanks to Linux iptables it was feasible and quite easy with a rule similar to this:</p>
<blockquote><p>/sbin/iptables -I OUTPUT &#8211;protocol tcp &#8211;dport 25 -m owner &#8211;gid-owner 47 -j ACCEPT</p></blockquote>
<p>Next step was to clean my exim queues from bounce backs and various junk due to the thousands of e-mails send out to the Internet. As always I had to dig my notes and find the appropriate commands so I decided to post them on my fellow site, <a href="http://www.howto.gr/wp/2010/02/fighting-with-exim-queues/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.soumplis.com/2010/02/03/spammer-nightmare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

