<?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>DirectAdmin &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/category/knowledge_base/linux/directadmin-linux/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>Mon, 18 Mar 2019 07:45:01 +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>Finding spammer php script in DirectAdmin</title>
		<link>https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/</link>
					<comments>https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/#respond</comments>
		
		<dc:creator><![CDATA[Fehmi Can Tokay]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 13:13:04 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[spam]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1113</guid>

					<description><![CDATA[<p>There is an easy method to find spammer php script in your home path. Directadmin logs these spammer scripts which are using phpmailer or similar things. To find this: Go to your home path cd /home Find your log files find ./ -type f -size +1k -name "php-mail.log" After this find operation, you can see [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/">Finding spammer php script in DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There is an easy method to find spammer php script in your home path. Directadmin logs these spammer scripts which are using phpmailer or similar things. To find this:</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Go to your home path</li>
</ol>
</li>
</ol>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">cd /home</pre>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Find your log files</li>
</ol>
</li>
</ol>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">find ./ -type f -size +1k -name "php-mail.log"</pre>
<p>After this find operation, you can see your log files. It means, users that have this log file are could be the potential spammer.</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Tailf your log file.</li>
</ol>
</li>
</ol>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">tailf /home/user/.php/php-mail.log</pre>
<p>&nbsp;</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>You can see spammer scripts.!!</li>
</ol>
</li>
</ol>
<pre class="brush: bash; gutter: true; first-line: 1">mail() on [/home/user/domains/domain.com.tr/public_html/modules/mod_users_latest/files.php(1947) : eval()'d code:775]: To: user@hotmail.com -- Headers: Date: Sat, 28 Jan 2017 15:51:47 +0300 From: Flora &lt;user@domain.com.tr&gt; Message-ID: &lt;3f796c9fb6de893f060882897f360bea@domain.com.tr&gt; X-Priority: 3 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_3f796c9fb6de893f060882897f360bea" Content-Transfer-Encoding: 8bit</pre>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Remove this peace of shit.</li>
</ol>
</li>
</ol>
<pre class="brush: bash; gutter: true; first-line: 1">rm /home/user/domains/domain.com.tr/public_html/modules/mod_users_latest/files.php</pre>
<p>You can easiliy get rid of these spammer scripts using this method. Don&#8217;t forget to clear your mail queue after this operation.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/">Finding spammer php script in DirectAdmin</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/finding-spammer-php-script-directadmin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1113</post-id>	</item>
		<item>
		<title>A faster way to delete files</title>
		<link>https://www.veriteknik.net.tr/en/faster-way-delete-files/</link>
					<comments>https://www.veriteknik.net.tr/en/faster-way-delete-files/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Mon, 12 May 2014 23:41:48 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[faster]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[unlink]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=963</guid>

					<description><![CDATA[<p>If you are struggling with millions of SPAM messages like me, you should rather use &#8220;find&#8221; instead of &#8220;rm&#8221; while deleting files in a folder. This method is tested to be faster than rm -rf: switch to the folder containing files, in my case: cd /var/spool/exim/ ans start deleting files by typing: find . -maxdepth [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/faster-way-delete-files/">A faster way to delete files</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are struggling with millions of SPAM messages like me, you should rather use &#8220;find&#8221; instead of &#8220;rm&#8221; while deleting files in a folder. This method is tested to be faster than rm -rf:</p>
<p>switch to the folder containing files, in my case:</p>
<pre class="brush: bash; gutter: true; first-line: 1">cd /var/spool/exim/</pre>
<p>ans start deleting files by typing:</p>
<pre class="brush: bash; gutter: true; first-line: 1">find . -maxdepth 1 -type f -delete</pre>
<p>you can track the number of remaining files easily by tiping the below command from another terminal: (cd to same directory)</p>
<pre class="brush: bash; gutter: true; first-line: 1">find . -maxdepth 1 -type f | wc -l</pre>
<p>..</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/faster-way-delete-files/">A faster way to delete files</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/faster-way-delete-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">963</post-id>	</item>
		<item>
		<title>Installing MS SQL Module to PHP on DirectAdmin</title>
		<link>https://www.veriteknik.net.tr/en/installing-ms-sql-module-to-php-on-directadmin/</link>
					<comments>https://www.veriteknik.net.tr/en/installing-ms-sql-module-to-php-on-directadmin/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Fri, 23 Aug 2013 06:32:00 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=831</guid>

					<description><![CDATA[<p>If you need to connect to an MS Sql Server remotely from your DirectAdmin server via php, you need to rebuild PHP with necessary components. Get the latest stable release of FreeTDS and install it. cd /root wget ftp://ftp.astron.com/pub/freetds/current/freetds-current.tgz tar -xvzf freetds-current.tgz cd freetds-dev.0.92.377 ./configure --prefix=/usr/local/freetds make make install Now we should tell Direct Admin&#8217;s [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/installing-ms-sql-module-to-php-on-directadmin/">Installing MS SQL Module to PHP on DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you need to connect to an MS Sql Server remotely from your DirectAdmin server via php, you need to rebuild PHP with necessary components. Get the latest stable release of FreeTDS and install it.</p>
<pre class="brush: bash; gutter: true; first-line: 1">cd /root
wget ftp://ftp.astron.com/pub/freetds/current/freetds-current.tgz
tar -xvzf freetds-current.tgz
cd freetds-dev.0.92.377
./configure --prefix=/usr/local/freetds
make
make install</pre>
<p>Now we should tell Direct Admin&#8217;s custom build that we want the MS Sql libraries installed using freetds.Edit the file :/usr/local/directadmin/custombuild/configure/ap2/configure.php5 add</p>
<pre class="brush: bash; gutter: true; first-line: 1">--with-mssql=/usr/local/freetds \</pre>
<p>to anywhere in the file. If you&#8217;re adding it the to end of the file, don&#8217;t add the <strong>\</strong> at the end, instead add to the end of the line &#8220;before&#8221; the last line. Now go to custombuild and build the new PHP.</p>
<pre class="brush: bash; gutter: true; first-line: 1">cd /usr/local/directadmin/custombuild
./build clean
./build php d</pre>
<p>Check if MS Sql is intalled.</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1">php -m|grep mssql
mssql</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/installing-ms-sql-module-to-php-on-directadmin/">Installing MS SQL Module to PHP on DirectAdmin</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/installing-ms-sql-module-to-php-on-directadmin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">831</post-id>	</item>
		<item>
		<title>Delete Mail From Queue in Exim</title>
		<link>https://www.veriteknik.net.tr/en/delete-mail-from-queue-in-exim/</link>
					<comments>https://www.veriteknik.net.tr/en/delete-mail-from-queue-in-exim/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Fri, 18 Jan 2013 15:43:58 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[spam]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=767</guid>

					<description><![CDATA[<p>Deleting email from the exim queue is unfortunately not that simple. If you have a massive spammer in your system, you can clear the email originating from them with the command below. exim -bpru &#124; tr '\n' + &#124; sed -e "s/++/=/g" &#124; tr -d + &#124; tr = '\n' &#124; grep "spammer@email.com" &#124; awk [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/delete-mail-from-queue-in-exim/">Delete Mail From Queue in Exim</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Deleting email from the exim queue is unfortunately not that simple. If you have a massive spammer in your system, you can clear the email originating from them with the command below.</p>
<pre class="brush: bash; gutter: true; first-line: 1">exim -bpru | tr '\n' + | sed -e "s/++/=/g" | tr -d + | tr = '\n' | grep "spammer@email.com" | awk {'print $3'} | xargs exim -Mrm</pre>
<p>Simple replace the spammer@email.com address with the potential spammer.<br />
Don&#8217;t forget that this command uses the whole queue list to process. Sometimes if you have hundreds of thousands of email from this spammer in queue, it will get hard to process them all for the system. So instead of using the whole queue list, we can break it down to pieces with the head command.</p>
<p>The command below will break it down to pieces of 5000, so if you have more than 5000, you should run this command several times.</p>
<pre class="brush: bash; gutter: true; first-line: 1">exim -bpru | head -n 5000 | tr '\n' + | sed -e "s/++/=/g" | tr -d + | tr = '\n' | grep "spammer@email.com" | awk {'print $3'} | xargs exim -Mrm</pre>
<p>To delete all mails from the queue, simply use this command.</p>
<pre class="brush: bash; gutter: true; first-line: 1">exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | sh</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/delete-mail-from-queue-in-exim/">Delete Mail From Queue in Exim</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/delete-mail-from-queue-in-exim/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">767</post-id>	</item>
		<item>
		<title>Adding New IP to DirectAdmin From Different Subnet and Gateway</title>
		<link>https://www.veriteknik.net.tr/en/adding-new-ip-to-directadmin-from-different-subnet-and-gateway/</link>
					<comments>https://www.veriteknik.net.tr/en/adding-new-ip-to-directadmin-from-different-subnet-and-gateway/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Mon, 08 Oct 2012 13:04:56 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[directadmin ip gateway]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=639</guid>

					<description><![CDATA[<p>Earlier I&#8217;ve posted an article describing how to add multiple ip addresses on a single network device. Even though you can add IP addresses on Direct Admin using it&#8217;s GUI, unfortunately the GUI fails if the netmask or the gateway is different. So if you have a server running Direct Admin with the IP address [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/adding-new-ip-to-directadmin-from-different-subnet-and-gateway/">Adding New IP to DirectAdmin From Different Subnet and Gateway</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Earlier I&#8217;ve posted an <a title="Bind Multiple IP Addresses on a Single Network Card IPv4 &amp; IPv6" href="http://www.plugged.in/linux/bind-multiple-ip-addresses-on-a-single-network-card.html">article</a> describing how to add multiple ip addresses on a single network device.</p>
<p>Even though you can add IP addresses on Direct Admin using it&#8217;s GUI, unfortunately the GUI fails if the netmask or the gateway is different. So if you have a server running Direct Admin with the IP address 10.10.10.5 and you want to add a new IP address like 192.168.16.7 then you&#8217;ll run into some problems.</p>
<p>To deal with it, we can add the IP&#8217;s manually. You can either add the IP&#8217;s to a new device, or an alias to a present device.</p>
<p>Let&#8217;s first learn what device we&#8217;re using.</p>
<pre class="brush: bash; gutter: true; first-line: 1">ifconfig</pre>
<p>This will probably return something like &#8220;eth0&#8221; which is he device.<br />
If you&#8217;d like to add your new IP as an alias to this one, simple create the file below:</p>
<pre class="brush: bash; gutter: true; first-line: 1">vi /etc/sysconfig/network-scripts/ifcfg-eth0:1</pre>
<pre class="brush: text; gutter: true; first-line: 1">DEVICE=eth0:1
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.10.7
NETMASK=255.255.255.248</pre>
<p>Note that there&#8217;s no Gateway specified here, so if you&#8217;d like to add an IP address with a different gateway, create the file below (with your own settings ofcouse)</p>
<pre class="brush: bash; gutter: true; first-line: 1">vi /etc/sysconfig/network-scripts/ifcfg-eth1</pre>
<pre class="brush: text; gutter: true; first-line: 1">DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
HWADDR=AA:BB:CC:DD:EE:FF
IPADDR=192.168.10.7
NETMASK=255.255.255.248
GATEWAY=192.168.10.1</pre>
<p>After this, just restart your network service. (Don&#8217;t forget that if you do anything wrong, you probably won&#8217;t be able to reach your server over network)</p>
<pre class="brush: bash; gutter: true; first-line: 1">service network restart</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/adding-new-ip-to-directadmin-from-different-subnet-and-gateway/">Adding New IP to DirectAdmin From Different Subnet and Gateway</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/adding-new-ip-to-directadmin-from-different-subnet-and-gateway/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">639</post-id>	</item>
		<item>
		<title>PHP-SOAP Installation on DirectAdmin</title>
		<link>https://www.veriteknik.net.tr/en/php-soap-installation-on-directadmin/</link>
					<comments>https://www.veriteknik.net.tr/en/php-soap-installation-on-directadmin/#respond</comments>
		
		<dc:creator><![CDATA[Mustafa Emre Aydın]]></dc:creator>
		<pubDate>Sat, 18 Aug 2012 10:29:17 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[LINUX]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[soap]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=629</guid>

					<description><![CDATA[<p>People using Direct Admin usually do the mistake to install anything new by using the yum repositories. In fact, Direct Admin has a custom build method, so when you want to add something new to your system, you might need to recompile what&#8217;s allready installed. The same goes for the PHP-SOAP too. Yet don&#8217;t freak [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-soap-installation-on-directadmin/">PHP-SOAP Installation on DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>People using Direct Admin usually do the mistake to install anything new by using the yum repositories. In fact, Direct Admin has a custom build method, so when you want to add something new to your system, you might need to recompile what&#8217;s allready installed.</p>
<p>The same goes for the PHP-SOAP too. Yet don&#8217;t freak out, it&#8217;s very simple.</p>
<p>Go to your Direct Admin custom build directory</p>
<pre class="brush: bash; gutter: true; first-line: 1">cd /usr/local/directadmin/custombuild</pre>
<p>Now let&#8217;s see our custom build configuration files.</p>
<pre class="brush: bash; gutter: true; first-line: 1">./build used_configs</pre>
<p>One of the outputs is the PHP configuration file, edit that file,</p>
<pre class="brush: bash; gutter: true; first-line: 1">/usr/local/directadmin/custombuild/configure/suphp/configure.php5</pre>
<p>Now append <strong>–enable-soap</strong> to the end of the file. Don&#8217;t forget to add a <strong>&#8220;\</strong>&#8221; to the end of the last line.</p>
<p>After this, save the file and exit. Now we&#8217;re ready to recompile php.</p>
<pre class="brush: bash; gutter: true; first-line: 1">./build php all</pre>
<p>That&#8217;s it!</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-soap-installation-on-directadmin/">PHP-SOAP Installation on DirectAdmin</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/php-soap-installation-on-directadmin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">629</post-id>	</item>
		<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>
		<item>
		<title>How to Reset DirectAdmin &#8220;admin&#8221; Password</title>
		<link>https://www.veriteknik.net.tr/en/how-to-reset-directadmin-admin-password/</link>
					<comments>https://www.veriteknik.net.tr/en/how-to-reset-directadmin-admin-password/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Mon, 16 Apr 2012 00:20:15 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[ssh]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=306</guid>

					<description><![CDATA[<p>DirectAdmin determines the admin password during installation and saves these passwords into the file called setup.txt. If you havent changed this password, you can find it in this file, to see the file contents: less /usr/local/directadmin/scripts/setup.txt adminpass= you can find admin password here, and if you didn&#8217;t change it after installing you should be able [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-reset-directadmin-admin-password/">How to Reset DirectAdmin &#8220;admin&#8221; Password</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>DirectAdmin determines the admin password during installation and saves these passwords into the file called setup.txt. If you havent changed this password, you can find it in this file, to see the file contents:</p>
<blockquote><p>less /usr/local/<em>directadmin</em>/scripts/setup.txt</p></blockquote>
<p>adminpass= you can find admin password here, and if you didn&#8217;t change it after installing you should be able to log in to your admin interface</p>
<p>to change admin password by ssh or console, write:</p>
<blockquote><p>passwd admin</p></blockquote>
<p>and enter your new password.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-reset-directadmin-admin-password/">How to Reset DirectAdmin &#8220;admin&#8221; Password</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/how-to-reset-directadmin-admin-password/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">306</post-id>	</item>
		<item>
		<title>MySQL root password recovery in DirectAdmin</title>
		<link>https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/</link>
					<comments>https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 15 Apr 2012 23:58:02 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[set]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=291</guid>

					<description><![CDATA[<p>Before changing MySQL root password you may try to recover default installation password. DirectAdmin MySQL root password is set within the installation process and written down to setup.txt. If you didn&#8217;t change this password you can find the default one in the setup.txt, use the command below to see the contents of /usr/local/directadmin/scripts/setup.txt: your password [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/">MySQL root password recovery in DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Before changing MySQL root password you may try to recover default installation password. DirectAdmin MySQL root password is set within the installation process and written down to setup.txt.</p>
<p style="text-align: justify;">If you didn&#8217;t change this password you can find the default one in the setup.txt, use the command below to see the contents of /usr/local/directadmin/scripts/setup.txt:</p>
<p style="text-align: justify;">your password is stored in the line starting with &#8220;mysql=&#8221;</p>
<p style="text-align: justify;">To see the contents of this file from a terminal, type:</p>
<pre class="brush: shell; gutter: true; first-line: 1">less /usr/local/directadmin/scripts/setup.txt</pre>
<p><span style="text-align: justify;">If you want to access mysql from ssh or console directly without typing password, create a file in /root/ dir called .my.cnf:</span></p>
<pre class="brush: shell; gutter: true; first-line: 1">touch /root/.my.cnf</pre>
<p>and edit this file with the vi editor:</p>
<pre class="brush: bash; gutter: false; first-line: 1">vi /root/.my.cnf</pre>
<p>Add the lines below:</p>
<pre class="brush: bash; gutter: true; first-line: 1">[client]
 user=root
 password=XXXXXX</pre>
<p>Fill the password with the pass you got from setup.txt, save the file with SHIFT+ZZ or :wq and exit. After this step just write <strong>mysql </strong>to enter MySQL console directly without password.</p>
<pre class="brush: bash; gutter: false; first-line: 1">[root@test ~]# mysql
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 169833
 Server version: 5.0.77-log MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql&gt;</pre>
<p>..</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/mysql-root-password-recovery-in-directadmin/">MySQL root password recovery in DirectAdmin</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/mysql-root-password-recovery-in-directadmin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">291</post-id>	</item>
		<item>
		<title>Step III: DirectAdmin post installation tasks</title>
		<link>https://www.veriteknik.net.tr/en/step-iii-directadmin-post-installation-tasks/</link>
					<comments>https://www.veriteknik.net.tr/en/step-iii-directadmin-post-installation-tasks/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 15 Apr 2012 23:42:35 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[directadmin]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=279</guid>

					<description><![CDATA[<p>There are some important processes after successfully installation of DirectAdmin and if you miss these steps, the system may not work efficiently. After logged in with the admin user: (default admin password is located at: /usr/local/directadmin/scripts/setup.txt) Add an additional IP for the second DNS Server, to do so, click to the &#8220;IP Management&#8221; link in [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/step-iii-directadmin-post-installation-tasks/">Step III: DirectAdmin post installation tasks</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are some important processes after successfully installation of DirectAdmin and if you miss these steps, the system may not work efficiently. After logged in with the admin user: (default admin password is located at: /usr/local/directadmin/scripts/setup.txt)</p>
<ol>
<li>Add an additional IP for the second DNS Server, to do so, click to the &#8220;IP Management&#8221; link in the &#8220;Admin Level&#8221;. While adding IP address, pay attention to SUBNET value and be sure to assign the same subnet as the IP address or you network may hang, after adding process is complete, choose 2 IP adresses and click to the &#8220;Assign to admin&#8221; button.</li>
<li>In the second step, Click &#8220;user level&#8221; link located at the right-top side of the page. Click &#8220;Domain Setup&#8221; link and click &#8220;add new domain&#8221;. enter the main site name without www.</li>
<li>Switch to reseller level, below the title &#8220;Extra Features&#8221; click &#8220;nameservers&#8221; link. Use the IP addresses just added to create the name servers of the default domain. Select both IP addresses and click &#8220;Create&#8221; button. With this step finished you set-up basic operation of DirectAdmin. Further, you can create your reseller plans and you can edit your main site&#8217;s settings through &#8220;User Level&#8221; menu.</li>
<li>You can update your system any time using &#8220;yum upgrade -y&#8221; via ssh or terminal and your control panel through a terminal using &#8220;custombuild&#8221;</li>
<li>http://www.directadmin.com/forum/ includes various information about your control panel.</li>
</ol>
<p>Security &amp; performance Guidelines</p>
<ol>
<li>Change SSHD port to something you know or only allow certain IP addresses to access SSH</li>
<li>edit php.ini and set your date.timezone, restrict calling of system functions</li>
<li>Optimize MySQL by setting /etc/my.cnf</li>
</ol>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/step-iii-directadmin-post-installation-tasks/">Step III: DirectAdmin post installation tasks</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/step-iii-directadmin-post-installation-tasks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">279</post-id>	</item>
	</channel>
</rss>
