<?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>InstaCarma Blog &#187; block</title>
	<atom:link href="http://www.instacarma.com/blog/tag/block/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Sat, 10 Mar 2012 21:44:10 +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>How to block emails from a specific address using Exim</title>
		<link>http://www.instacarma.com/blog/technical/how-to-block-emails-from-a-specific-address-using-exim/</link>
		<comments>http://www.instacarma.com/blog/technical/how-to-block-emails-from-a-specific-address-using-exim/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 15:20:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1144</guid>
		<description><![CDATA[Filed under: block, email, exim, mail, WHM Issue : How to block emails from a specific address on a cPanel/WHM server using Exim ? Solution : This is fairly easy to achieve with Exim. First you&#8217;ll need to find the system filter file for Exim. This can be found out through WHM >> Main >> [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/block/'>block</a>, <a href='http://www.instacarma.com/blog/tag/email/'>email</a>, <a href='http://www.instacarma.com/blog/tag/exim/'>exim</a>, <a href='http://www.instacarma.com/blog/tag/mail/'>mail</a>, <a href='http://www.instacarma.com/blog/tag/whm/'>WHM</a></p>
<p><strong>Issue : </strong></p>
<p>How to block emails from a specific address on a cPanel/WHM server using Exim ?</p>
<p><strong>Solution : </strong></p>
<p>This is fairly easy to achieve with Exim.<br />
First you&#8217;ll need to find the system filter file for Exim. This can be found out through WHM >> Main >> Service Configuration >> Exim Configuration Editor.<br />
Towards the middle of the page, under the section &#8216;Filters&#8217; , you &#8216;ll find the path to the file.<br />
Open that file via SSH using your favorite editor and add the following to it : </p>
<blockquote><p>if first_delivery<br />
and ( (&#8220;$h_from:&#8221; contains &#8220;emailtoblock@domainname.com&#8221;)<br />
)<br />
then fail<br />
endif</p></blockquote>
<p>If you would like a copy of the email to be sent to you after the message fails, use the following code :</p>
<blockquote><p>if first_delivery<br />
and ( (&#8220;$h_from:&#8221; contains &#8220;emailtoblock@domainname.com&#8221;)<br />
)<br />
then<br />
unseen deliver &#8220;youremail@yourdomainname.com&#8221;<br />
fail<br />
endif</p></blockquote>
<p>Make sure that you substitute the correct email addresses in the above code.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/how-to-block-emails-from-a-specific-address-using-exim/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/how-to-block-emails-from-a-specific-address-using-exim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

