<?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>acl | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/acl/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Tue, 25 Mar 2014 01:49:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to Disallow or Rate Limit Web Server Mail in Exim</title>
		<link>https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php</link>
					<comments>https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php#respond</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Tue, 25 Mar 2014 01:49:58 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=1666</guid>

					<description><![CDATA[<p>Recently one of the apache webserver&#8217;s vhost was compromise and allow spammer to use the script to perform massive outgoing email spam. As usual, due to un-patch WordPress&#8217;s engine from a user on the web server. Ended up the &#8220;hacker&#8221;...</p>
The post <a href="https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php">How to Disallow or Rate Limit Web Server Mail in Exim</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>Recently one of the apache webserver&#8217;s vhost was compromise and allow spammer to use the script to perform massive outgoing email spam. As usual, due to un-patch WordPress&#8217;s engine from a user on the web server. Ended up the &#8220;hacker&#8221; been using the PHP&#8217;s mail() function sending a massive 100k++ outgoing email to email provider such as yahoo mail and gmail. <span id="more-1666"></span></p>
<p>There were a lot email queue in Exim&#8217;s queue, due to the blockage from recipient server. Unfortunately WordPress doesn&#8217;t have SMTP setting for outgoing email notification, it has to rely on third party plugins. </p>
<p>Here is what we implement on SMTP MTA to deny/rate limit outgoing from PHP&#8217;s mail() function. </p>
<p>On Exim config file, before hitting ACL configuration, place this config for non-smtp setting</p>
<pre>
<code>
acl_not_smtp = acl_check_not_smtp
</code>
</pre>
<p>After &#8220;begin acl&#8221; section, place this config </p>
<pre>
<code>
acl_check_not_smtp:

  deny
        senders = www@domain.com
        message = sorry server is offline

  deny
        ratelimit = 20 / 1h / strict / $sender_address_domain
        senders = *@domain.com
        message = sorry server is offline

  accept
</code>
</pre>
<p>The first rule is totally deny anything from apache&#8217;s vhost. It means non of the apache&#8217;s vhost can send outgoing email with PHP mail() function. If you are not comfortable with this. Can try on the second rules, which is rate limit the outgoing email, which can help to eliminate the massive outgoing email happened on apache web server UID. </p>
<p>Have fun controlling and fight with the spam <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>The post <a href="https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php">How to Disallow or Rate Limit Web Server Mail in Exim</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/how-to-disallow-or-rate-limit-web-server-mail-in-exim.php/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
