<?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>A Leased Line to the Collective Unconscious &#187; plesk ubuntu parallels 8.4</title>
	<atom:link href="http://www.chichira.com/tag/plesk-ubuntu-parallels-84/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chichira.com</link>
	<description>random scribblings from the other end of the wire</description>
	<lastBuildDate>Wed, 04 Nov 2009 12:15:29 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Parallels Plesk 8.4 Ubuntu speeding up SMTP</title>
		<link>http://www.chichira.com/2008/07/17/parallels-plesk-84-ubuntu-speeding-up-smtp/</link>
		<comments>http://www.chichira.com/2008/07/17/parallels-plesk-84-ubuntu-speeding-up-smtp/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 14:39:55 +0000</pubDate>
		<dc:creator>RobinLayfield</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[geek stuff]]></category>
		<category><![CDATA[plesk ubuntu parallels 8.4]]></category>

		<guid isPermaLink="false">http://www.chichira.com/?p=57</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used PLESK for any great length of time, you&#8217;ll know that whilst it is a great bit of software, for some reason it defaults to doing Reverse DNS lookups whenever a client connects to it to send mail.</p>
<p>Yeah rDNS is a useful tool for stopping spam and the like&#8230; but it also means that <em>every single</em> email sent takes 26-30 seconds to go out. That&#8217;s frankly unacceptable when you are trying to operate a commercial service and vastly undermines any possible benefits from it.</p>
<p>The good news is that it is (fairly) easily resolved. All you have to do is put in a command-line flag to tell the mail server <em>not </em>to perform an rDNS lookup. The hard part is figuring out exactly where to stick it.</p>
<p>Up to version 8, I used to refer to this handy guide, which resolved the problem though in ways I couldn&#8217;t quite understand! see here at</p>
<p><a href="http://tyrannical.org/page-14" target="_blank">http://tyrannical.org/page-14</a></p>
<p>PLESK 8.4 introduces some major under-the-hood improvements, one of which is a subtle reorganisation of where the commands are stored. After some handy support from our ISP CWCS, we found that the command had moved to here:</p>
<p>/etc/inetd.conf</p>
<p>and all you have to do to switch off rDNS is to insert the following flag after the second occurrence of the phrase &#8220;tcp-env&#8221; in your inetd.conf.</p>
<p>-Rt0</p>
<p>More info and some other useful tips <a href="http://www.itslot.com/freebsd_plesk_tips">here</a></p>
<p><strong>Anatomy of -Rt0<br />
</strong>What does -Rt0 mean exactly? Well it&#8217;s a command that&#8217;s issued to the TCP server and it tells it to</p>
<p>R &#8211; Do not attempt to obtain <tt>$TCPREMOTEINFO</tt> from the remote host.<br />
t<em>n</em> &#8211; Give up on the <tt>$TCPREMOTEINFO</tt> connection attempt after <tt><em>n</em></tt> seconds. (default is 26 seconds ho, hum)</p>
<p><strong>The complete howto<br />
</strong></p>
<ol>
<li>Login to your PLESK server using SSH</li>
<li>type the command <em>vi /etc/inetd.conf</em></li>
<li>type the letter <em>I</em> (to insert)</li>
<li>find the two lines that begin with <em>smtp stream</em> and <em>smtps stream</em></li>
<li>look for the second occurrence of <em>tcp-env</em></li>
<li>type <em>-Rt0</em> into the line (note zero, not &#8216;o&#8217;)</li>
<li>hit <em>[esc]</em></li>
<li>type <em>: </em>(shift-colon)</li>
<li>type <em>wq!</em> (meaning write the file and quit from vi)</li>
<li>hit <em>[return]</em></li>
</ol>
<p>now all you have to do is restart inetd, which is done on Ubuntu by entering the command</p>
<p>/etc/init.d/<em>xinetd restart</em></p>
<p>You should now find that SMTP mail sending is lovely and quick. Phew!</p>
<p><strong>Caveat</strong><br />
Please note that making some changes in the PLESK domain control panel will reset this command line, so you may need to edit it again if you start to notice delayed SMTP sends</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chichira.com/2008/07/17/parallels-plesk-84-ubuntu-speeding-up-smtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
