<?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>email &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Sat, 09 Jun 2012 08:55:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Directadmin : Problem Receiving Emails &#8211; The &#8220;Unknown User&#8221; Issue</title>
		<link>https://www.veriteknik.net.tr/en/directadmin-problem-recieving-emails-the-unknown-user-issue/</link>
					<comments>https://www.veriteknik.net.tr/en/directadmin-problem-recieving-emails-the-unknown-user-issue/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Sat, 09 Jun 2012 08:55:47 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=535</guid>

					<description><![CDATA[<p>If you get a 550 error as a reply when you email a user with directadmin, saying Remote host said: 550 &#8220;Unknown User&#8221; or The error that the other server returned was: 550 550 &#8220;Unknown User&#8221; (state 13). or something equivalent, then the problem might be your virtual domainowner settings. This happens with exim especially [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/directadmin-problem-recieving-emails-the-unknown-user-issue/">Directadmin : Problem Receiving Emails &#8211; The &#8220;Unknown User&#8221; Issue</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you get a <em>550 error</em> as a reply when you email a user with directadmin, saying <strong>Remote host said: 550 &#8220;Unknown User&#8221;</strong> or <strong>The error that the other server returned was: 550 550 &#8220;Unknown User&#8221; (state 13).</strong> or something equivalent, then the problem might be your virtual domainowner settings.</p>
<p>This happens with exim especially when moving from one server to another via Directadmin.</p>
<p>To verify this solution, first check your paniclog:</p>
<pre class="brush: bash; gutter: true; first-line: 1">tail /var/log/exim/paniclog</pre>
<p>If you get something like this:</p>
<blockquote><p>2012-06-08 18:53:01 1SczTF-0002Cj-B8 Failed to find user &#8220;&#8221; from expanded string &#8220;${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}&#8221; for the domain_filter router</p></blockquote>
<p>then you probably have an issue with your domainowners file. as you can see, the perl script can&#8217;t parse the <em>username</em>, hence the error &#8220;unknown user&#8221; when receiving email.</p>
<p>The solution is to rebuild the /etc/virtual directory</p>
<p>Get a backup</p>
<pre class="brush: bash; gutter: true; first-line: 1">cd /etc
cp -Rp virtual virtual.backup</pre>
<p>Verify its existance</p>
<pre class="brush: bash; gutter: true; first-line: 1">mkdir -p /etc/virtual
chmod 755 /etc/virtual
chown mail:mail /etc/virtual</pre>
<p>Create this script and save it somewhere, let&#8217;s say /root/fix_virtual.sh</p>
<pre class="brush: bash; gutter: true; first-line: 1">#!/bin/sh

echo -n '' &gt; /etc/virtual/domains
echo -n '' &gt; /etc/virtual/domainowners

mkdir -p /etc/virtual/`hostname`
chown mail:mail /etc/virtual/`hostname`
chmod 711 /etc/virtual/`hostname`
echo `hostname` &gt;&gt; /etc/virtual/domains

for u in `ls /usr/local/directadmin/data/users`; do
{
       for d in `cat /usr/local/directadmin/data/users/$u/domains.list`; do
       {
               echo "$d: $u" &gt;&gt; /etc/virtual/domainowners
               echo "$d" &gt;&gt; /etc/virtual/domains

               DMN=/etc/virtual/$d

               mkdir -p $DMN
               chmod 711 $DMN
               chown mail:mail $DMN

               touch $DMN/aliases
               if [ ! -s $DMN/aliases ]; then
                       echo "$u: $u" &gt; $DMN/aliases
               fi
               touch $DMN/autoresponder.conf
               touch $DMN/filter
               touch $DMN/filter.conf
               touch $DMN/passwd
               touch $DMN/quota
               touch $DMN/vacation.conf
               chown mail:mail $DMN/*

               mkdir -p $DMN/majordomo
               chmod 751 $DMN/majordomo
               chown majordomo:daemon $DMN/majordomo

               mkdir -p $DMN/reply
               chmod 700 $DMN/reply
               chown mail:mail $DMN/reply

               for p in `cat /usr/local/directadmin/data/users/$u/domains/$d.pointers 2&gt;/dev/null`; do
               {
                       echo "$p: $u"  &gt;&gt; /etc/virtual/domainowners
                       echo "$p" &gt;&gt; /etc/virtual/domains
                       ln -s $d /etc/virtual/$p
               };
               done;
       }
       done;
}
done;

chown mail:mail /etc/virtual/domains
chown mail:mail /etc/virtual/domainowners
chmod 644 /etc/virtual/domainowners
chmod 644 /etc/virtual/domains</pre>
<p>Make it exacutable and run.</p>
<pre class="brush: bash; gutter: true; first-line: 1">chmod 755 /root/fix_virtual.sh
/root/fix_virtual.sh</pre>
<p>Restart exim services</p>
<pre class="brush: bash; gutter: true; first-line: 1">service exim restart</pre>
<p>Your problem should be fixed.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/directadmin-problem-recieving-emails-the-unknown-user-issue/">Directadmin : Problem Receiving Emails &#8211; The &#8220;Unknown User&#8221; Issue</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/directadmin-problem-recieving-emails-the-unknown-user-issue/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">535</post-id>	</item>
	</channel>
</rss>
