<?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>LAMPdocs: Linux, Apache, MySQL, PHP &#187; E-mail Management</title>
	<atom:link href="http://www.lampdocs.com/blog/category/e-mail-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lampdocs.com/blog</link>
	<description>Linux, Apache, MySQL, PHP: Docs, Tricks and Secrets</description>
	<lastBuildDate>Wed, 04 Jan 2012 13:11:27 +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>Exim incomplete transaction: unexpected disconnection while reading SMTP command</title>
		<link>http://www.lampdocs.com/blog/2008/11/exim-incomplete-transaction-unexpected-disconnection-while-reading-smtp-command/</link>
		<comments>http://www.lampdocs.com/blog/2008/11/exim-incomplete-transaction-unexpected-disconnection-while-reading-smtp-command/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 21:35:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E-mail Management]]></category>
		<category><![CDATA[Exim incomplete transaction]]></category>
		<category><![CDATA[unexpected disconnection while reading SMTP command]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=301</guid>
		<description><![CDATA[How to fix the issue related to  Exim incomplete transaction: you have to tune up timeouts in your e-mail client. ]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve had a problem like this. I didn&#8217;t make any changes, but my account refused to send mail at all. When my logs were read, here is what I got:</p>
<blockquote><p>2008-09-22 06:50:37 H=MY IP (SERVER) [MY IP] incomplete transaction (connection lost) from &lt;my@email.com&gt;<br />
2008-09-22 06:50:37 <a href="http://www.lampdocs.com/blog/tag/unexpected-disconnection-while-reading-smtp-command/" class="st_tag internal_tag" rel="tag" title="Posts tagged with unexpected disconnection while reading SMTP command">unexpected disconnection while reading SMTP command</a> from MY IP (SERVER) [MY IP]</p></blockquote>
<p>I thounght that&#8217;s related to my IP (as my IP is a dynamic one). But everything was ok with other servers and I has to investigate the issue.  I&#8217;ve tried many solutions, but found no one on the Internet. As usually, I had to figure it out by myself.</p>
<p>The solution was quite simple and was not related to the server. The only thing I had to do was to change the timeout value in my E-mail client (that&#8217;s <a href="http://ritlabs.com/en/products/thebat/">The Bat!</a>). While the default timeout value is 60 seconds, setting it to 120 solves the issue.</p>
<p>This solution should help you on busy servers, that are processing big amounts of data and your e-mails will be always sent in time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2008/11/exim-incomplete-transaction-unexpected-disconnection-while-reading-smtp-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim Problem: unable to set gid or uid (euid=8): domain_filter router</title>
		<link>http://www.lampdocs.com/blog/2008/10/exim-problem-unable-to-set-gid12-or-uid510-euid8-domain_filter-router/</link>
		<comments>http://www.lampdocs.com/blog/2008/10/exim-problem-unable-to-set-gid12-or-uid510-euid8-domain_filter-router/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 18:24:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E-mail Management]]></category>
		<category><![CDATA[chmod u+s exim]]></category>
		<category><![CDATA[directadmin exim setuid problem]]></category>
		<category><![CDATA[exim euid=8]]></category>
		<category><![CDATA[exim readerror='Success']]></category>
		<category><![CDATA[exim status=0100]]></category>
		<category><![CDATA[Exim stopped processing e-mails]]></category>
		<category><![CDATA[exim unable to set (euid=8)]]></category>
		<category><![CDATA[exim unable to set gid]]></category>
		<category><![CDATA[exim unable to set uid gid]]></category>
		<category><![CDATA[failure to transfer data from subprocess]]></category>
		<category><![CDATA[internal problem in domain_filter router]]></category>
		<category><![CDATA[unable to set euid=8]]></category>
		<category><![CDATA[unable to set gid]]></category>
		<category><![CDATA[unable to set gid exim]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=271</guid>
		<description><![CDATA[Today I&#8217;ve noticed a strange thing after Directadmin software update. Exim stopped processing e-mails, the thing that is really necessary for any server. I&#8217;ve started to look through log files to identify the problem. Here is what I have at the moment. My mainlog (/var/log/exim/mainlog) is full of messages like this: 2008-10-30 19:27:02 exim 4.67 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ve noticed a strange thing after Directadmin software update. <a href="http://www.lampdocs.com/blog/tag/exim-stopped-processing-e-mails/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Exim stopped processing e-mails">Exim stopped processing e-mails</a>, the thing that is really necessary for any server. I&#8217;ve started to look through log files to identify the problem. Here is what I have at the moment.</p>
<p>My mainlog (/var/log/exim/mainlog) is full of messages like this:</p>
<blockquote><p>2008-10-30 19:27:02 exim 4.67 daemon started: pid=16453, -q15m, listening for SMTP on port 25 (IPv4) port 587 (IPv4)<br />
2008-10-30 19:27:03 1KvZad-0001Ra-TE <a href="http://www.lampdocs.com/blog/tag/unable-to-set-gid/" class="st_tag internal_tag" rel="tag" title="Posts tagged with unable to set gid">unable to set gid</a>=12 or uid=510 (euid=8): domain_filter router (recipient is luna@mydomain.com)<br />
2008-10-30 19:27:03 1KvZad-0001Ra-TE <a href="http://www.lampdocs.com/blog/tag/internal-problem-in-domain_filter-router/" class="st_tag internal_tag" rel="tag" title="Posts tagged with internal problem in domain_filter router">internal problem in domain_filter router</a> (recipient is luna@mydomain.com): <a href="http://www.lampdocs.com/blog/tag/failure-to-transfer-data-from-subprocess/" class="st_tag internal_tag" rel="tag" title="Posts tagged with failure to transfer data from subprocess">failure to transfer data from subprocess</a>: status=0100 readerror=&#8217;Success&#8217;</p></blockquote>
<p>Messages are not delivered and I&#8217;m trying to investigate the issue. paniclog has messages similar to the shown above.</p>
<p>What are the ideas? First of all I&#8217;ve checked all the file permissions and they were ok. I&#8217;ve compared them to the permissions of a working server and found no difference. Then I&#8217;ve checked domain_filter setting of exim.conf: everything seems to be good too.</p>
<p>The idea came fromone of the numerous mailing lists. And it was simple enough to solve my issue. I just had to add a sticky bit to exim executable with one command. Here is what I had before:</p>
<p><a href="http://www.lampdocs.com/blog/wp-content/uploads/2008/10/eximfix2.jpg"><img class="alignnone size-medium wp-image-274" title="exim sticky bit" src="http://www.lampdocs.com/blog/wp-content/uploads/2008/10/eximfix2-300x80.jpg" alt="" width="300" height="80" /></a></p>
<p>The command I had to enter was <strong><a href="http://www.lampdocs.com/blog/tag/chmod-us-exim/" class="st_tag internal_tag" rel="tag" title="Posts tagged with chmod u+s exim">chmod u+s exim</a></strong></p>
<p><a href="http://www.lampdocs.com/blog/wp-content/uploads/2008/10/exim_fix.jpg"><img class="alignnone size-medium wp-image-275" title="exim_fix" src="http://www.lampdocs.com/blog/wp-content/uploads/2008/10/exim_fix-300x112.jpg" alt="" width="300" height="112" /></a></p>
<p>This solved all the issues after exim reboot. The most strange thing is that at another server such a software update came without anything like this: all the permissions were OK. Just preventing you from spending so much time: if you&#8217;re getting a problem like this, most probably you will be able to solve it with one single command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2008/10/exim-problem-unable-to-set-gid12-or-uid510-euid8-domain_filter-router/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting dovecot: Fatal: listen(993) failed: Address already in use</title>
		<link>http://www.lampdocs.com/blog/2008/10/starting-dovecot-fatal-listen993-failed-address-already-in-use/</link>
		<comments>http://www.lampdocs.com/blog/2008/10/starting-dovecot-fatal-listen993-failed-address-already-in-use/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 06:44:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E-mail Management]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dovecot 993]]></category>
		<category><![CDATA[dovecot address already in use]]></category>
		<category><![CDATA[dovecot does not start]]></category>
		<category><![CDATA[dovecot error directadmin]]></category>
		<category><![CDATA[dovecot listen failed]]></category>
		<category><![CDATA[repair dovecot directadmin]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=192</guid>
		<description><![CDATA[On some servers Dovecot doesn&#8217;t start automatically after reboot. That is a fault of the system administrator, but if you need to bring it back working there is a solution, that seems to be effective with all instances of listen() failed. Let&#8217;s take we&#8217;re trying to start dovecot and getting the following error: Fatal: listen(993) [...]]]></description>
			<content:encoded><![CDATA[<p>On some servers Dovecot doesn&#8217;t start automatically after reboot. That is a fault of the system administrator, but if you need to bring it back working there is a solution, that seems to be effective with all instances of listen() failed.</p>
<p>Let&#8217;s take we&#8217;re trying to start dovecot and getting the following error:</p>
<p><a href="http://www.lampdocs.com/blog/wp-content/uploads/2008/10/dovecot1.jpg"><img class="alignnone size-medium wp-image-193" title="dovecot start" src="http://www.lampdocs.com/blog/wp-content/uploads/2008/10/dovecot1-300x22.jpg" alt="" width="300" height="22" /></a></p>
<p><strong>Fatal: listen(993) failed: Address already in use</strong> means that something else is listening the same port. We need to identify the process, that&#8217;s why we need to run</p>
<blockquote><p><strong>lsof -i :993</strong></p></blockquote>
<p>This will show us which processes are listening port 993. In order to start Dovecot we need to kill these processes to make this port free. Command output will show us PID numbers of all running processes we need to kill so this will not be so hard to do.</p>
<p>We need to achieve the moment when <strong>lsof -i :993 </strong>does not return any process. When no process is listenenng this port, we can start Dovecot as usually by entering <strong>service dovecot start</strong>. That&#8217;s all, enjoy<strong> <img src='http://www.lampdocs.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2008/10/starting-dovecot-fatal-listen993-failed-address-already-in-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix &#8220;Mailbox in Use&#8221; Error in DirectAdmin</title>
		<link>http://www.lampdocs.com/blog/2008/07/how-to-fix-mailbox-in-use-error-in-directadmin/</link>
		<comments>http://www.lampdocs.com/blog/2008/07/how-to-fix-mailbox-in-use-error-in-directadmin/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 18:32:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin Tricks]]></category>
		<category><![CDATA[E-mail Management]]></category>
		<category><![CDATA[-ERR [IN-USE]]]></category>
		<category><![CDATA[directadmin mailbox in use]]></category>
		<category><![CDATA[err [in-use] mailbox in use]]></category>
		<category><![CDATA[err [in-use] user mailbox locked]]></category>
		<category><![CDATA[in-use] user mailbox locked]]></category>
		<category><![CDATA[linux repairing mailbox]]></category>
		<category><![CDATA[Mailbox in use]]></category>
		<category><![CDATA[repair mailbox directadmin]]></category>
		<category><![CDATA[repairing mailbox lock]]></category>

		<guid isPermaLink="false">http://www.lampdocs.com/blog/?p=124</guid>
		<description><![CDATA[Today I went back from my short trip to the country. First of all I decided to check my mail, and when I did it, I got the following error in my E-mail client: !25.07.2008, 19:20:39: FETCH -ERR [IN-USE] Mailbox in use. That&#8217;s not the first time when such an error happens and I already [...]]]></description>
			<content:encoded><![CDATA[<p>Today I went back from my short trip to the country. First of all I decided to check my mail, and when I did it, I got the following error in my E-mail client: <strong>!25.07.2008, 19:20:39: FETCH  -<a href="http://www.lampdocs.com/blog/tag/err-in-use-mailbox-in-use/" class="st_tag internal_tag" rel="tag" title="Posts tagged with err [in-use] mailbox in use">ERR [IN-USE] Mailbox in use</a></strong>. That&#8217;s not the first time when such an error happens and I already know the solution &#8211; I think it&#8217;ll be useful for all server administrators (By the way, It&#8217;s Sysadmin&#8217;s day today).</p>
<p>When you get the message that mailbox is used, you must have some lock files, that prevent using locked mailboxes. It is not so easy to find out the reason why these files appear (If you know, just write about it in comments). The solution is obvious &#8211; to find and destroy these files.</p>
<p>Mailbox lock files are usually located at <strong>/var/spool/virtual/</strong>. You fill find domain name folders there and your e-mail account lock files should be right there. Just check them.  I usually use locate to find these files &#8211; their number shouldn&#8217;t be big.</p>
<p>After you delete these files, your mailboxes will start working as usual.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lampdocs.com/blog/2008/07/how-to-fix-mailbox-in-use-error-in-directadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

