<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[I cannot send any mail from the server even via command line. The following  error occurs: "PERM_FAILURE: SMTP Error (state 13): 554 mail server permanently rejected message (#5.3.0)"]]></title>
<link>http://kb.parallels.com/en/836</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">I cannot send any mail from the server even via command line. The following  error occurs: "PERM_FAILURE: SMTP Error (state 13): 554 mail server permanently rejected message (#5.3.0)"</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 836&nbsp;</div>
					<div>Last Review: Jul,13 2009</div>
					<tr>
						<td>Author: </td>
						<td>Daria Taranova</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Daria Taranova</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 8.x for Linux/Unix</li>
							<li>Plesk 7.5.x Reloaded</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					The following headers are bounced back during the test:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>&nbsp;&nbsp;&nbsp; Delivery to the following recipient failed permanently: test@domain.com<br />Technical details of permanent failure: PERM_FAILURE: SMTP Error (state 13): 554 mail server&nbsp;&nbsp;&nbsp;&nbsp; permanently rejected message (#5.3.0)</span><br /><br />Or you see the errors in maillog:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'> warning: trouble injecting bounce message, will try later</span><br /><br />
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					This is a kind of permission error. Please check /usr/local/psa/var/log/maillog for errors. It usually happens when there are incorrect permissions on qmail binary files, like:<br /><p><br /><div class="commandline"><code><br /># ls -l /var/qmail/bin/qmail-queue*<br />-r-xr-xr-x    1 drweb    qmail      158268 Aug 16 11:08 /var/qmail/bin/qmail-queue<br />-r-xr-xr-x    1 root     qmail      158268 Sep 13  2004 /var/qmail/bin/qmail-queue.drweb<br />-r-xr-xr-x    1 root     qmail       12044 Aug 17 13:57 /var/qmail/bin/qmail-queue.origin </code></div><br /><br />But the permissions must be:<br /><br /><div class="commandline"><code><br /># ls -la /var/qmail/bin/qmail-queue*<br />-r-s--x--x  1 drweb  qmail 161024 Oct 11 13:31 /var/qmail/bin/qmail-queue<br />-r-s--x--x  1 drweb  qmail 161024 Oct 11 13:31 /var/qmail/bin/qmail-queue.drweb<br />-r-s--x--x  1 qmailq qmail  16012 Aug 24 13:21 /var/qmail/bin/qmail-queue.origin </code></div><br /><br />Otherwise, files in the qmail queue are created with wrong permissions and qmail can't write to drweb temp directory.<br /><br />Also, fix permissions on the queue files with the following command:<br /><br /><div class="commandline"><code>for i in /var/qmail/queue/mess/*; do chown qmailq:qmail $i/*;done </code></div><br /><br /><br />If you have DrWeb installed on the server, please look at <a href="http://kb.parallels.com../article_22_1552_en.html">1552</a>.</p>
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=836&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=836&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '836',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Daria Taranova</author>
<guid isPermaLink="false">492 LastUpdated: 2009-07-13 13:35:56</guid>
<pubDate>2008-10-06 09:10:46</pubDate>
</item>
</channel>
</rss>



