<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — localhost.localdomain instead of my real host]]></title>
		<link>http://www.iredmail.org/forum/topic43-localhostlocaldomain-instead-of-my-real-host.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic43.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in localhost.localdomain instead of my real host.]]></description>
		<lastBuildDate>Sat, 06 Jun 2009 14:03:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post276.html#p276</link>
			<description><![CDATA[<p>Only for LDAP.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 06 Jun 2009 14:03:17 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post276.html#p276</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post274.html#p274</link>
			<description><![CDATA[<p>Thank you so much! This is only for LDAP or is enough for MySQL too?</p>]]></description>
			<author><![CDATA[null@example.com (Rashef)]]></author>
			<pubDate>Sat, 06 Jun 2009 11:41:59 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post274.html#p274</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post269.html#p269</link>
			<description><![CDATA[<div class="quotebox"><cite>Rashef wrote:</cite><blockquote><p>Is there anything else to do to assure all have right &#039;READ&#039; permission to this cert file?</p></blockquote></div><p>Use &#039;getfacl&#039; command to read the permissions of these two files, and then use &#039;setfacl&#039; command to set correct permissions on new files.</p><div class="codebox"><pre><code># setfacl -m u:ldap:r-- /etc/pki/tls/private/iRedMail.key</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 06 Jun 2009 08:03:35 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post269.html#p269</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post267.html#p267</link>
			<description><![CDATA[<p>Is there anything else to do to assure all have right &#039;READ&#039; permission to this cert file?</p>]]></description>
			<author><![CDATA[null@example.com (Rashef)]]></author>
			<pubDate>Sat, 06 Jun 2009 07:24:52 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post267.html#p267</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post266.html#p266</link>
			<description><![CDATA[<div class="quotebox"><cite>Rashef wrote:</cite><blockquote><p>${TLS_DEPARTMENT} =</p></blockquote></div><p>Empty? why not give it a value?</p><div class="quotebox"><blockquote><p>${TLS_ADMIN} = postmaster@mydomain.it</p></blockquote></div><p>A valid email address which can receive mail is recommend.</p><div class="quotebox"><blockquote><p>${SSL_CERT_FILE} = <strong>???</strong> &lt;-- What path? Which name?<br />${SSL_KEY_FILE} = <strong>???</strong> &lt;-- What path? Which name?</p></blockquote></div><p>Defined in iRedMail-x.y.z/conf/global:<br /></p><div class="codebox"><pre><code>    export SSL_FILE_DIR=&quot;/etc/pki/tls&quot; # &lt;- RedHat/CentOS
    export SSL_FILE_DIR=&quot;/etc/ssl&quot;     # &lt;- Debian/Ubuntu

export SSL_CERT_FILE=&quot;${SSL_FILE_DIR}/certs/iRedMail_CA.pem&quot;
export SSL_KEY_FILE=&quot;${SSL_FILE_DIR}/private/iRedMail.key&quot;</code></pre></div><div class="quotebox"><blockquote><p>Then, since I&#039;m using MySQL instead of LDAP... what to do?</p></blockquote></div><p>What do you want to do?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 06 Jun 2009 07:21:20 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post266.html#p266</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post265.html#p265</link>
			<description><![CDATA[<p>Any tips?</p><p><img src="http://www.iredmail.org/forum/img/smilies/neutral.png" width="15" height="15" alt="neutral" /></p>]]></description>
			<author><![CDATA[null@example.com (Rashef)]]></author>
			<pubDate>Sat, 06 Jun 2009 07:14:52 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post265.html#p265</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post229.html#p229</link>
			<description><![CDATA[<p>Since this server is working... I prefer to be sure! ^_^<br />First of all I have to run again this:</p><div class="codebox"><pre><code>openssl req \
        -x509 -nodes -days 3650 -newkey rsa:1024 \
        -subj &quot;/C=${TLS_COUNTRY}/ST=${TLS_STATE}/L=${TLS_CITY}/O=${TLS_COMPANY}/OU=${TLS_DEPARTMENT}/CN=${TLS_HOSTNAME}/emailAddress=${TLS_ADMIN}/&quot; \
        -out ${SSL_CERT_FILE} -keyout ${SSL_KEY_FILE} &gt;/dev/null 2&gt;&amp;1</code></pre></div><p>Where (in my case):<br />${TLS_COUNTRY} = IT<br />${TLS_STATE} = Italy<br />${TLS_CITY} = My_city<br />${TLS_COMPANY} = My_company_name<br />${TLS_DEPARTMENT} = <br />${TLS_HOSTNAME} = <strong>Hostname_registered_as_MX_record</strong><br />${TLS_ADMIN} = postmaster@mydomain.it<br />${SSL_CERT_FILE} = <strong>???</strong> &lt;-- What path? Which name?<br />${SSL_KEY_FILE} = <strong>???</strong> &lt;-- What path? Which name?</p><p>For example:</p><div class="codebox"><pre><code># openssl req \
        -x509 -nodes -days 3650 -newkey rsa:1024 \
        -subj &quot;/C=IT/ST=Italy/L=My_City/O=My_Company/OU=/CN=mail.mydomain.it/emailAddress=postmaster@mydomain.it/&quot; \
        -out /right/path/to/the/cert -keyout /right/path/to/the/key

# chmod 0444 /right/path/to/the/cert
# chmod 0400 /right/path/to/the/key</code></pre></div><p>Then, since I&#039;m using MySQL instead of LDAP... what to do?</p>]]></description>
			<author><![CDATA[null@example.com (Rashef)]]></author>
			<pubDate>Wed, 03 Jun 2009 11:11:20 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post229.html#p229</guid>
		</item>
		<item>
			<title><![CDATA[Re: localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post168.html#p168</link>
			<description><![CDATA[<p>SSL cert issue: you have to create a new cert file to replace the default one. Refer to file &#039;iRedMail-x.y.z/functions/packages.sh&#039; (at the bottom of this file).</p><p>Note: Do <strong>NOT</strong> forget to set advance access control list for other users/programs, so that they have &#039;READ&#039; permission to this cert file, include ldap and apache, etc. Search in the iRedMail-x.y.z/ directory and you will get it:<br /></p><div class="codebox"><pre><code># cd /path/to/iRedMail-x.y.z/
# grep -r &#039;setfacl&#039; *</code></pre></div><p>Awstats issue: &#039;statistics for localhost.localdomain&#039; means it uses /etc/awstats/awstats.localhost.localdomain.conf file as config file. Access another site and you get it like this:<br />https://your_server/awstats/awstats.pl?config=node.domain.com</p><p>It will read /etc/awstats/awstats.node.domain.com.conf. You can rename awstats.node.domain.com.conf to awstats.localhost.localdomain.conf, this make it the default one.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 25 May 2009 10:57:32 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post168.html#p168</guid>
		</item>
		<item>
			<title><![CDATA[localhost.localdomain instead of my real host]]></title>
			<link>http://www.iredmail.org/forum/post167.html#p167</link>
			<description><![CDATA[<p>Hi all,<br />my iRedMail powered mail server is on the go! And it rocks! <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Now I have to solve a few minor issues to have it perfect!</p><p>The first one: even if I set everywhere my real hostname (e.g. node.domain.com), somewhere localhost.localdomain appears instead of node.domain.com... For example it appears into the certificate when I connect to the IMAP server through a SSL connection. It appears in the awstats page (&quot;Statistics fo localhost.localdomain&quot;)... et cetera.</p><p>Is this normal or I forgot to set something?</p><p>Thanks in advance.</p>]]></description>
			<author><![CDATA[null@example.com (Rashef)]]></author>
			<pubDate>Mon, 25 May 2009 10:09:08 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post167.html#p167</guid>
		</item>
	</channel>
</rss>
