<?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; Red Hat Enterprise Linux 4</title>
	<atom:link href="http://www.linuxmail.info/category/rhel-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 26 Jun 2010 16:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Active Directory Integration with Samba in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/active-directory-integration-samba-centos-4/</link>
		<comments>http://www.linuxmail.info/active-directory-integration-samba-centos-4/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 15:31:41 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://linux-mail.info/active-directory-integration-samba-centos-4/</guid>
		<description><![CDATA[How to join the Active Directory domain in Red Hat Enterprise Linux 4 or CentOS 4 using Samba Winbind]]></description>
			<content:encoded><![CDATA[<p>This page will show you how to join your Linux server into the Active Directory domain, how to integrate the Active Directory user accounts into the Linux user accounts and how to authenticate users in Active Directory using Winbind, a component of Samba.</p>
<span id="more-21"></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="Note" src="/images/emblem-note.png" />Samba is installed by default when you select the Server installation type during the installation process. In case you need to install or reinstall it, just select the <em>Windows File Server</em> package in the <a href="/how-to-add-remove-applications-centos-4/">Package Management tool</a>.</div>
<h2>Setup and Configure Winbind</h2>
<div class="clearfix steps"><a href="/images/centos-4/authentication.png"><img class="preview" alt="Authentication" src="/images/centos-4/t-authentication.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Settings</em> and click <em>Authentication</em>. This will launch the <strong>Authentication Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/auth-config.png"><img class="preview" alt="Authentication" src="/images/centos-4/t-auth-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Check the <em>Enable Winbind Support</em> and click <em>Configure Winbind</em>. This will launch the <strong>Winbind Settings</strong> window.</div>
<div id="winbind-settings" class="clearfix steps"><a href="/images/centos-4/winbind-settings.png"><img class="preview" alt="Winbind Settings" src="/images/centos-4/t-winbind-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. In the <strong>Winbind Settings</strong> window, set the <em>Security Model</em> to <em>ads</em> and fill in the <em>Winbind Domain</em>, <em>Winbind ADS Realm</em> and <em>Winbind Domain Controllers</em>. See sample settings below.</div>
<div>&nbsp;</div>
<div class="m">
    <div class="fw">Winbind Domain</div><div>acme</div>
    <div class="fw">Winbind ADS Realm</div><div>acme.local</div>
    <div class="fw">Domain Controllers</div><div>server1.acme.local,server2.acme.local</div>
</div>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />To ensure the success of the Active Directory integration, make sure that you can ping the domain controllers and that the difference between the domain controllers&#8217; clock and the mail server&#8217;s clock is not more than five minutes.</div>
<div class="clearfix steps"><a href="/images/centos-4/join-winbind.png"><img class="preview" alt="Join Winbind Domain" src="/images/centos-4/t-join-winbind.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click <em>Join Winbind Domain</em>. You will be asked to save your changes, click <em>Save</em>. In the <strong>Joining Winbind Domain</strong> window, fill in the <em>Domain Administrator</em> and <em>Password</em>. Click <em>Ok</em> when you are done. Click <em>Ok</em> again to close the <strong>Winbind Settings</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/auth-config2.png"><img class="preview" alt="Authentication Configuration" src="/images/centos-4/t-auth-config2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Click the <em>Authentication</em> tab and check the <em>Enable Winbind Support</em> and <em>Local authorization is sufficient for local users</em>. Click <em>Ok</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-4/smb-conf.png"><img class="preview" alt="Edit smb.conf" src="/images/centos-4/t-smb-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Open the file <em>/etc/samba/smb.conf</em> for editing and change <em>winbind use default domain</em> to <em>yes</em>.<div class="m"><pre class="steps">winbind use default domain = yes</pre></div></div>
<div class="clearfix steps"><a href="/images/centos-4/smb-home-dir.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-smb-home-dir.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Create the folder that will contain the home directory of the Active Directory users. From the terminal window, type in the commands below.<div class="m"><pre class="steps">mkdir /home/DOMAIN
chmod 777 /home/DOMAIN</pre></div><div class="m">Replace <em>DOMAIN</em> with your domain. Make sure to capitalize your domain like <em>ACME</em> in our example.</div></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />We changed the directory permission to 777, meaning anyone can read, write and execute because the users&#8217; home directory will be created later by Postfix or Dovecot when a mail is received or a user checks his email. The created home directory on the other hand will have its permission set to read, write and execute by the owner only.</div>
<div class="clearfix steps"><a href="/images/centos-4/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>8. Restart the winbind service. <a href="/how-to-start-stop-services-centos-4/">Learn how to restart services here.</a></div>
<h2 id="test-active-directory">Test the Active Directory Integration</h2>
<div class="clearfix steps"><a href="/images/centos-4/wbinfo-u.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-wbinfo-u.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. From a terminal window, type in <tt>wbinfo -u</tt>. You should see the Active Directory user accounts.</div>
<div class="clearfix steps"><a href="/images/centos-4/wbinfo-a.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-wbinfo-a.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Try the Active Directory authentication, type in <tt>wbinfo -a "username"%"password"</tt>.</div>
<div class="clearfix steps"><a href="/images/centos-4/getent-passwd.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-getent-passwd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Finally, type in <tt>getent passwd</tt>. You should see the Linux system accounts along with the Active Directory user accounts.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If it doesn&#8217;t work, visit the <a href="/troubleshooting-active-directory-centos-5/">Active Directory Troubleshooting</a> page.</div>
<h2 id="reconfigure">Reconfiguring Postfix and Dovecot to Create the Home Directory</h2>
<p>To store the mails, Postfix and Dovecot needs to create the <em>username/Maildir</em> directory. Postfix can create the <em>Maildir</em> directory and all the necessary parent directories. Unfortunately, Dovecot can only create the mail directory which in this case is <em>Maildir</em> and will fail if the parent directory <em>username</em> does not exist. Thus, we need to reconfigure Postfix and Dovecot to skip the <em>Maildir</em> directory and store the mails directly into the <em>username</em> directory which is the user&#8217;s home directory.</p>
<div class="clearfix steps"><a href="/images/centos-4/edit-main-cf3.png"><img class="preview" alt="Edit main.cf" src="/images/centos-4/t-edit-main-cf3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/postfix/main.cf</em> and change the line below.<div class="m"><pre class="steps">home_mailbox = /</pre></div></div>
<div class="clearfix steps"><a href="/images/centos-4/dovecot-conf2.png"><img class="preview" alt="Edit dovecot.conf" src="/images/centos-4/t-dovecot-conf2.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 line below.<div class="m"></div><pre class="steps">default_mail_env = maildir:~/</pre></div>
<div class="clearfix steps"><a href="/images/centos-4/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Restart Postfix or MailScanner (depends if you installed MailScanner) and Dovecot. <a href="/how-to-start-stop-services-centos-4/">Learn how to restart services here.</a></div>
<p>That&#8217;s it. The home directory should be now automatically created by Postfix and Dovecot whenever you receive or retrieve mails.</p>
<div class="left">&laquo;&laquo; Previous: <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-4/">MailScanner and Postfix Integration</a></div><div class="right">Next: <a href="/postfix-active-directory-ldap-lookup-howto/">Postfix AD Distribution List</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/active-directory-integration-samba-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewall Configuration in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/firewall-configuration-centos-4/</link>
		<comments>http://www.linuxmail.info/firewall-configuration-centos-4/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 09:32:07 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://linux-mail.info/firewall-configuration-centos-4/</guid>
		<description><![CDATA[How to configure the firewall in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>Red Hat Enterprise Linux 4 and its derivative CentOS 4 includes a graphical tool called Security Level Configuration for configuring the firewall options. This guide describes how to use this tool to open up the ports necessary for providing an email server.</p>
<span id="more-20"></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-4/security-level.png"><img class="preview" alt="Security Level" src="/images/centos-4/t-security-level.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Settings</em> and click <em>Security Level</em>. This will launch the <strong>Security Level Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/sec-level-config.png"><img class="preview" alt="Security Level Configuration" src="/images/centos-4/t-sec-level-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. For a mail server with webmail, check <em>WWW (HTTP)</em> and <em>Mail (SMTP)</em> in the Trusted services list. There are only four predefined trusted services, the other services will have to be entered into the Other ports field.</div>
<div class="clearfix steps"><a href="/images/centos-4/sec-level-config-2.png"><img class="preview" alt="Security Level Configuration" src="/images/centos-4/t-sec-level-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. We also need to open the ports for the POP3 and IMAP services. In the Other ports field, type in <em>110:tcp,995:tcp,143:tcp,993:tcp</em>. The service and its corresponding port number is provided below.</div>
<div>&nbsp;</div>
<div class="m">
<div class="fw"><strong>Service</strong></div><div><strong>Port</strong></div>
<div class="fw">HTTPS</div><div>443:tcp</div>
<div class="fw">POP3</div><div>110:tcp</div>
<div class="fw">POP3S</div><div>995:tcp</div>
<div class="fw">IMAP</div><div>143:tcp</div>
<div class="fw">IMAPS</div><div>993:tcp</div>
</div>
<div>&nbsp;</div>
<div class="m">Port 443:tcp is automatically added if you check the WWW (HTTP) service.</div>
</div>
<p><img class="icon32x32 left" alt="Important" src="/images/emblem-note.png" />You can see more service and port numbers by typing in <tt>getent services</tt> from the Terminal window.</p>
<div class="left">&laquo;&laquo; Previous: <a href="/squirrelmail-webmail-setup-howto-in-centos-4/">How to Install SquirrelMail </a></div><div class="right">Next: <a href="/how-to-install-clam-antivirus-centos-4/">How to Install Clam AntiVirus</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/firewall-configuration-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner, Postfix, ClamAV and SpamAssassin Setup Howto in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/</link>
		<comments>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 14:12:15 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/</guid>
		<description><![CDATA[How to setup MailScanner, Postfix, ClamAV and SpamAssassin in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>This article will guide you in configuring MailScanner, ClamAV and SpamAssassin to work in Postfix. Before proceeding, please make sure that all of the above components are already installed.</p>
<span id="more-18"></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>Here are the installation guides for the above components.</p>
<ul>
<li><a href="/postfix-smtp-server-howto-centos-4/">How to install Postfix SMTP Server</a></li>
<li><a href="/how-to-install-clam-antivirus-centos-4/">How to install Clam Anti-virus (ClamAV)</a></li>
<li><a href="/how-to-install-mailscanner-centos-4/">How to install MailScanner</a></li>
</ul>
<p>SpamAssassin is included in CentOS 4 and ready to go out of the box. Just add it using the <a href="/how-to-add-remove-applications-centos-4/">Package Management</a> tool if you haven&#8217;t done so during CentOS installation. SpamAssassin is located in the <em>Mail Server</em> package.</p>
<h2>Configuring MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-4/edit-ms-conf.png"><img class="preview" alt="MailScanner Config" src="/images/centos-4/t-edit-ms-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/MailScanner/MailScanner.conf</em></div>
<div class="clearfix">Find the following keys and change the values as follows</div>
<pre class="steps">
%org-name% = <em>your organization name</em>
%org-long-name% = <em>your full organization name</em>
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix
Virus Scanners = clamd
Clamd Socket = /tmp/clamd.socket
Use SpamAssassin = yes
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
</pre>
<div class="clearfix steps"><a href="/images/centos-4/ms-spool-dir.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-4/t-ms-spool-dir.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click <em>Applications</em> and click <em>File Browser</em> to launch the <strong>File Browser</strong> window and go to the <em>/var/spool/MailScanner</em> directory.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-spool-dir2.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-4/t-ms-spool-dir2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>File Browser</strong> window, click <em>File</em> and click <em>Create Folder</em>. Name the new folder <em>spamassassin</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-spool-dir3.png"><img class="preview" alt="MailScanner Spool Directory" src="/images/centos-4/t-ms-spool-dir3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Right click on the folder <em>incoming</em> and click <em>Properties</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-folder-perm.png"><img class="preview" alt="MailScanner Directory Permission" src="/images/centos-4/t-ms-folder-perm.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. In the <strong>Properties</strong> window, click the <em>Permissions</em> tab. In the Permissions page, set the File owner as <em>postfix</em>, the File group as <em>postfix</em> and check only the Owner <em>Read</em>, <em>Write</em> and <em>Execute</em>. Click <em>Close</em> when you are done. Repeat this for the <em>quarantine</em> and <em>spamassassin</em> folders.</div>
<h2>Integrating MailScanner into Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-4/edit-main-cf2.png"><img class="preview" alt="Postfix Configuration" src="/images/centos-4/t-edit-main-cf2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/postfix/main.cf</em> and remove the <em>#</em> in front of the line below <pre class="steps">header_checks = regexp:/etc/postfix/header_checks</pre></div>
<div class="clearfix steps"><a href="/images/centos-4/header-checks.png"><img class="preview" alt="Header Checks" src="/images/centos-4/t-header-checks.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/postfix/header_checks</em> and add the line below to the bottom of the file<div class="m"><pre class="steps">/^Received:/ HOLD</pre>This will now place all incoming mail into the holding area until released by MailScanner.</div></div>
<div class="clearfix steps"><a href="/images/centos-4/service-config-mailscan.png"><img class="preview" alt="CentOS 4 Service Configuration" src="/images/centos-4/t-service-config-mailscan.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. MailScanner should now be the one to start the Postfix service. Stop the Postfix service and start the MailScanner service in that order. <a href="/how-to-start-stop-services-centos-4/">Learn how to stop and start services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Test if Postfix is still working. See <a href="/postfix-smtp-server-howto-centos-4/#test-postfix">Test Postfix using Telnet.</a></div>
<h2>Congratulations</h2>
<p>Congratulations, your mails are now checked for spam and viruses. Each mail you send or receive will now contain the lines below to indicate that MailScanner is doing its job.</p>
<pre>
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
</pre>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-install-mailscanner-centos-4/">How to Install MailScanner</a></div><div class="right">Next: <a href="/active-directory-integration-samba-centos-4/">How to Integrate Active Directory</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-centos-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install MailScanner in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/how-to-install-mailscanner-centos-4/</link>
		<comments>http://www.linuxmail.info/how-to-install-mailscanner-centos-4/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 13:43:13 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/how-to-install-mailscanner-centos-4/</guid>
		<description><![CDATA[How to install MailScanner in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>To install MailScanner, we are going to download the latest source code from the MailScanner web site and build it. For this to work, it needs the <em>Development Tools</em> package. If you did not include this during installation, you must add it now. <a href="/how-to-add-remove-applications-centos-4/">Learn how to add or remove applications here</a>.</p>
<span id="more-17"></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>Getting MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-4/firefox.png"><img class="preview" alt="Firefox" src="/images/centos-4/t-firefox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div>1. Click the globe icon at the top near the <em>Actions</em> menu to launch the <strong>Firefox</strong> web browser.</div><div>&nbsp;</div><div class="m">If an error occurs, you probably did not install the Graphical Internet package. You can add it now using the <a href="/how-to-add-remove-applications-centos-4/">Package Management</a> tool.</div></div>
<div class="clearfix steps"><a href="/images/centos-4/ms-download.png"><img class="preview" alt="MailScanner download" src="/images/centos-4/t-ms-download.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the address box, type in <a href="http://www.mailscanner.info/downloads.html">http://www.mailscanner.info/downloads.html</a> and press <em>Enter</em>. Download the stable version for RedHat, Fedora and Mandrake Linux.</div>
<h2>Building and Installing MailScanner</h2>
<div class="clearfix steps"><a href="/images/centos-4/ms-extract.png"><img class="preview" alt="Extract MailScanner" src="/images/centos-4/t-ms-extract.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. The MailScanner source code should now be on your desktop. Right click the newly downloaded file and click <em>Extract Here</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-folder.png"><img class="preview" alt="MailScanner Folder" src="/images/centos-4/t-ms-folder.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. After extracting, a MailScanner folder should be found on your Desktop. Double click the MailScanner folder to open it.</div>
<div class="clearfix steps"><a href="/images/centos-4/ms-install.png"><img class="preview" alt="MailScanner Install" src="/images/centos-4/t-ms-install.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Next, double click the file <em>install.sh</em>. On the <em>Run or Display</em> window, select <em>Run in Terminal</em>. This will now build and install MailScanner. This will take a while so just wait until the <strong>Terminal</strong> window disappears.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-install-clam-antivirus-centos-4/">How to Install ClamAV</a></div><div class="right">Next: <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-4/">How to Integrate MailScanner into Postfix</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-mailscanner-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Clam AntiVirus (ClamAV) in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-4/</link>
		<comments>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-4/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 13:26:39 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/how-to-install-clam-antivirus-centos-4/</guid>
		<description><![CDATA[How to install Clam AntiVirus (ClamAV) in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>To install Clam AntiVirus (ClamAV), we are going to use the precompiled binaries from  <a href="http://dag.wieers.com/rpm">Dag Wieers RPM packages for Red Hat, RHEL, CentOS and Fedora</a>. To do this, we are going to configure Yum to look for the ClamAV packages in Dag&#8217;s repository.</p>
<span id="more-16"></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 Dag Wieers RPM Repository to Yum</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Tools</em> and click <em>Terminal</em>. This will launch the <strong>Terminal</strong> window. Type in the command <em>cd /etc/yum.repos.d</em> and press Enter. This will bring us to the Yum repository configuration directory.</div>
<div class="clearfix steps"><a href="/images/centos-4/terminal2.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. From this directory download the Yum repository configuration file by typing in the command<br /><em>wget http://www.linux-mail.info/files/dag-clamav.repo</em> and press Enter. This is what the file <a href="/files/dag-clamav.repo">dag-clamav.repo</a> looks like.</div>
<h2>Installing Clam AntiVirus</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal3.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. To install ClamAV AntiVirus, type in the command<br /><em>yum install clamav clamav-devel clamd</em> and press Enter. When asked to confirm download, type in <em>y</em> and press Enter.</div>
<h2>Using Clam AntiVirus</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal4.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-terminal4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. To use ClamAV AntiVirus, type in the command <em>clamscan</em> and press Enter.</div>
<div class="clearfix steps"><a href="/images/centos-4/freshclam.png"><img class="preview" alt="CentOS 4 Terminal" src="/images/centos-4/t-freshclam.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. To update the virus database, type in the command <em>freshclam</em> and press Enter.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/firewall-configuration-centos-4/">How to Configure the Firewall</a></div><div class="right">Next: <a href="/how-to-install-mailscanner-centos-4/">How to Install MailScanner</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-clam-antivirus-centos-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Add or Remove User Accounts in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/how-to-add-remove-user-accounts-centos-4/</link>
		<comments>http://www.linuxmail.info/how-to-add-remove-user-accounts-centos-4/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 09:35:37 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://linux-mail.info/how-to-add-remove-user-accounts-centos-4/</guid>
		<description><![CDATA[How to add or remove user accounts in Red Hat Enterprise Linux 4 or CentOS 4 using the User Manager tool]]></description>
			<content:encoded><![CDATA[<p>In Linux, new user accounts automatically receive mail accounts. Here are the steps for adding new users in Red Hat Enterprise Linux 4 or CentOS 4.</p>
<span id="more-14"></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-4/users-and-groups.png"><img class="preview" alt="User Manager" src="/images/centos-4/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-4/user-manager.png"><img class="preview" alt="User Manager" src="/images/centos-4/t-user-manager.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>User Manager</strong> window, click <em>Add User</em>. This will show the <strong>Create New User</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/create-user.png"><img class="preview" alt="Create New User" src="/images/centos-4/t-create-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>Create New User</strong> window, fill in the <em>User Name</em>, <em>Full Name</em>, <em>Password</em> and <em>Confirm Password</em>. Click <em>Ok</em> when you&#8217;re done.</div>
<div class="clearfix steps"><a href="/images/centos-4/user-manager-2.png"><img class="preview" alt="User Manager" src="/images/centos-4/t-user-manager-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. That&#8217;s it, you have just created a new user. To remove a user, select the user you want to remove and click <em>Delete</em>.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-add-remove-user-accounts-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail Webmail Setup Howto in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-in-centos-4/</link>
		<comments>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-in-centos-4/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 06:02:00 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>
		<category><![CDATA[SquirrelMail]]></category>

		<guid isPermaLink="false">http://linux-mail.info/squirrelmail-webmail-setup-howto-in-centos-4/</guid>
		<description><![CDATA[How to install SquirrelMail Webmail in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.squirrelmail.org">SquirrelMail</a> is an open source standards-based webmail package written in PHP. When installed, SquirrelMail is ready out of the box. All it needs is an installed web server like Apache, SMTP server like Postfix, and IMAP server like Dovecot.</p>
<span id="more-13"></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>Here are the installation guides for Postfix and Dovecot.</p>
<ul>
<li><a href="/postfix-smtp-server-howto-centos-4/">How to install Postfix SMTP Server</a></li>
<li><a href="/install-setup-dovecot-centos-4/">How to install Dovecot POP3 and IMAP Server</a></li>
</ul>
<h2>Starting the Web Server</h2>
<div class="clearfix steps"><a href="/images/centos-4/package-man.png"><img class="preview" alt="Package Management" src="/images/centos-4/t-package-man.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. If you did not add Web Server and squirrelmail during the CentOS installation, you can add it now. Using the <a href="/how-to-add-remove-applications-centos-4/">Package Management</a> tool, add the Web Server package. Also add squirrelmail located inside the Mail Server package.</div>
<div class="clearfix steps"><a href="/images/centos-4/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Start the httpd service. <a href="/how-to-start-stop-services-centos-4/">Learn how to start and stop services here.</a></div>
<h2>Testing SquirrelMail</h2>
<div class="clearfix steps"><a href="/images/centos-4/firefox.png"><img class="preview" alt="Firefox" src="/images/centos-4/t-firefox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div>1. Click the globe icon at the top near the <em>Actions</em> menu to launch the <strong>Firefox</strong> web browser.</div><div>&nbsp;</div><div class="m">If an error occurs, you probably did not install the Graphical Internet package. You can add it now using the <a href="/how-to-add-remove-applications-centos-4/">Package Management</a> tool.</div></div>
<div class="clearfix steps"><a href="/images/centos-4/squirrelmail.png"><img class="preview" alt="SquirrelMail" src="/images/centos-4/t-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the address box, type in <em>http://localhost/webmail</em> and press <em>Enter</em>. Type in a valid username and password and click <em>Login</em>.</div>
<div class="clearfix steps"><a href="/images/centos-4/squirrelmail-2.png"><img class="preview" alt="SquirrelMail" src="/images/centos-4/t-squirrelmail-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. That&#8217;s it, it&#8217;s working.</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>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/sm-change-password.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-sm-change-password.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/squirrelmail-change-password-howto/">How to add a password change utility.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/sm-addressbook.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-sm-addressbook.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/squirrelmail-active-directory-ldap-addressbook/">How to add Active Directory/LDAP into the SquirrelMail Addressbook.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/sm-personal-info.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-sm-personal-info.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/auto-update-squirrelmail-personal-information/">How to automatically update the user&#8217;s personal information.</a></div>
<div class="left">&laquo;&laquo; Previous: <a href="/install-setup-dovecot-centos-4/">How to Setup Dovecot</a></div><div class="right">Next: <a href="/firewall-configuration-centos-4/">How to Configure the Firewall</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-in-centos-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install and Setup Dovecot in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/install-setup-dovecot-centos-4/</link>
		<comments>http://www.linuxmail.info/install-setup-dovecot-centos-4/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 06:32:30 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/install-setup-dovecot-centos-4/</guid>
		<description><![CDATA[How to install Dovecot POP3/IMAP server in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>Installing and setting up Dovecot in RHEL 4 or CentOS 4 is easy. All we have to do is to enable the services we would like to provide and we are good to go.</p>
<span id="more-12"></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>Install Dovecot</h2>
<div class="clearfix steps"><a href="/images/centos-4/package-man.png"><img class="preview" alt="Package Management" src="/images/centos-4/t-package-man.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. If you did not add dovecot during the CentOS installation, you can add it now. Dovecot is located in the package <em>Mail Server</em>. <a href="/how-to-add-remove-applications-centos-4/">Learn how to add or remove applications here.</a></div>
<h2>Configure Dovecot</h2>
<div class="clearfix steps"><a href="/images/centos-4/file-browser.png"><img class="preview" alt="File Browser" src="/images/centos-4/t-file-browser.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em> then click <em>File Browser</em>. This will launch the <strong>File Browser</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/file-browser3.png"><img class="preview" alt="File Browser" src="/images/centos-4/t-file-browser3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <em>Location</em> field, type in <em>/etc</em> and press Enter.</div>
<div class="clearfix steps"><a href="/images/centos-4/edit-dovecot-cf.png"><img class="preview" alt="Edit dovecot.cf" src="/images/centos-4/t-edit-dovecot-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Double click on the file <em>dovecot.conf</em> to open it for editing. We need to change a few key items.</div><div class="clearfix"><div>Find the following keys and change its values as follows</div>
<pre class="scroll steps">
protocols = pop3 pop3s imap imaps
default_mail_env = maildir:~/Maildir/
client_workarounds = oe6-fetch-no-newmail outlook-idle outlook-pop3-no-nuls
</pre>
<div>Lines starting with <tt>#</tt> are comments. The last line enables workarounds for various Microsoft Outlook/Outlook Express bugs. Save the file after completing your changes.</div></div>
<div class="clear">&nbsp;</div>
<div class="clearfix steps"><a href="/images/centos-4/service-config-dovecot.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-service-config-dovecot.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Start the dovecot service. <a href="/how-to-start-stop-services-centos-4/">Learn how to start and stop services here.</a></div>
<h2 id="test-dovecot">Test Dovecot</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal-shortcut.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal-shortcut.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Tools</em>, and click <em>Terminal</em>. This will launch the <strong>Terminal</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Terminal</strong> window, type in the highlighted commands below.</div>
<p>Sample dovecot session. Replace <strong>johndoe</strong> and <strong>password</strong> with any valid user name and password.</p>
<div class="clearfix">
<pre class="steps">
[root@mail ~]# <span class="h">telnet localhost pop3</span>
+OK dovecot ready.
<span class="h">user johndoe</span>
+OK
<span class="h">pass password</span>
+OK Logged in.
<span class="h">list</span>
+OK 1 messages:
1 622
.
<span class="h">retr 1</span>
+OK 622 octets
Return-Path: &lt;johndoe@mail.acme.local&gt;
X-Original-To: johndoe
Delivered-To: johndoe@mail.acme.local
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
        by mail.acme.local (Postfix) with SMTP id 9729067C17
        for &lt;johndoe&gt;; Thu, 22 Feb 2007 09:06:37 -0500 (EST)
Message-Id: &lt;20070222140640.9729067C17@mail.acme.local&gt;
Date: Thu, 22 Feb 2007 09:06:37 -0500 (EST)
From: johndoe@mail.acme.local
To: undisclosed-recipients:;
X-IMAPbase: 1172153557 1
Status: O
X-UID: 1
Content-Length: 5
X-Keywords:


test
.
<span class="h">quit</span>
+OK Logging out.
Connection closed by foreign host.
[root@mail ~]#
</pre>
</div>
<p><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></p>
<div>&nbsp;</div>
<div class="left">&laquo;&laquo; Previous: <a href="/postfix-smtp-server-howto-centos-4/">How to Setup Postfix SMTP Server </a></div><div class="right">Next: <a href="/squirrelmail-webmail-setup-howto-in-centos-4/">How to Install SquirrelMail</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/install-setup-dovecot-centos-4/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to Install Postfix SMTP Server in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/postfix-smtp-server-howto-centos-4/</link>
		<comments>http://www.linuxmail.info/postfix-smtp-server-howto-centos-4/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 05:27:13 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>

		<guid isPermaLink="false">http://linux-mail.info/postfix-smtp-server-howto-centos-4/</guid>
		<description><![CDATA[How to install Postfix SMTP Server in Red Hat Enterprise Linux 4 or CentOS 4]]></description>
			<content:encoded><![CDATA[<p>Installing and setting up Postfix SMTP Server in RHEL 4 or CentOS 4 is easy. Postfix has secure default settings so we just need to open it up a bit.</p>
<span id="more-11"></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>Install Postfix and Mail Transport Agent Switcher</h2>
<div class="clearfix steps"><a href="/images/centos-4/package-man.png"><img class="preview" alt="Package Management" src="/images/centos-4/t-package-man.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. If you did not add postfix and system-switch-mail-gnome during the CentOS installation, you can add it now. Postfix is located in the package <em>Mail Server</em> while system-switch-mail-gnome is in <em>X Windows System</em>. <a href="/how-to-add-remove-applications-centos-4/">Learn how to add or remove applications here.</a></div>
<h2>Switch to Postfix from Sendmail</h2>
<p>By default, Sendmail is the active SMTP server. Here&#8217;s how to change it.</p>
<div class="clearfix steps"><a href="/images/centos-4/mail-transport.png"><img class="preview" alt="Mail Transport Agent Switcher Location" src="/images/centos-4/t-mail-transport.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>Preferences</em>, select <em>More Preferences</em> and click <em>Mail Transport Agent Switcher</em>. This will launch the <strong>system-switch-mail</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/switch-mail.png"><img class="preview" alt="Mail Transport Agent Switcher" src="/images/centos-4/t-switch-mail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>system-switch-mail</strong> window, select <em>Postfix</em> and click <em>Ok</em>.</div>
<h2>Configure Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-4/file-browser.png"><img class="preview" alt="File Browser" src="/images/centos-4/t-file-browser.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em> then click <em>File Browser</em>. This will launch the <strong>File Browser</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/file-browser2.png"><img class="preview" alt="File Browser" src="/images/centos-4/t-file-browser2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <em>Location</em> field, type in <em>/etc/postfix</em> and press Enter.</div>
<div class="clearfix steps"><a href="/images/centos-4/edit-main-cf.png"><img class="preview" alt="Edit main.cf" src="/images/centos-4/t-edit-main-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Double click on the file <em>main.cf</em> to open it for editing. We need to make it listen to network request, accept mails bound to our domain and use <a href="/mbox-maildir-mail-storage-formats/">maildir</a> which is a better mailbox format than mbox the default.</div><div class="clearfix"><div>Find the following keys and change its values as follows</div>
<pre class="steps">
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
home_mailbox = Maildir/
</pre>
<div>In main.cf, lines starting with <tt>#</tt> are comments. Save the file after completing your changes.</div></div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Make sure that all <tt>mail_spool_directory</tt> lines are commented out. Otherwise, it will override the setting in the <tt>home_mailbox</tt> line above.</p>
<div class="clearfix steps"><a href="/images/centos-4/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-4/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the postfix service. <a href="/how-to-start-stop-services-centos-4/">Learn how to restart services here.</a></div>
<h2 id="test-postfix">Test Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-4/terminal-shortcut.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal-shortcut.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Tools</em>, and click <em>Terminal</em>. This will launch the <strong>Terminal</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-4/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the <strong>Terminal</strong> window, type in the highlighted commands below.</div>
<p>Sample postfix session. Replace <strong>johndoe</strong> with any valid user account. The dot after the line <strong>test</strong> is a command that should be typed in.</p>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you need to add new user accounts, <a href="/how-to-add-remove-user-accounts-centos-4/">learn how to add or remove user accounts here.</a></p>
<div class="clearfix">
<pre class="steps">
[root@mail ~]# <span class="h">telnet localhost smtp</span>
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.acme.local ESMTP Postfix
<span class="h">ehlo host</span>
250-mail.acme.local
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
<span class="h">mail from: johndoe</span>
250 Ok
<span class="h">rcpt to: johndoe</span>
250 Ok
<span class="h">data</span>
354 End data with &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt;
<span class="h">test</span>
<span class="h">.</span>
250 Ok: queued as 9729067C17
<span class="h">quit</span>
221 Bye
Connection closed by foreign host.
[root@mail ~]#
</pre>
<p>&nbsp;</p>
<p>To check if the mail indeed exists</p>
<pre class="steps">
[root@mail ~]# <span class="h">cd /home/johndoe/Maildir/new</span>
[root@mail new]# <span class="h">ls</span>
1185669817.Vfd00I18012M795756.mail.acme.local
[root@mail new]# <span class="h">cat 1185669817.Vfd00I18012M795756.mail.acme.local</span>
</pre>
<p>Don&#8217;t worry, you don&#8217;t have to type in the whole filename above. Just type in the first few characters say <tt>118</tt> then press Tab to activate automatic completion.</p>
<pre class="steps">
From johndoe@mail.acme.local  Thu Feb 22 21:48:28 2007
Return-Path: &lt;johndoe@mail.acme.local&gt;
X-Original-To: johndoe
Delivered-To: johndoe@mail.acme.local
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
        by mail.acme.local (Postfix) with SMTP id 9729067C17
        for &lt;johndoe&gt;; Thu, 22 Feb 2007 21:48:26 -0500 (EST)
Message-Id: &lt;20070222134827.9729067C17@mail.acme.local&gt;
Date: Thu, 22 Feb 2007 21:48:26 -0500 (EST)
From: johndoe@mail.acme.local
To: undisclosed-recipients:;

test

[root@mail mail]#
</pre>
</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>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Review your <a href="/postfix-aliases-mailing-list/">Postfix aliases configuration file</a>. There are some predefined email aliases that might conflict with your existing mail accounts like sales, marketing, info, etc.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />By default Postfix does not require authentication to send emails. This means any Tom, Dick and Harry that have access to your network can use your SMTP server to send spam emails. <a href="/smtp-authentication-postfix-centos-5/">Learn how to enable SMTP Authentication (SMTP AUTH) in Postfix here.</a></div>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-setup-centos-4-linux/">How to Configure CentOS 4 Linux</a></div><div class="right">Next: <a href="/install-setup-dovecot-centos-4/">How to Setup Dovecot</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-smtp-server-howto-centos-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Add or Remove Applications in RHEL/CentOS 4</title>
		<link>http://www.linuxmail.info/how-to-add-remove-applications-centos-4/</link>
		<comments>http://www.linuxmail.info/how-to-add-remove-applications-centos-4/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 15:30:16 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 4]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 4]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://linux-mail.info/how-to-add-remove-applications-centos-4/</guid>
		<description><![CDATA[How to add or remove applications in Red Hat Enterprise Linux 4 or CentOS 4 using the Package Management tool]]></description>
			<content:encoded><![CDATA[<p>Red Hat Enterprise Linux 4 and its derivative CentOS 4 includes an extensive list of applications that can be easily added or removed. This guide will show you how to do it using the Package Management tool.</p>
<span id="more-10"></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-4/add-remove-app.png"><img class="preview" alt="Add/Remove Applications" src="/images/centos-4/t-add-remove-app.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Settings</em> and click <em>Add/Remove Applications</em>. This will launch the <strong>Package Management</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-4/package-man.png"><img class="preview" alt="Package Management" src="/images/centos-4/t-package-man.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Check the package you wish to install or uncheck it to remove it.</div>
<div class="clearfix steps"><a href="/images/centos-4/package-man-details.png"><img class="preview" alt="Package Management" src="/images/centos-4/t-package-man-details.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click <em>Details</em> to check or uncheck the application inside the package you wish to install or remove respectively.</div>
<div class="clearfix steps"><a href="/images/centos-4/package-man2.png"><img class="preview" alt="Package Management" src="/images/centos-4/t-package-man2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Finally, click <em>Update</em>. The <strong>Completed System Preparation</strong> window will appear. Click <em>Continue</em> to proceed. Insert the required CentOS CD if asked.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-add-remove-applications-centos-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
