<?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>Linux Mail Server Setup and Howto Guide &#187; CentOS 5</title>
	<atom:link href="http://www.linuxmail.info/category/centos-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 13 Feb 2010 23:39:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Setup User Password Expiration in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/user-password-expiration-setup-howto/</link>
		<comments>http://www.linuxmail.info/user-password-expiration-setup-howto/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:33:57 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=360</guid>
		<description><![CDATA[This article describes how to setup password expiration using the User Manager application.]]></description>
			<content:encoded><![CDATA[<p>Ideally, passwords should be changed regularly. This article describes how to setup password expiration using the <strong>User Manager</strong> application in Red Hat Enterprise Linux 5 or CentOS 5.</p>
<span id="more-360"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/users-and-groups.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-users-and-groups.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em> then select <em>System Settings</em> and click <em>Users and Groups</em>. This will launch the <strong>User Manager</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-2.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Select the user you wish to configure and click <em>Properties</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-user-data.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-user-data.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>User Properties</strong> windows, click the <em>Password Info</em> tab.</div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-password-info.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-password-info.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">4. Check the <em>Enable Password Expiration</em> checkbox to enable password expiration. The list below describes the available settings.
<ul class="spaced noindent">
<li><em>Days before change allowed</em><br />Number of days from the last password change to allow another password change.</li>
<li><em>Days before change required</em><br />Number of days from the last password change to require another password change.</li>
<li><em>Days warning before change</em><br />Number of days before the expiry of the password to notify the user.</li>
<li><em>Days before account inactive</em><br />Number of inactive days after the expiry of the password to deactivate the account. 0 means do not deactivate.</li>
</ul>
</div>
</div>
<div class="clear">
<img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can also do this from the command line, below are the equivalent commands.
<ul class="spaced">
<li><tt><strong>chage login_name</strong></tt><br />modifies the password expiry information of the specified login name. You need root access to use this command.</li>
<li><tt><strong>chage -l login_name</strong></tt><br />shows the password expiry information of the specified login name</li>
<li><tt><strong>chage</strong></tt><br />displays the help information</li>
</ul>
</div>
<div><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can notify the users with expiring password via email using the <a href="/files/checkpwexpire">checkpwexpire script</a>. Copy the script into the <em>/etc/cron.daily</em> and give it execute permission so it will automatically run every day.</div>
<div>&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/user-password-expiration-setup-howto/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>System Administration Howto</title>
		<link>http://www.linuxmail.info/system-administration-howto/</link>
		<comments>http://www.linuxmail.info/system-administration-howto/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 14:07:13 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=347</guid>
		<description><![CDATA[This article contains useful links on how to administer a Red Hat Enterprise Linux 5 or CentOS 5 server.]]></description>
			<content:encoded><![CDATA[<p>This article contains useful links on how to administer a Red Hat Enterprise Linux 5 or CentOS 5 server.</p>
<span id="more-347"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>System Management</h2>
<p>This section describes how to perform system management tasks.</p>
<div class="clearfix steps"><a href="/images/centos-5/user-manager.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/how-to-add-remove-user-accounts-centos-5/">How to add, edit or remove a user account</a></div>
<div class="clearfix steps"><a href="/images/centos-5/package-manager-apps.png"><img class="preview" alt="Package Manager" src="/images/centos-5/t-package-manager-apps.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/how-to-add-remove-applications-centos-5/">How to add or remove packages or applications</a></div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/how-to-start-stop-services-centos-5/">How to start, stop or restart a background service</a><br /><a href="/how-to-start-stop-services-centos-5/">How to enable or disable an on demand service</a></div>
<div class="clearfix steps"><a href="/images/centos-5/security-level-config.png"><img class="preview" alt="Security Level Configuration" src="/images/centos-5/t-security-level-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/firewall-configuration-centos-5/">How to configure the firewall</a></div>
<div class="clearfix steps"><a href="/images/centos-5/date-time-properties-2.png"><img class="preview" alt="Date and Time Properties" src="/images/centos-5/t-date-time-properties-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/synchronize-system-clock-centos-5/">How to synchronize the system clock using NTP</a></div>
<h2>System Utilities</h2>
<p>This section describes utilities you can use to manage your system.</p>
<div class="clearfix steps"><a href="/images/windows-xp/putty-terminal.png"><img class="preview" alt="PuTTY" src="/images/windows-xp/t-putty-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/ssh-howto/">How to setup SSH to remotely administer a Linux server using a command line</a></div>
<div class="clearfix steps"><a href="/images/windows-xp/tightvnc-session.png"><img class="preview" alt="TightVNC Session" src="/images/windows-xp/t-tightvnc-session.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/vnc-remote-desktop-howto/">How to use VNC to remotely administer a Linux server using a GUI</a></div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-main.png"><img class="preview" alt="Webmin Main" src="/images/centos-5/t-webmin-main.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/webmin-setup-howto/">How to setup Webmin, a web based system administration tool</a></div>
<div class="clearfix steps"><a href="/images/centos-5/service-rsync.png"><img class="preview" alt="Service rsync" src="/images/centos-5/t-service-rsync.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/rsync-howto/">How to use rsync to synchronize files between two computers</a></div>
<div class="clearfix steps"><a href="/images/vi/vi-3.gif"><img class="preview" alt="vi" src="/images/vi/t-vi-3.gif" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/vi-editor-tutorial/">How to use vi, a command line editor</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/system-administration-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poppassd Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/poppassd-setup-howto-centos-5/</link>
		<comments>http://www.linuxmail.info/poppassd-setup-howto-centos-5/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 12:23:32 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=340</guid>
		<description><![CDATA[This article describes how to setup poppassd, a password changing service, in Red Hat Enterprise Linux 5 or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p><strong>Poppassd</strong> is a service that changes system passwords. This article describes how to setup poppassd in Red Hat Enterprise Linux 5 or CentOS 5.</p>
<span id="more-340"></span>
<div class="clearfix steps"><a href="/images/centos-5/firefox-razorsedge.png"><img class="preview" alt="Firefox Razors Edge" src="/images/centos-5/t-firefox-razorsedge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Download and install the <a href="http://rpm.razorsedge.org/centos-5/RE/razorsedge-release-4-1.el5.re.noarch.rpm">Razor&#8217;s Edge Repository rpm package</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-install-poppassd.png"><img class="preview" alt="yum install poppassd" src="/images/centos-5/t-yum-install-poppassd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Install <em>poppassd</em> using the command below.
<pre class="steps">
yum install poppassd
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-poppassd.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-poppassd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Enable the <em>poppassd</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to enable services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/edit-poppassd.png"><img class="preview" alt="Edit poppassd" src="/images/centos-5/t-edit-poppassd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Edit the file <em>/etc/pam.d/poppassd</em> and replace the content with the lines below.</div>
<pre class="steps">
auth     required /lib/security/pam_unix.so
account  required /lib/security/pam_unix.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_unix.so
</pre>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />The line <tt>password required /lib/security/pam_cracklib.so</tt> requires the new password to be strong and at least six (6) characters long, you can leave it out if you do not want that restriction.</p>
<div class="clearfix steps"><a href="/images/centos-5/terminal-poppassd.png"><img class="preview" alt="terminal poppassd" src="/images/centos-5/t-terminal-poppassd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. In a <strong>Terminal</strong> window, type in the highlighted commands below.</div>
<p>Sample poppassd session. Replace <strong>johndoe</strong>, <strong>secret</strong> and <strong>p@ssw0rd</strong> with your own valid user account, old password and new password respectively.</p>
<pre class="steps">
[root@mail ~]# <span class="h">telnet localhost 106</span>
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 poppassd v1.8.5 hello, who are you?
<span class="h">user johndoe</span>
200 Your password please.
<span class="h">pass secret</span>
200 Your new password please.
<span class="h">newpass p@ssw0rd</span>
200 Password changed, thank-you.
<span class="h">quit</span>
200 Bye.
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/poppassd-setup-howto-centos-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Add the RPMforge Repository in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/add-rpmforge-centos-5/</link>
		<comments>http://www.linuxmail.info/add-rpmforge-centos-5/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 14:51:21 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=301</guid>
		<description><![CDATA[This article describes how to add the RPMforge repository in Red Hat Enterprise Linux or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p><strong>RPMforge</strong> is a third party RPM repository for Red Hat Enterprise Linux or CentOS. Adding the RPMforge repository will give you access to an extensive library of precompiled binaries. This article describes how to add the RPMforge repository in Red Hat Enterprise Linux or CentOS 5.</p>
<span id="more-301"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Adding RPMforge to Yum</h2>
<p>The rpmforge repo package can be downloaded from the site below.</p>
<div class="clearfix steps"><a href="/images/centos-5/firefox-rpmforge.png"><img class="preview" alt="Firefox RPMforge" src="/images/centos-5/t-firefox-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch Firefox and go to <a href="http://dag.wieers.com/rpm/FAQ.php#B2">http://dag.wieers.com/rpm/FAQ.php#B2</a>. Click on the package appropriate for your version of Red Hat Enterprise Linux or CentOS.</div>
<!--more-->
<div class="clearfix steps"><a href="/images/centos-5/firefox-rpmforge-install.png"><img class="preview" alt="Firefox RPMForge Install" src="/images/centos-5/t-firefox-rpmforge-install.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Choose <em>Open with Software Installer (default)</em> and click <em>Ok</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/installing-rpmforge.png"><img class="preview" alt="Installing RPMForge" src="/images/centos-5/t-installing-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. The <strong>Installing packages</strong> window will appear. Click <em>Apply</em> to proceed.</div>
<div class="clearfix steps"><a href="/images/centos-5/install-rpmforge-success.png"><img class="preview" alt="Installing RPMForge" src="/images/centos-5/t-install-rpmforge-success.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Finally click <em>Ok</em>.</div>
<h2>Lowering the RPMforge priority</h2>
<p>Lowering the priority of the RPMforge repository will ensure that the base packages provided by RHEL/CentOS will not be replaced by a newer version from RPMforge.</p>
<div class="clearfix steps"><a href="/images/centos-5/yum-install-priorities.png"><img class="preview" alt="Install priorities" src="/images/centos-5/t-yum-install-priorities.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Install the Yum priorities package using the command below.
<pre class="steps">
yum install yum-priorities
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-rpmforge-repo.png"><img class="preview" alt="Edit rpmforge.repo" src="/images/centos-5/t-edit-rpmforge-repo.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/yum.repos.d/rpmforge.repo</em> and add the line below.
<pre class="steps">
priority=10
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-check-update.png"><img class="preview" alt="Yum check update" src="/images/centos-5/t-yum-check-update.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Test your configuration using the command below. You should see a <em>priority protections</em> message in the output.
<pre class="steps">
yum check-update
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/add-rpmforge-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDAP Authentication in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/ldap-authentication-centos-5/</link>
		<comments>http://www.linuxmail.info/ldap-authentication-centos-5/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 03:26:09 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=251</guid>
		<description><![CDATA[This articles describes how to use LDAP authentication in Red Hat Enterprise Linux 5 or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p>An LDAP server like the 389 Directory Server and OpenLDAP can be used to centralize the users and authentication information. This articles describes how to use LDAP based authentication in Red Hat Enterprise Linux 5 or CentOS 5.</p>
<span id="more-251"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>The attributes below are required to be filled up to be able to use LDAP authentication.</p>
<ul>
<li><em>uid</em> &#8211; User name</li>
<li><em>userPassword</em> &#8211; User password</li>
<li><em>uidNumber</em> &#8211; UID</li>
<li><em>gidNumber</em> &#8211; GID</li>
<li><em>homeDirectory</em> &#8211; Home directory</li>
<li><em>loginShell</em> &#8211; Login shell</li>
</ul>
<div class="clearfix steps"><a href="/images/centos-5/fds-posix-user.png"><img class="preview" alt="Posix User" src="/images/centos-5/t-fds-posix-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>If you are using <strong>Fedora Directory Server</strong>, it has a great GUI tool for managing the required Posix attributes.</div>
<h2>Setup Authentication</h2>
<div class="clearfix steps"><a href="/images/centos-5/authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>System</em>, select <em>Administration</em> and click <em>Authentication</em>. This will launch the <strong>Authentication Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-user-information.png"><img class="preview" alt="Authentication Configuration" src="/images/centos-5/t-auth-config-user-information.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Check <em>Enable LDAP Support</em> and click the <em>Configure LDAP</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-ldap-settings.png"><img class="preview" alt="LDAP Settings" src="/images/centos-5/t-auth-config-ldap-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Fill in the <em>LDAP Search Base DN</em> and <em>LDAP Server</em> fields. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>Authentications</em> tab and check <em>Enable LDAP Support</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-options.png"><img class="preview" alt="LDAP Settings" src="/images/centos-5/t-auth-config-options.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Click the <em>Options</em> tab and check <em>Local authorization is sufficient for local users</em> and <em>Create home directories on the first login</em>. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-getent-passwd.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-terminal-getent-passwd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Type in <tt>getent passwd</tt> in a terminal window. You should see your LDAP user accounts.</div>
<p>Finally, reboot your computer. You should now be able to login using LDAP user accounts.</p>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If your LDAP server requires authentication or its attributes does not conform to the RFC 2307 specification, you need to edit the file <em>/etc/ldap.conf</em> to make this work. See <a href="/active-directory-single-sign-on/">Active Directory Authentication</a> for an example.</p>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />The version of <em>sudo</em> that comes with RHEL/CentOS 5 does not work with non local user accounts. While this is not yet fixed, use the <a href="http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/sudo">sudo rpm package for Fedora 8</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/ldap-authentication-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Handling Multiple Domains with Postfix Admin in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/multiple-domains-postfix-admin-centos-5/</link>
		<comments>http://www.linuxmail.info/multiple-domains-postfix-admin-centos-5/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 16:42:05 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=240</guid>
		<description><![CDATA[This article will show you how to configure Postfix and Dovecot to handle multiple domains stored in MySQL and managed by Postfix Admin.]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to configure Postfix and Dovecot to handle multiple domains stored in MySQL. Postfix Admin is used to manage the domains, mailboxes and aliases in MySQL. See <a href="/postfix-admin-howto-centos-5/">How to Install Postfix Admin</a> to setup the MySQL database that will be used by Postfix and Dovecot.</p>
<span id="more-240"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Creating the Virtual Mail User Account</h2>
<p>Since the user names will be stored in MySQL, we will have to create a user that will be the owner for all the files belonging to the MySQL user names. </p>
<div class="clearfix steps"><a href="/images/centos-5/create-user-vmail.png"><img class="preview" alt="Create user vmail" src="/images/centos-5/t-create-user-vmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Create a new user, we will call it <em>vmail.</em> Change the <em>Login Shell</em> to <em>/sbin/nologin</em>, this user account should not be used for logging in. <a href="/how-to-add-remove-user-accounts-centos-5/">Learn how to use the User Manager application here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-vmail.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-vmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Take note of the <em>User ID</em> and <em>Home Directory</em> of vmail.</div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-vmail-groups.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-vmail-groups.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click the <em>Groups</em> tab and now note down the <em>Group ID</em>  of vmail. We&#8217;ll be needing all of them later.</div>
<h2>Configuring Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-5/terminal-postconf-m.png"><img class="preview" alt="postconf" src="/images/centos-5/t-terminal-postconf-m.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/postfix-mysql-centos-5/">Install a version of Postfix with MySQL support.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/edit-mysql-domains-cf.png"><img class="preview" alt="Edit mysql-domains.cf" src="/images/centos-5/t-edit-mysql-domains-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Create the file <em>/etc/postfix/mysql-domains.cf</em> containing the lines below.
<pre class="steps scroll">
host = localhost
user = postfix
password = <em>your_password</em>
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '0' and active = '1'
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-mysql-domains-cf.png"><img class="preview" alt="postmap mysql-domains.cf" src="/images/centos-5/t-postmap-mysql-domains-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Test <em>/etc/postfix/mysql-domains.cf</em> using the command below.</div>
<pre class="steps">
postmap -q acme.com mysql:/etc/postfix/mysql-domains.cf
</pre>
<p>Replace <em>acme.com</em> with your own domain name. It should echo your domain.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-mysql-users-cf.png"><img class="preview" alt="Edit config.inc.php" src="/images/centos-5/t-edit-mysql-users-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">4. Create the file <em>/etc/postfix/mysql-users.cf</em> containing the lines below.
<pre class="steps">
host = localhost
user = postfix
password = <em>your_password</em>
dbname = postfix
table = mailbox
select_field = maildir
where_field = username
additional_conditions = and active = '1'
result_format = %sMaildir/
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-mysql-users-cf.png"><img class="preview" alt="postmap mysql-users.cf" src="/images/centos-5/t-postmap-mysql-users-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Test <em>/etc/postfix/mysql-users.cf</em> using the command below.</div>
<pre class="steps">
postmap -q johndoe@acme.com mysql:/etc/postfix/mysql-users.cf
</pre>
<p>Replace <em>johndoe@acme.com</em> with your own email address. You should see the mailbox path.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-mysql-aliases-cf.png"><img class="preview" alt="Edit mysql-aliases.cf" src="/images/centos-5/t-edit-mysql-aliases-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">6. Create the file <em>/etc/postfix/mysql-aliases.cf</em> containing the lines below.
<pre class="steps">
host = localhost
user = postfix
password = <em>your_password</em>
dbname = postfix
table = alias
select_field = goto
where_field = address
additional_conditions = and active = '1'
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-mysql-aliases-cf.png"><img class="preview" alt="postmap mysql-aliases.cf" src="/images/centos-5/t-postmap-mysql-aliases-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Test <em>/etc/postfix/mysql-aliases.cf</em> using the command below.</div>
<pre class="steps">
postmap -q john@acme.com mysql:/etc/postfix/mysql-aliases.cf
</pre>
<p>Replace <em>john@acme.com</em> with your own alias address. You should see the destination email.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-virtual-4.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-virtual-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>8. Edit the postfix configuration file <em>/etc/postfix/main.cf</em> and edit the line below.</div>
<pre class="steps">
mydestination = $myhostname, localhost.$mydomain, localhost
</pre>
<p>and add the lines below</p>
<pre class="steps">
virtual_mailbox_domains = mysql:/etc/postfix/mysql-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-users.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:501
virtual_gid_maps = static:501
</pre>
<p><em>virtual_mailbox_base</em>, <em>virtual_uid_maps</em> and <em>virtual_gid_maps</em> should contain the home directory, user id and group id of vmail respectively.</p>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Make sure <em>$mydomain</em> in <em>mydestination</em> has been removed, otherwise the lookup will not work and you will get a &#8220;User unknown in local recipient table&#8221; error.</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>9. Restart the Postfix or MailScanner service if you have installed it. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>10. You should now be able to send email to addresses found in MySQL. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a> and try using MySQL email addresses instead of the system user names.</div>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="8337256735";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Configuring Dovecot</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-dovecot-mysql-conf.png"><img class="preview" alt="Edit dovecot-mysql.conf" src="/images/centos-5/t-edit-dovecot-mysql-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Create the file <em>/etc/dovecot-mysql.conf</em> containing the lines below.</div>
<pre class="steps">
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=<em>password</em>
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'
</pre>
<div class="clearfix steps"><a href="/images/centos-5/edit-dovecot-conf-virtual-2.png"><img class="preview" alt="Edit dovecot.conf" src="/images/centos-5/t-edit-dovecot-conf-virtual-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/dovecot.conf</em> and change the value of the following keys below.</div>
<pre class="steps">
auth_username_format = %Lu

passdb sql {
  args = /etc/dovecot-mysql.conf
}

userdb static {
  args = uid=501 gid=501 home=/home/vmail/%d/%n
}
</pre>
<p><em>uid</em>, <em>gid</em> and <em>home</em> should contain the user id, group id and home directory respectively of the vmail user account.</p>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Comment out all the other <em>passdb</em> and <em>userdb</em> sections except for those specified above to ensure that nothing will conflict with our MySQL virtual accounts.</p>
<div class="clearfix steps"><a href="/images/centos-5/service-config-3.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Restart the dovecot service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. You should now be able to login using the user names found in MySQL. See <a href="/install-setup-dovecot-centos-5/#test-dovecot">Test Dovecot using Telnet</a> and try using MySQL user names instead of the system user names.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you encounter any problems, check the log file at <em>/var/log/maillog.</em></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/multiple-domains-postfix-admin-centos-5/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>How to Install Postfix Admin in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/postfix-admin-howto-centos-5/</link>
		<comments>http://www.linuxmail.info/postfix-admin-howto-centos-5/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 16:38:42 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=238</guid>
		<description><![CDATA[This article will show you how to install Postfix Admin to simplify management of mailboxes, domains and aliases.]]></description>
			<content:encoded><![CDATA[<p><strong>Postfix Admin</strong> is a web based interface used to manage mailboxes, virtual domains and aliases. This article will show you how to install Postfix Admin to simplify management of mailboxes, domains and aliases.</p>
<span id="more-238"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Installing Postfix Admin</h2>
<div class="clearfix steps"><a href="/images/centos-5/terminal-yum-install-mysql.png"><img class="preview" alt="yum install" src="/images/centos-5/t-terminal-yum-install-mysql.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Install the Postfix Admin requirements using the command below.
<pre class="steps">
yum install mysql-server php-mysql php-imap
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/tar-postfixadmin.png"><img class="preview" alt="tar postfixadmin" src="/images/centos-5/t-tar-postfixadmin.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Download the latest stable version of Postfix Admin in .tar.gz format <a href="http://sourceforge.net/project/showfiles.php?group_id=191583&#038;package_id=225300">here</a>. Assuming you got the file <em>postfixadmin-2.2.1.1.tar.gz</em> and it is located on your Desktop, type in the commands below to extract and to put it into its proper directory.
<pre class="steps">
cd /usr/share
tar -xvzf ~/Desktop/postfixadmin-2.2.1.1.tar.gz
mv postfixadmin-2.2.1.1 postfixadmin
</pre>
</div>
</div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />The PostfixAdmin archive has to be extracted directly into the /usr/share directory to enable Linux to apply the proper SELinux Context into the files.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-postfixadmin-config.png"><img class="preview" alt="Edit postfixadmin.conf" src="/images/centos-5/t-edit-postfixadmin-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Edit the file <em>/usr/share/postfixadmin/config.inc.php</em> and update the following lines below.
<pre class="steps">
$CONF['configured'] = true;
$CONF['postfix_admin_url'] = '/postfixadmin';
$CONF['database_type'] = 'mysqli';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = '<em>your_password</em>';
$CONF['database_name'] = 'postfix';
$CONF['domain_path'] = 'YES';
$CONF['domain_in_mailbox'] = 'NO';
$CONF['encrypt'] = 'cleartext';
$CONF['emailcheck_resolve_domain] = 'NO';
</pre>
</div>
</div>
<h2>Creating the Postfix Admin Database</h2>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Start the <em>mysqld</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/create-postfixadmin-db.png"><img class="preview" alt="Create Postfix Admin db" src="/images/centos-5/t-create-postfixadmin-db.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Launch the MySQL command line tool using the command below.
<pre class="steps">
mysql -u root -p
</pre>
The default root password of MySQL is a blank password. Next, create a new MySQL database for Postfix Admin using the commands below.
<pre class="steps">
mysql> CREATE DATABASE postfix;
mysql> CREATE USER postfix@localhost IDENTIFIED BY 'your_password';
mysql> GRANT ALL PRIVILEGES ON postfix.* TO postfix;
</pre>
</div>
<h2>Configuring the Postfix Admin Web Application</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-postfixadmin-conf.png"><img class="preview" alt="Edit postfixadmin.conf" src="/images/centos-5/t-edit-postfixadmin-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Create the file <em>/etc/httpd/conf.d/postfixadmin.conf</em> containing the line below.
<pre class="steps">
Alias /postfixadmin /usr/share/postfixadmin
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Start or restart the <em>httpd</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/postfixadmin-setup-php.png"><img class="preview" alt="Postfix Admin Setup" src="/images/centos-5/t-postfixadmin-setup-php.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Go to the Postfix Admin setup page at <a href="http://localhost/postfixadmin/setup.php">http://localhost/postfixadmin/setup.php</a> and fill in the setup password. Next, click the <em>Generate password hash</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/postfixadmin-setup-php-2.png"><img class="preview" alt="Postfix Admin Setup" src="/images/centos-5/t-postfixadmin-setup-php-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Get the generated setup password hash and put it into the file <em>/usr/share/postfixadmin/config.inc.php</em>. Next, fill in the <em>Setup password</em>,  <em>Admin</em> and <em>Password</em> and <em>Password (again)</em>. Finally, click <em>Add Admin</em> to create a new admin account.</div>
<div class="clearfix steps"><a href="/images/centos-5/postfixadmin-admin-login.png"><img class="preview" alt="Postfix Admin Login" src="/images/centos-5/t-postfixadmin-admin-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Go to the Postfix Admin login page at <a href="http://localhost/postfixadmin/">http://localhost/postfixadmin/</a> and login using your newly created admin account.</div>
<div class="clearfix steps"><a href="/images/centos-5/postfixadmin-main.png"><img class="preview" alt="Postfix Admin Main" src="/images/centos-5/t-postfixadmin-main.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Congratulations, it works.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you encounter any problems, check the log file at <em>/var/log/httpd/error_log.</em></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-admin-howto-centos-5/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Postfix with MySQL in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/postfix-mysql-centos-5/</link>
		<comments>http://www.linuxmail.info/postfix-mysql-centos-5/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 22:54:56 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=193</guid>
		<description><![CDATA[This article describes how to install Postfix with MySQL lookup table support from the CentOS Plus repository.]]></description>
			<content:encoded><![CDATA[<p>The version of Postfix that comes with Red Hat Enterprise Linux 5 or CentOS 5 does not support MySQL lookups. You can <a href="http://postfix.wl0.org/en/building-rpms/">build your own custom Postfix RPM </a> or get a prebuilt RPM from the CentOS Plus repository. You can use the CentOS repository in RHEL since CentOS is binary compatible with RHEL. This article describes how to install Postfix with MySQL lookup table support from the CentOS Plus repository.</p>
<span id="more-193"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/edit-centos-base-repo.png"><img class="preview" alt="Edit CentOS-Base.repo" src="/images/centos-5/t-edit-centos-base-repo.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/yum.repos.d/CentOS-Base.repo</em> or its equivalent in RHEL and edit the lines below.
<div class="m">
<pre class="steps">
[base]
exclude=postfix

[update]
exclude=postfix

[centosplus]
enabled=1
includepkgs=postfix
</pre>
</div>
If you are using RHEL, add the lines below under the <em>centosplus</em> section.
<pre class="steps scroll">
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&#038;arch=$basearch&#038;repo=centosplus
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-remove-postfix.png"><img class="preview" alt="yum remove postfix" src="/images/centos-5/t-yum-remove-postfix.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Type <tt>yum remove postfix</tt> in a terminal window to remove the standard version of Postfix.</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-install-postfix.png"><img class="preview" alt="yum install postfix" src="/images/centos-5/t-yum-install-postfix.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type <tt>yum install postfix</tt> to install the version of Postfix found in the CentOS Plus repository.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-postconf-m.png"><img class="preview" alt="postconf -m" src="/images/centos-5/t-terminal-postconf-m.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. To verify MySQL support, type <tt>postconf -m</tt> and check if <em>mysql</em> is found in the output.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-mysql-centos-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Active Directory Single Sign On</title>
		<link>http://www.linuxmail.info/active-directory-single-sign-on/</link>
		<comments>http://www.linuxmail.info/active-directory-single-sign-on/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 08:48:37 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=160</guid>
		<description><![CDATA[This article describes how to achieve single sign on with Active Directory using LDAP for the user database and Kerberos for authentication.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to achieve single sign on with Active Directory using <strong>Identity Management for Unix</strong> (available in Windows 2003 R2 and above) or <strong>Services for Unix 3.5</strong>.</p>
<span id="more-160"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>Before starting, you need to <a href="/identity-management-unix/">setup Identity Management for UNIX</a>. If you are using Windows Server prior to 2003 R2, you can use Services for Unix 3.5 which can be downloaded from <a href="http://www.microsoft.com/windows/sfu/">here</a>.</p>
<h2>Setup and Configure LDAP User Information</h2>
<p>It is recommended to an Active Directory enabled DNS server, this will ensure that the LDAP lookups and Kerberos authentication will work properly. Also, provide a user account dedicated for the LDAP authentication.</p>
<div class="clearfix steps"><a href="/images/centos-5/authentication.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>System</em>, select <em>Administration</em> and click <em>Authentication</em>. This will launch the <strong>Authentication Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-user-information.png"><img class="preview" alt="Authentication Configuration" src="/images/centos-5/t-auth-config-user-information.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Check <em>Enable LDAP Support</em> and click the <em>Configure LDAP</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-ldap-settings.png"><img class="preview" alt="LDAP Settings" src="/images/centos-5/t-auth-config-ldap-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Fill in the <em>LDAP Search Base DN</em> and <em>LDAP Server</em> fields. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/auth-config-options.png"><img class="preview" alt="LDAP Settings" src="/images/centos-5/t-auth-config-options.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>Options</em> tab and check <em>Local authorization is sufficient for local users</em> and <em>Create home directories on the first login</em>. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-ldap-conf.png"><img class="preview" alt="Edit ldap.conf" src="/images/centos-5/t-edit-ldap-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Edit the file <em>/etc/ldap.conf</em> and add the following lines below.
<pre class="steps">
binddn <em>user account</em>
bindpw <em>password for binddn</em>
nss_map_objectclass posixAccount User
nss_map_objectclass posixGroup Group
nss_map_attribute homeDirectory unixHomeDirectory
</pre>
</div>
<div class="clearfix steps">If you are using Services for Unix 3.5, remove the homeDirectory mapping above and add the lines below.
<pre class="steps">
nss_map_attribute uid msSFU30Name
nss_map_attribute uidNumber msSFU30UidNumber
nss_map_attribute gidNumber msSFU30GidNumber
nss_map_attribute homeDirectory msSFU30HomeDirectory
nss_map_attribute loginShell msSFU30LoginShell
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you are not using an Active Directory enabled DNS server, you need to add the line <tt>referrals no</tt> to make this work.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-getent-passwd.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-terminal-getent-passwd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Type in <tt>getent passwd</tt> in a terminal window. You should see your Active Directory user accounts.</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-getent-group.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-terminal-getent-group.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Type in <tt>getent group</tt> in a terminal window. You should see your Active Directory groups.</div>
<h2>Setup and Configure Kerberos Authentication</h2>
<p>The Kerberos network authentication protocol requires the clocks of the involved machines to be synchronized or at least the difference is less than 5 minutes.</p>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="8337256735";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/auth-config-a.png"><img class="preview" alt="Authentication" src="/images/centos-5/t-auth-config-a.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch the <strong>Authentication Configuration</strong> window. Click the <em>Authentication</em> tab and check the <em>Enable Kerberos Support</em>. Next, click the <em>Configure Kerberos</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/kerberos-settings.png"><img class="preview" alt="Kerberos Settings" src="/images/centos-5/t-kerberos-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Kerberos Settings</strong> window, fill in the <em>Realm</em>, clear out <em>KDC</em> and <em>Admin Servers</em> and check the <em>Use DNS to locate KDCs for realms</em>. Realm is usually your domain name capitalized, <em>capitalization is important.</em> KDC is your Active Directory server. Click <em>Ok</em> when you&#8217;re done.</div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To make sure that your KDC can be automatically located, type in the command <tt>host -t any _kerberos._tcp.acme.local</tt> in a terminal window. Replace <em>acme.local</em> with your own realm. If it replies &#8220;_kerberos._tcp.acme.local has SRV record &#8230;&#8221; then it works. This should work if you are using an Active Directory enabled DNS server. Otherwise, you need to manually fill in the KDC field above. You can specify more than one KDC by separating each server with a comma or space.</p>
<div class="clearfix steps"><a href="/images/centos-5/terminal-kinit.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-kinit.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Test Kerberos by typing in <tt>kinit username</tt> in a terminal window. If you need help in making sense of the kinit error messages, check out <a href="/troubleshooting-active-directory-centos-5/#test-kerberos">Test the Kerberos Authentication</a>.</div>
<p>That&#8217;s it, you should now be able to login using Active Directory user accounts.</p>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />The version of <em>sudo</em> that comes with RHEL/CentOS 5 does not work with non local user accounts. While this is not yet fixed, use the <a href="http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/sudo">sudo rpm package for Fedora 8</a>.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-single-sign-on/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>389 Directory Server Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/389-directory-server-setup-howto-centos-5/</link>
		<comments>http://www.linuxmail.info/389-directory-server-setup-howto-centos-5/#comments</comments>
		<pubDate>Sun, 25 May 2008 08:29:30 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[389 Directory Server]]></category>
		<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/fedora-directory-server-setup-howto-centos-5/</guid>
		<description><![CDATA[How to setup the 389 Directory Server in Red Hat Enterprise Linux 5 or CentOS 5]]></description>
			<content:encoded><![CDATA[<p><strong>389 Directory Server</strong> formerly the <strong>Fedora Directory Server</strong> is an enterprise-class open source LDAP server for Linux. This article will show you how to setup the 389 Directory Server.</p>
<span id="more-78"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />Make sure that your host name is properly registered in your DNS or /etc/hosts file. Check if your hostname is registered properly by executing
<pre class="steps">
ping mail.acme.local
</pre>
in a terminal window, replace mail.acme.local with your own host name. If it returns 127.0.0.1 or unknown host that means it is not registered properly. </div>
<h2>Installing 389 Directory Server</h2>
<div class="clearfix steps"><a href="/images/centos-5/yum-update.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-yum-update.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Type in the command below to update your Red Hat Enterprise Linux 5 or CentOS 5 to version 5.3 or higher.
<pre class="steps">
yum update
</pre>
Version 5.3 and above is required to run the 389 Directory Server.
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-yum-fds.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-yum-fds.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Install 389 Directory Server by typing in the commands below in a terminal window. This is the content of <a href="/files/fedora-ds.repo">fedora-ds.repo</a>.
<pre class="steps">
cd /etc/yum.repos.d
wget www.linuxmail.info/files/fedora-ds.repo
yum install fedora-ds openldap-clients
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/create-user-fds.png"><img class="preview" alt="Create New User" src="/images/centos-5/t-create-user-fds.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Create a new user and group named <em>fds</em>. This account will be used to run the fds service. <a href="/how-to-add-remove-user-accounts-centos-5/">Learn how to create a new user.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-setup-ds-admin.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-setup-ds-admin.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Type in <tt>setup-ds-admin.pl</tt> in a terminal window to setup 389 Directory Server. Most of the time, the default is simply accepted indicated by the <strong>&crarr;</strong> in the sample session below.</div>
<pre class="steps">
[root@mail ~]# <span class="h">setup-ds-admin.pl</span>

==============================================================================
This program will set up the 389 Directory and Administration Servers.

It is recommended that you have "root" privilege to set up the software.
Tips for using this program:
  - Press "Enter" to choose the default and go to the next screen
  - Type "Control-B" then "Enter" to go back to the previous screen
  - Type "Control-C" to cancel the setup program

Would you like to continue with set up? [yes]: <span class="h">&crarr;</span>

==============================================================================
BY SETTING UP AND USING THIS SOFTWARE YOU ARE CONSENTING TO BE BOUND BY
AND ARE BECOMING A PARTY TO THE AGREEMENT FOUND IN THE
LICENSE.TXT FILE. IF YOU DO NOT AGREE TO ALL OF THE TERMS
OF THIS AGREEMENT, PLEASE DO NOT SET UP OR USE THIS SOFTWARE.

Do you agree to the license terms? [no]: <span class="h">yes</span>

==============================================================================
Your system has been scanned for potential problems, missing patches,
etc.  The following output is a report of the items found that need to
be addressed before running this software in a production
environment.

389 Directory Server system tuning analysis version 10-AUGUST-2007.



NOTICE : System is i686-unknown-linux2.6.18-53.el5 (1 processor).

WARNING: 376MB of physical memory is available on the system. 1024MB is recommended for best performance on large production system.

NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds
(120 minutes).  This may cause temporary server congestion from lost
client connections.

WARNING: There are only 1024 file descriptors (hard limit) available, which
limit the number of simultaneous connections.  

WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.  

Would you like to continue? [no]: <span class="h">yes</span>

==============================================================================
Choose a setup type:

   1. Express
       Allows you to quickly set up the servers using the most
       common options and pre-defined defaults. Useful for quick
       evaluation of the products.

   2. Typical
       Allows you to specify common defaults and options.

   3. Custom
       Allows you to specify more advanced options. This is 
       recommended for experienced server administrators only.

To accept the default shown in brackets, press the Enter key.

Choose a setup type [2]: <span class="h">&crarr;</span>

==============================================================================
Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
&lt;hostname&gt;.&lt;domainname&gt;
Example: eros.example.com.

To accept the default shown in brackets, press the Enter key.

Computer name [mail.acme.local]: <span class="h">&crarr;</span>

==============================================================================
The servers must run as a specific user in a specific group.
It is strongly recommended that this user should have no privileges
on the computer (i.e. a non-root user).  The setup procedure
will give this user/group some permissions in specific paths/files
to perform server-specific operations.

If you have not yet created a user and group for the servers,
create this user and group using your native operating
system utilities.

System User [nobody]: <span class="h">fds</span>
System Group [nobody]: <span class="h">fds</span>

==============================================================================
Server information is stored in the configuration directory server.
This information is used by the console and administration server to
configure and manage your servers.  If you have already set up a
configuration directory server, you should register any servers you
set up or create with the configuration server.  To do so, the
following information about the configuration server is required: the
fully qualified host name of the form
&lt;hostname&gt;.&lt;domainname&gt;(e.g. hostname.example.com), the port number
(default 389), the suffix, the DN and password of a user having
permission to write the configuration information, usually the
configuration directory administrator, and if you are using security
(TLS/SSL).  If you are using TLS/SSL, specify the TLS/SSL (LDAPS) port
number (default 636) instead of the regular LDAP port number, and
provide the CA certificate (in PEM/ASCII format).

If you do not yet have a configuration directory server, enter 'No' to
be prompted to set up one.

Do you want to register this software with an existing
configuration directory server? [no]: <span class="h">&crarr;</span>

==============================================================================
Please enter the administrator ID for the configuration directory
server.  This is the ID typically used to log in to the console.  You
will also be prompted for the password.

Configuration directory server
administrator ID [admin]: <span class="h">&crarr;</span>
Password: 
Password (confirm): 

==============================================================================
The information stored in the configuration directory server can be
separated into different Administration Domains.  If you are managing
multiple software releases at the same time, or managing information
about multiple domains, you may use the Administration Domain to keep
them separate.

If you are not using administrative domains, press Enter to select the
default.  Otherwise, enter some descriptive, unique name for the
administration domain, such as the name of the organization
responsible for managing the domain.

Administration Domain [acme.local]: <span class="h">&crarr;</span>

==============================================================================
The standard directory server network port number is 389.  However, if
you are not logged as the superuser, or port 389 is in use, the
default value will be a random unused port number greater than 1024.
If you want to use port 389, make sure that you are logged in as the
superuser, that port 389 is not in use.

Directory server network port [389]: <span class="h">&crarr;</span>

==============================================================================
Each instance of a directory server requires a unique identifier.
This identifier is used to name the various
instance specific files and directories in the file system,
as well as for other uses as a server instance identifier.

Directory server identifier [mail]: <span class="h">&crarr;</span>

==============================================================================
The suffix is the root of your directory tree.  The suffix must be a valid DN.
It is recommended that you use the dc=domaincomponent suffix convention.
For example, if your domain is example.com,
you should use dc=example,dc=com for your suffix.
Setup will create this initial suffix for you,
but you may have more than one suffix.
Use the directory server utilities to create additional suffixes.

Suffix [dc=acme, dc=local]: <span class="h">&crarr;</span>

==============================================================================
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and typically has a
bind Distinguished Name (DN) of cn=Directory Manager.
You will also be prompted for the password for this user.  The password must
be at least 8 characters long, and contain no spaces.

Directory Manager DN [cn=Directory Manager]: <span class="h">&crarr;</span>
Password: 
Password (confirm): 

==============================================================================
The Administration Server is separate from any of your web or application
servers since it listens to a different port and access to it is
restricted.

Pick a port number between 1024 and 65535 to run your Administration
Server on. You should NOT use a port number which you plan to
run a web or application server on, rather, select a number which you
will remember and which will not be used for anything else.

Administration port [9830]: <span class="h">&crarr;</span>

==============================================================================
The interactive phase is complete.  The script will now set up your
servers.  Enter No or go Back if you want to change something.

Are you ready to set up your servers? [yes]: <span class="h">&crarr;</span>
Creating directory server . . .
Your new DS instance 'mail' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setupcT78dr.log'

[root@mail ~]# 
</pre>
<div id="setup-ssl" class="clearfix steps"><a href="/images/centos-5/terminal-setup-fds-ssl.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-setup-fds-ssl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Setup the 389 Directory Server SSL by executing the commands below in a terminal window</div>
<div class="clearfix steps">
<pre class="steps scroll">
wget http://github.com/richm/scripts/tree/master%2Fsetupssl2.sh?raw=true -O setupssl2.sh
chmod +x setupssl2.sh
./setupssl2.sh /etc/dirsrv/slapd-<strong>mail</strong>
</pre>
Replace <strong>mail</strong> with your own server instance. During setup, you will be asked for the password of directory manager.
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Restart the <em>dirsrv</em>, <em>dirsrv-admin</em> and <em>httpd</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to stop and start services here.</a></div>
<h2 id="fds-admin">Administering 389 Directory Server</h2>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console-login.png"><img class="preview" alt="FDS Console Login" src="/images/centos-5/t-389-ds-console-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. From a terminal window, type in <tt>389-console</tt>. This will launch the <strong>389 Management Console Login</strong> window.
<div>&nbsp;</div>
<div class="m">
    <div class="fw">User ID</div><div><em>cn=directory manager</em></div>
    <div class="fw">Password</div><div><em>the directory manager password</em></div>
    <div class="fw">Administration URL</div><div><em>localhost:9830</em></div>
    <div>&nbsp;</div>
The values above assumes you have used the default values.
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/389-ds-console.png"><img class="preview" alt="389 Management Console " src="/images/centos-5/t-389-ds-console.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Success. <a href="/389-management-console-howto/">Learn more about using the 389 Management Console</a>.</div>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/jxplorer-ad.png"><img class="preview" alt="JXplorer Active Directory" src="/images/centos-5/t-jxplorer-ad.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-dovecot-ldap-centos-5/">Active Directory/LDAP virtual users in Postfix and Dovecot</a></div>
<div class="clearfix steps"><a href="/images/centos-5/fds-ds-config-5.png"><img class="preview" alt="Fedora Management Console" src="/images/centos-5/t-fds-ds-config-5.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/ad-fds-sync-howto/">Active Directory and Fedora Directory Server Sychronization Howto</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/389-directory-server-setup-howto-centos-5/feed/</wfw:commentRss>
		<slash:comments>68</slash:comments>
		</item>
	</channel>
</rss>
