<?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</title>
	<atom:link href="http://www.linuxmail.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Tue, 01 Nov 2011 00:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Install Ubuntu 10.04</title>
		<link>http://www.linuxmail.info/how-to-install-ubuntu-10-04/</link>
		<comments>http://www.linuxmail.info/how-to-install-ubuntu-10-04/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 14:20:54 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=432</guid>
		<description><![CDATA[How to install Ubuntu 10.04]]></description>
			<content:encoded><![CDATA[<p>After getting a copy of Ubuntu 10.04, the steps below describes how to install it from scratch.</p>
<span id="more-432"></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/ubuntu-10-04/boot-language.png"><img class="preview" alt="Boot Language" src="/images/ubuntu-10-04/t-boot-language.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Boot your computer from the Ubuntu 10.04 CD and select your language and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/boot-menu.png"><img class="preview" alt="Boot Menu" src="/images/ubuntu-10-04/t-boot-menu.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Select <em>Install Ubuntu Server</em> and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/choose-language.png"><img class="preview" alt="Choose Language" src="/images/ubuntu-10-04/t-choose-language.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Choose the installation language and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/choose-language-2.png"><img class="preview" alt="Choose Country or Region" src="/images/ubuntu-10-04/t-choose-language-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Choose a country or region and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/detect-keyboard.png"><img class="preview" alt="Detect Keyboard" src="/images/ubuntu-10-04/t-detect-keyboard.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Select <em>No</em> in the Detect keyboard layout screen and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/origin-of-keyboard.png"><img class="preview" alt="Origin of the keyboard" src="/images/ubuntu-10-04/t-origin-of-keyboard.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Select the origin of the keyboard and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/keyboard-layout.png"><img class="preview" alt="Keyboard layout" src="/images/ubuntu-10-04/t-keyboard-layout.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Select the keyboard layout and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/configure-network.png"><img class="preview" alt="Configure the network" src="/images/ubuntu-10-04/t-configure-network.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>8. Specify a hostname for the system and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/configure-clock.png"><img class="preview" alt="Configure the clock" src="/images/ubuntu-10-04/t-configure-clock.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>9. Verify your time zone. If correct, select <em>Yes</em> and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/partition-disks.png"><img class="preview" alt="Partition disks" src="/images/ubuntu-10-04/t-partition-disks.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>10. Select the partitioning method and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/partition-disks-2.png"><img class="preview" alt="Partition disks" src="/images/ubuntu-10-04/t-partition-disks-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>11. Select the disk to partition and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/partition-disks-3.png"><img class="preview" alt="Partition disks" src="/images/ubuntu-10-04/t-partition-disks-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>12. Select the <em>Yes</em> to write changes and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/partition-disks-4.png"><img class="preview" alt="Partition disks" src="/images/ubuntu-10-04/t-partition-disks-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>13. Specify the amount of volume group to use and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/partition-disks-5.png"><img class="preview" alt="Partition disks" src="/images/ubuntu-10-04/t-partition-disks-5.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>14. Review the partitions. Select <em>Yes</em> and press <em>Enter</em> to write changes.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/installing.png"><img class="preview" alt="Installing" src="/images/ubuntu-10-04/t-installing.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>15. Installation will now begin.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/setup-users.png"><img class="preview" alt="Setup users" src="/images/ubuntu-10-04/t-setup-users.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>16. Specify the full name for the new user and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/setup-users-2.png"><img class="preview" alt="Setup users" src="/images/ubuntu-10-04/t-setup-users-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>17. Specify the username for the account and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/setup-users-3.png"><img class="preview" alt="Setup users" src="/images/ubuntu-10-04/t-setup-users-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>18. Specify a password for the account and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/setup-users-4.png"><img class="preview" alt="Setup users" src="/images/ubuntu-10-04/t-setup-users-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>19. Re-enter the password and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/setup-users-5.png"><img class="preview" alt="Setup users" src="/images/ubuntu-10-04/t-setup-users-5.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>20. Select whether or not you prefer to encrypt your system&#8217;s home directory and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/configure-proxy.png"><img class="preview" alt="Configure proxy" src="/images/ubuntu-10-04/t-configure-proxy.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>21. Specify your HTTP proxy information if you have any and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/configuring-apt.png"><img class="preview" alt="Configuring apt" src="/images/ubuntu-10-04/t-configuring-apt.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>22. Wait while some files are downloaded from the internet.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/configure-automatic-updates.png"><img class="preview" alt="Configure automatic updates" src="/images/ubuntu-10-04/t-configure-automatic-updates.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>23. Select how you would like to update your system and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/choose-software-to-install.png"><img class="preview" alt="Choose software to install" src="/images/ubuntu-10-04/t-choose-software-to-install.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>24. Select <em>Mail server</em> and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/select-mail-configuration.png"><img class="preview" alt="Postfix configuration" src="/images/ubuntu-10-04/t-select-mail-configuration.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>25. Select the type of mail configuration and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/configure-system-mail-name.png"><img class="preview" alt="Postfix configuration" src="/images/ubuntu-10-04/t-configure-system-mail-name.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>26. Specify the system mail name and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/install-selected-software.png"><img class="preview" alt="Installing" src="/images/ubuntu-10-04/t-install-selected-software.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>27. Selected software will now be installed.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/install-grub.png"><img class="preview" alt="Install GRUB" src="/images/ubuntu-10-04/t-install-grub.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>28. Select <em>Yes</em> and press <em>Enter</em> to install GRUB.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/installation-complete.png"><img class="preview" alt="Installation complete" src="/images/ubuntu-10-04/t-installation-complete.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>29. Congratulations, Ubuntu has been installed. Select <em>Continue</em> and press <em>Enter</em> to boot into your new system.</div>
<div class="clearfix">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/how-to-install-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail Server Setup Guide for Ubuntu 10.04</title>
		<link>http://www.linuxmail.info/mail-server-setup-ubuntu-10-04/</link>
		<comments>http://www.linuxmail.info/mail-server-setup-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 21:20:22 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=430</guid>
		<description><![CDATA[How to setup a Linux mail server using Ubuntu 10.04]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to setup an email server accessible using a POP3, IMAP or web browser client. It will also show you how to include virus scanning and spam tagging in the mail server.</p>
<span id="more-430"></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>How to install Linux</h2>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/boot-menu.png"><img class="preview" alt="Postfix service" src="/images/ubuntu-10-04/t-boot-menu.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/how-to-install-ubuntu-10-04/">How to install Ubuntu 10.04.</a></div>
<h2 id="basic">How to install SMTP, POP3, IMAP and Webmail service</h2>
<p>Postfix will be providing the SMTP service, Dovecot will provide the POP3 and IMAP service, while Apache and SquirrelMail will provide the Webmail service.</p>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/service-postfix-restart.png"><img class="preview" alt="Postfix service" src="/images/ubuntu-10-04/t-service-postfix-restart.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/postfix-smtp-server-howto-ubuntu-10-04/">How to install and setup Postfix SMTP server.</a></div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/service-dovecot-restart.png"><img class="preview" alt="Dovecot service" src="/images/ubuntu-10-04/t-service-dovecot-restart.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/dovecot-pop3-imap-server-setup-howto-ubuntu-10-04/">How to install and setup Dovecot POP3 and IMAP server.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/telnet-smtp-sasl.png"><img class="preview" alt="Telnet SMTP SASL" src="/images/centos-5/t-telnet-smtp-sasl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/postfix-smtp-auth-dovecot-sasl/">Configure Postfix SMTP Authentication using Dovecot SASL.</a></div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/squirrelmail-login.png"><img class="preview" alt="Squirrelmail" src="/images/ubuntu-10-04/t-squirrelmail-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. <a href="/squirrelmail-webmail-setup-howto-unbuntu-10-04/">How to install and setup SquirrelMail WebMail.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />Before deploying your new mail server, see <a href="/mail-server-checklist/">Mail Server Checklist</a> to ensure your new mail server will have a good sending reputation and can be trusted.</div>
<h2>How to create mailboxes and do miscellaneous tasks</h2>
<p>This section will show you to do tasks like creating mailboxes, aliases, setting quota etc.</p>
<div class="clearfix steps"><a href="/images/centos-5/create-new-user.png"><img class="preview" alt="Create New User" src="/images/centos-5/t-create-new-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/how-to-add-remove-user-accounts-centos-5/#console">To create a mailbox, just create a new user account.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />To avoid user account related problems, do not use uppercase letters when creating user names.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/mailscanner-start.png"><img class="preview" alt="Mailscanner" src="/images/ubuntu-10-04/t-mailscanner-start.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/mailscanner-postfix-clamav-spamassassin-howto-ubuntu-10-04/">How to install MailScanner anti-virus and anti-spam filter.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can greatly reduce the volume of spam and viruses reaching your mail server if you are willing to give up something. If you are willing to have your mail delayed (time), install <a href="/postgrey-postfix-anti-spam/">Postgrey</a>. If you are willing to spend (money), get the <a href="/barracuda-anti-spam-firewall/">Barracuda Spam Firewall</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-aliases.png"><img class="preview" alt="Edit /etc/aliases" src="/images/centos-5/t-edit-aliases.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-aliases-mailing-list/">How to setup a mailing list or proxy address in Postfix.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mail-server-setup-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailScanner, Postfix, ClamAV and SpamAssassin Setup Howto for Ubuntu 10.04</title>
		<link>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-ubuntu-10-04/</link>
		<comments>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 20:59:11 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Anti-spam/Anti-virus]]></category>
		<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=429</guid>
		<description><![CDATA[How to setup MailScanner, Postfix, ClamAV and SpamAssassin in Ubuntu 10.04]]></description>
			<content:encoded><![CDATA[<p>This page will guide you in configuring MailScanner, ClamAV and SpamAssassin to work in Postfix. Before proceeding, make sure <a href="/postfix-smtp-server-howto-ubuntu-10-04/">Postfix is installed and working.</a></p>
<span id="more-429"></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>Configuring MailScanner</h2>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/apt-get-mailscanner.png"><img class="preview" alt="Install MailScanner" src="/images/ubuntu-10-04/t-apt-get-mailscanner.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Install MailScanner using the command below.
<pre class="steps">
sudo apt-get install mailscanner
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-virus-scanners-conf.png"><img class="preview" alt="MailScanner Virus Config" src="/images/centos-5/t-edit-virus-scanners-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/MailScanner/virus.scanners.conf</em> and change the path of <em>clamav</em> to <em>/usr</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-mailscanner-conf.png"><img class="preview" alt="MailScanner Config" src="/images/centos-5/t-edit-mailscanner-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Edit the file <em>/etc/MailScanner/MailScanner.conf</em> and update the lines below.</div>
<pre class="steps">
%org-name% = <em>your organization name</em>
%org-long-name% = <em>your full organization name</em>
%web-site% = <em>your mail support website or company website</em>
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
Incoming Work Group = clamav
Incoming Work Permissions = 0640
MTA = postfix
Virus Scanners = clamd
Use SpamAssassin = yes
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
</pre>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/edit-mailscanner.png"><img class="preview" alt="Edit mailscanner" src="/images/ubuntu-10-04/t-edit-mailscanner.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Edit the file <em>/etc/default/mailScanner</em> and update the line below
<pre class="steps">
run_mailscanner=1
</pre>
</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/edit-sbin-mailscanner.png"><img class="preview" alt="Edit mailscanner" src="/images/ubuntu-10-04/t-edit-sbin-mailscanner.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Edit the file <em>/usr/sbin/mailscanner</em> and add a <em>-U</em> parameter on the first line.</div>
<h2>Integrating MailScanner into Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-2.png"><img class="preview" alt="Postfix Configuration" src="/images/centos-5/t-edit-main-cf-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/postfix/main.cf</em> and add the line below 
<pre class="steps">
header_checks = regexp:/etc/postfix/header_checks
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-header-checks.png"><img class="preview" alt="Header Checks" src="/images/centos-5/t-edit-header-checks.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Create the file <em>/etc/postfix/header_checks</em> and add the line below 
<pre class="steps">
/^Received:/ HOLD
</pre>
This will now place all incoming mail into the holding area until released by MailScanner.
</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/mailscanner-start.png"><img class="preview" alt="start MailScanner" src="/images/ubuntu-10-04/t-mailscanner-start.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Use the commands below to start MailScanner.
<pre class="steps">
sudo service postfix restart
sudo service clamav-daemon start
sudo service mailscanner start
</pre>
</div>
</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. Test if Postfix is still working. See <a href="/postfix-smtp-server-howto-ubuntu-10-04/#test-postfix">Test Postfix using Telnet.</a></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/mail.log.</em></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 class="steps">
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
</pre>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />The English language message templates used in MailScanner is stored in <em>/etc/MailScanner/reports/en</em> and can even be <a href="/postfix-disclaimer/">configured to add a disclaimer message to outgoing mails.</a></div>
<div style="clear: both">&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mailscanner-postfix-clamav-spamassassin-howto-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail Webmail Setup Howto for Unbuntu 10.04</title>
		<link>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-unbuntu-10-04/</link>
		<comments>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-unbuntu-10-04/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 20:56:52 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[SquirrelMail]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=428</guid>
		<description><![CDATA[How to install SquirrelMail Webmail in Ubuntu 10.04]]></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-428"></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 SquirrelMail</h2>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/apt-get-squirrelmail.png"><img class="preview" alt="yum install squirrelmail" src="/images/ubuntu-10-04/t-apt-get-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Install squirrelmail using the command below.
<pre class="steps">
sudo apt-get install squirrelmail
</pre>
</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/squirrelmail-configure-apache.png"><img class="preview" alt="squirrelmail configure apache" src="/images/ubuntu-10-04/t-squirrelmail-configure-apache.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Add SquirrelMail into Apache using the commands below.
<pre class="steps scroll">
sudo cp /etc/squirrelmail/apache.conf /etc/apache2/sites-available/squirrelmail
sudo a2ensite squirrelmail
sudo service apache2 restart
</pre>
</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/edit-apache-servername.png"><img class="preview" alt="Apache ServerName" src="/images/ubuntu-10-04/t-edit-apache-servername.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. If you encounter an error regarding apache being not able to determine the server&#8217;s fully qualified domain name, then use the command below to fix it.</div>
<div class="clearfix steps">
<pre class="steps">
echo ServerName $HOSTNAME | sudo tee /etc/apache2/conf.d/servername
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/sm-config.png"><img class="preview" alt="SquirrelMail Configuration" src="/images/centos-5/t-sm-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Launch the <strong>SquirrelMail Configuration</strong> utility using the command below.
<pre class="steps">
sudo squirrelmail-configure
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/sm-config-predefined.png"><img class="preview" alt="SquirrelMail Configuration" src="/images/centos-5/t-sm-config-predefined.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Type in <tt>D</tt> and press <em>Enter</em> to select the <strong>Set pre-defined settings for specific IMAP servers</strong> menu. Type in <tt>dovecot</tt> and press <em>Enter</em>. Save your changes when you are done.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />I recommend installing the <a href="/retrieveuserdata/">Retrieve User Data plugin</a> so the user&#8217;s name will appear whenever he or she sends an email in SquirrelMail.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/squirrelmail-login.png"><img class="preview" alt="SquirrelMail Login" src="/images/ubuntu-10-04/t-squirrelmail-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Launch your browser and type in <em>http://mail.acme.local/squirrelmail</em>. Replace <strong>mail.acme.local</strong> with your own server name. Type in a valid username and password and click <em>Login</em>.</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/squirrelmail-inbox.png"><img class="preview" alt="SquirrelMail Inbox" src="/images/ubuntu-10-04/t-squirrelmail-inbox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. 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/mail.log.</em></div>
<div class="clearfix steps">&nbsp;</div>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-customized-login.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-squirrelmail-customized-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/customize-squirrelmail-login-page/">How to customize the login page.</a></div>
<div class="clearfix steps"><a href="/images/windows-xp/https-squirrelmail.png"><img class="preview" alt="SquirrelMail" src="/images/windows-xp/t-https-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/securing-squirrelmail-using-ssl/">How to secure SquirrelMail using SSL.</a></div>
<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 style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-unbuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dovecot POP3/IMAP Server Setup Howto for Ubuntu 10.04</title>
		<link>http://www.linuxmail.info/dovecot-pop3-imap-server-setup-howto-ubuntu-10-04/</link>
		<comments>http://www.linuxmail.info/dovecot-pop3-imap-server-setup-howto-ubuntu-10-04/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 13:27:01 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=426</guid>
		<description><![CDATA[How to install Dovecot POP3/IMAP server in Ubuntu 10.04]]></description>
			<content:encoded><![CDATA[<p>Installing and setting up Dovecot in Ubuntu 10.04 is easy. All we have to do is set the <a href="/mbox-maildir-mail-storage-formats/">mailbox format to maildir</a> and we are good to go.</p>
<span id="more-426"></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>Configure Dovecot</h2>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/edit-dovecot-conf.png"><img class="preview" alt="Edit dovecot.conf" src="/images/ubuntu-10-04/t-edit-dovecot-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit the file <em>/etc/dovecot/dovecot.conf</em> using the command
<pre class="steps">
sudo vi /etc/dovecot/dovecot.conf
</pre>
and update the lines below
<pre class="steps">
mail_location = maildir:~/Maildir
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
</pre>
</div></div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/service-dovecot-restart.png"><img class="preview" alt="Service Configuration" src="/images/ubuntu-10-04/t-service-dovecot-restart.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Restart dovecot using the command
<pre class="steps">
sudo service dovecot restart
</pre>
</div>
<h2 id="test-dovecot">Test Dovecot</h2>
<p>Here&#8217;s a 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">
johndoe@mail:~$ <span class="h">telnet localhost pop3</span>
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+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.
johndoe@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/mail.log.</em></p>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/dovecot-pop3-imap-server-setup-howto-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix SMTP Server Setup Howto for Ubuntu 10.04</title>
		<link>http://www.linuxmail.info/postfix-smtp-server-howto-ubuntu-10-04/</link>
		<comments>http://www.linuxmail.info/postfix-smtp-server-howto-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 21:45:19 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=425</guid>
		<description><![CDATA[How to install Postfix SMTP Server in Ubuntu 10.04 LTS]]></description>
			<content:encoded><![CDATA[<p>Installing and setting up Postfix SMTP Server in Ubuntu 10.04 is easy. Postfix by default uses the <a href="/mbox-maildir-mail-storage-formats/">mbox mail format so we&#8217;ll just change it to maildir</a>.</p>
<span id="more-425"></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>Configure Postfix</h2>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/edit-main-cf.png"><img class="preview" alt="Edit main.cf" src="/images/ubuntu-10-04/t-edit-main-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit the file <em>/etc/postfix/main.cf</em> using the command
<pre class="steps">
sudo vi /etc/postfix/main.cf
</pre>
and add the line below
<pre class="steps">
home_mailbox = Maildir/
</pre>
</div>
<p>In main.cf, lines starting with <tt>#</tt> are comments. Save the file after completing your changes.</p>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Make sure that the <tt>mail_spool_directory</tt> and <tt>mailbox_command</tt> lines are commented out. Otherwise, it will override the setting in the <tt>home_mailbox</tt> line.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you are not familiar with <em>vi</em>, check out this quick <a href="/vi-editor-tutorial/">vi tutorial</a>.</div>
</div>
<div class="clearfix steps"><a href="/images/ubuntu-10-04/service-postfix-restart.png"><img class="preview" alt="Service Configuration" src="/images/ubuntu-10-04/t-service-postfix-restart.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Restart postfix using the command
<pre class="steps">
sudo service postfix restart
</pre>
</div>
<h2 id="test-postfix">Test Postfix</h2>
<p>Here is a 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>
<div class="clearfix steps"><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-5/#console">learn how to add or remove user accounts here.</a></div>
<div class="clearfix">
<pre class="steps">
johndoe@mail:~$ <span class="h">telnet localhost smtp</span>
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail ESMTP Postfix (Ubuntu)
<span class="h">ehlo localhost</span>
250-mail
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
<span class="h">mail from:&lt;johndoe&gt;</span>
250 2.1.0 Ok
<span class="h">rcpt to:&lt;johndoe&gt;</span>
250 2.1.5 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 2.0.0 Ok: queued as 9729067C17
<span class="h">quit</span>
221 2.0.0 Bye
Connection closed by foreign host.
johndoe@mail:~$
</pre>
<p>&nbsp;</p>
<p>To check if the mail indeed exists</p>
<pre class="steps">
johndoe@mail:~$ <span class="h">cd /home/johndoe/Maildir/new</span>
johndoe@mail:~/Maildir/new$ <span class="h">ls</span>
1185669817.Vfd00I18012M795756.mail
johndoe@mail:~/Maildir/new$ <span class="h">cat 1185669817.Vfd00I18012M795756.mail</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

johndoe@mail:~/Maildir/new$
</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/mail.log.</em></div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-smtp-server-howto-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mail Server Setup Guide for RHEL/CentOS 6</title>
		<link>http://www.linuxmail.info/mail-server-setup-centos-6/</link>
		<comments>http://www.linuxmail.info/mail-server-setup-centos-6/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 13:12:04 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 6]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 6]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=407</guid>
		<description><![CDATA[How to setup a Linux mail server using Red Hat Enterprise Linux 6 or CentOS 6]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to setup an email server accessible using a POP3, IMAP or web browser client. It will also show you how to include virus scanning and spam tagging in the mail server. If you have an existing Active Directory or LDAP infrastructure, the last section will show you how to integrate it into your email server so you won&#8217;t have to maintain two sets of user accounts.</p>
<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>How to install Linux</h2>
<p>You can use either <a href="http://www.redhat.com">Red Hat Enterprise Linux 6</a> or <a href="http://www.centos.org">CentOS 6</a>. RHEL 6 can be purchased from <a href="http://www.redhat.com">Red Hat</a> and comes with support. CentOS 5 on the other hand can be downloaded <a href="http://isoredirect.centos.org/centos/6/isos/">here</a>.</p>
<div class="clearfix steps"><a href="/images/centos-6/boot.png"><img class="preview" alt="Boot" src="/images/centos-6/t-boot.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/how-to-install-centos-6-linux/">How to install CentOS 6.</a></div>
<div class="clearfix steps"><a href="/images/centos-6/welcome2.png"><img class="preview" alt="Welcome" src="/images/centos-6/t-welcome2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/how-to-setup-centos-6-linux/">How to setup CentOS 6.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To edit configuration files, you can use <a href="/vi-editor-tutorial/">vi editor</a> or install the GUI based gedit using the command</div>
<pre class="steps">
yum install gedit
</pre>
<h2 id="basic">How to install SMTP, POP3, IMAP and Webmail service</h2>
<p>Postfix will be providing the SMTP service, Dovecot will provide the POP3 and IMAP service, while Apache and SquirrelMail will provide the Webmail service.</p>
<div class="clearfix steps"><a href="/images/centos-6/service-config-2.png"><img class="preview" alt="Postfix service" src="/images/centos-6/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/postfix-smtp-server-howto-centos-6/">How to install and setup Postfix SMTP server.</a></div>
<div class="clearfix steps"><a href="/images/centos-6/service-config.png"><img class="preview" alt="Dovecot service" src="/images/centos-6/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/install-setup-dovecot-centos-6/">How to install and setup Dovecot POP3 and IMAP server.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/telnet-smtp-sasl.png"><img class="preview" alt="Telnet SMTP SASL" src="/images/centos-5/t-telnet-smtp-sasl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/postfix-smtp-auth-dovecot-sasl-centos-6/">Configure Postfix SMTP Authentication using Dovecot SASL.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail.png"><img class="preview" alt="Squirrelmail" src="/images/centos-5/t-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. <a href="/squirrelmail-webmail-setup-howto-centos-6/">How to install and setup SquirrelMail WebMail.</a></div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. <a href="/firewall-configuration-centos-6/">How to configure the firewall.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />Before deploying your new mail server, see <a href="/mail-server-checklist/">Mail Server Checklist</a> to ensure your new mail server will have a good sending reputation and can be trusted.</div>
<h2>How to create mailboxes and do miscellaneous tasks</h2>
<p>This section will show you to do tasks like creating mailboxes, aliases, setting quota etc.</p>
<div class="clearfix steps"><a href="/images/centos-5/create-new-user.png"><img class="preview" alt="Create New User" src="/images/centos-5/t-create-new-user.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/how-to-add-remove-user-accounts-centos-5/">To create a mailbox, just create a new user account.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />To avoid user account related problems, do not use uppercase letters when creating user names.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-aliases.png"><img class="preview" alt="Edit /etc/aliases" src="/images/centos-5/t-edit-aliases.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-aliases-mailing-list/">How to setup a mailing list or proxy address in Postfix.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-out-of-office.png"><img class="preview" alt="SquirrelMail Out of Office" src="/images/centos-5/t-squirrelmail-out-of-office.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-vacation-autoresponder/">How to configure Postfix to auto respond with vacation messages.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/edit-vquota.png"><img class="preview" alt="Edit vquota" src="/images/centos-5/t-edit-vquota.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-quota/">How to assign a mailbox quota in Postfix.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-main.png"><img class="preview" alt="Webmin" 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/">Install Webmin</a> if you want a web-based interface to manage your mail accounts.</div>
<h2 id="antivirus">How to add antivirus and antispam filtering</h2>
<p>We will be using Clam AntiVirus for virus scanning, SpamAssassin for the spam tagging and MailScanner to integrate them into Postfix.</p>
<div class="clearfix steps"><a href="/images/centos-5/mailscanner-download.png"><img class="preview" alt="Mailscanner" src="/images/centos-5/t-mailscanner-download.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/how-to-install-mailscanner-centos-5/">How to install MailScanner.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-4.png"><img class="preview" alt="Clamscan" src="/images/centos-5/t-terminal-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/how-to-install-clam-antivirus-centos-5/">How to install Clam AntiVirus (ClamAV).</a></div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-4.png"><img class="preview" alt="Mailscanner" src="/images/centos-5/t-service-config-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">MailScanner, ClamAV, SpamAssassin and Postfix Integration Guide.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can greatly reduce the volume of spam and viruses reaching your mail server if you are willing to give up something. If you are willing to have your mail delayed (time), install <a href="/postgrey-postfix-anti-spam/">Postgrey</a>. If you are willing to spend (money), get the <a href="/barracuda-anti-spam-firewall/">Barracuda Spam Firewall</a>.</div>
<h2 id="active-directory">How to integrate Active Directory/LDAP</h2>
<p>Integrating Active Directory/LDAP into your mail server will turn your Linux email server into a lean and mean Exchange like machine. And you won&#8217;t have to deal with Linux system accounts or edit configuration files for common tasks like creating mailboxes and mailing lists. And finally, you can provide your users with standard address book.</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/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/ad-group.png"><img class="preview" alt="Active Directory Group" src="/images/centos-5/t-ad-group.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-active-directory-ldap-lookup-howto/">How to use the Active Directory Distribution Group in Postfix.</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/getent-passwd.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-getent-passwd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/active-directory-integration-samba-centos-5/">Using Winbind to integrate Active Directory user accounts.</a><br />Another way to integrate Active Directory into your mail server. I highly recommend using the virtual user solution above instead of this one.</div>
<h2 id="mysql">How to integrate MySQL or support multiple domains</h2>
<p>To simplify administering multiple domains, the domains and mail accounts will be stored in MySQL and will be managed using Postfix Admin, a web based interface for handling domains, mailboxes and aliases.</p>
<div class="clearfix steps"><a href="/images/centos-5/postfixadmin-main.png"><img class="preview" alt="Postfix Admin" src="/images/centos-5/t-postfixadmin-main.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/postfix-admin-howto-centos-5/">How to install Postfix Admin.</a></div>
<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><a href="/multiple-domains-postfix-admin-centos-5/">MySQL virtual users in Postfix and Dovecot.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-auto-response.png"><img class="preview" alt="SquirrelMail Auto Response" src="/images/centos-5/t-squirrelmail-auto-response.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/squirrelmail-postfixadmin-plugin/">Install the SquirrelMail Postfix Admin Plugin</a> if you want to enable the users to set their own vacation message, forwarding and password.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/mail-server-setup-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix SMTP Authentication and Dovecot SASL for RHEL/CentOS 6</title>
		<link>http://www.linuxmail.info/postfix-smtp-auth-dovecot-sasl-centos-6/</link>
		<comments>http://www.linuxmail.info/postfix-smtp-auth-dovecot-sasl-centos-6/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 12:28:15 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 6]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 6]]></category>
		<category><![CDATA[SASL]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=406</guid>
		<description><![CDATA[How to enable Postfix SMTP Authentication using Dovecot SASL in Red Hat Enterprise Linux 6 or CentOS 6]]></description>
			<content:encoded><![CDATA[<p><strong>SMTP Authentication (SMTP Auth)</strong> provides an access control mechanism that can be used to allow legitimate users to relay mail while denying relay service to unauthorized users, such as spammers.</p>
<span id="more-406"></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>Configure Postfix and Dovecot</h2>
<div class="clearfix steps"><a href="/images/centos-6/edit-dovecot-master-conf.png"><img class="preview" alt="Edit dovecot 10-master.conf" src="/images/centos-6/t-edit-dovecot-master-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div>1. Edit the file <em>/etc/dovecot/conf.d/10-master.conf</em> and make sure your <em>service auth</em> section has the lines below.</div>
<div class="m">
<pre class="steps">
service auth {	
  unix_listener /var/spool/postfix/private/auth {
	mode = 0666
	user = postfix
	group = postfix
  }	
}
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-6/edit-dovecot-auth-conf.png"><img class="preview" alt="Edit dovecot 10-auth.conf" src="/images/centos-6/t-edit-dovecot-auth-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div>2. Edit the file <em>/etc/dovecot/conf.d/10-auth.conf</em> and update the line below.</div>
<div class="m">
<pre class="steps">
auth_mechanisms = plain login
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-dovecot-sasl.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-dovecot-sasl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Edit <em>/etc/postfix/main.cf</em>, find the keys below and change its values as follows or add it at the bottom of the file if the key (the word before the = sign) cannot be found.
<pre class="steps">
mynetworks = 127.0.0.0/8
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =  permit_mynetworks, 
    permit_sasl_authenticated, 
    reject_unauth_destination
broken_sasl_auth_clients = yes
</pre>
</div>
<div>The first line says trust only localhost, meaning only localhost can send email outside the network (relay). The last line is there to support old clients like Microsoft Outlook Express 4.0 and Microsoft Exchange 5.0 just in case someone is still using it.</div>
<div>&nbsp;</div>
<div>Lines starting with <tt>#</tt> are comments. Save the file after completing your changes.</div>
<div>&nbsp;</div>
<div class="clearfix steps"><a href="/images/centos-6/terminal-semodule-postfixdovecotsasl.png"><img class="preview" alt="Install postfixdovecotsasl.te" src="/images/centos-6/t-terminal-semodule-postfixdovecotsasl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Configure SELinux using the commands below. Here&#8217;s the content of <a href="/files/rhel6/postfixdovecotsasl.te">postfixdovecotsasl.te</a></div>
<div class="clearfix steps">
<pre class="steps">
wget linuxmail.info/files/rhel6/postfixdovecotsasl.te
checkmodule -M -m -o postfixdovecotsasl.mod postfixdovecotsasl.te
semodule_package -o postfixdovecotsasl.pp -m postfixdovecotsasl.mod
semodule -i postfixdovecotsasl.pp
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-6/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-6/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Restart the Dovecot and Postfix service. But if you installed MailScanner, restart MailScanner instead of Postfix. <a href="/how-to-start-stop-services-centos-6/">Learn how to restart services here.</a></div>
<h2 id="test-postfix">Test Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-5/telnet-smtp-sasl.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-telnet-smtp-sasl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>In a <strong>Terminal</strong> window, type in the highlighted commands below.</div>
<p>Sample postfix session</p>
<pre class="steps">
[root@mail ~]# <span class="h">telnet mail smtp</span>
</pre>
<p><img class="icon32x32 left" alt="Important" src="/images/emblem-important.png" />Replace <strong>mail</strong> with the name of your server. We should not use localhost since localhost is a trusted client ip address. And make sure the domain name you specified does not resolve to 127.0.0.1 which is the IP address of localhost.</p>
<pre class="steps">
Trying 192.168.0.1...
Connected to mail.acme.local (192.168.0.1).
Escape character is '^]'.
220 mail.acme.local ESMTP Postfix
<span class="h">ehlo localhost</span>
250-mail.acme.local
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
</pre>
<p>Note the new <tt>250-AUTH</tt> lines. See the old <a href="/postfix-smtp-server-howto-centos-6/#test-postfix">SMTP Telnet Test</a>.</p>
<pre class="steps">
<span class="h">mail from:&lt;johndoe&gt;</span>
250 2.1.0 Ok
<span class="h">rcpt to:&lt;test@example.com&gt;</span>
554 5.7.1 &lt;test@example.com&gt;: Relay access denied
</pre>
<p>It works, now to check if we can send it after authenticating.</p>
<pre class="steps">
<span class="h">auth plain AGpvaG5kb2UAcGFzc3dvcmQ=</span>
235 2.0.0 Authentication successful
<span class="h">rcpt to:&lt;test@example.com&gt;</span>
250 2.1.5 Ok
<span class="h">quit</span>
221 2.0.0 Bye
Connection closed by foreign host.
[root@mail ~]#
</pre>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can send to email addresses belonging to your domain without authentication. This is normal as it enables you to receive mail from the outside.</p>
<p>The gibberish text after <strong>AUTH PLAIN</strong> is the base64 encoded value of the user name <em>johndoe</em> and password <em>password</em>. You can generate your own base64 text using the form below.</p>
<form name="base64Form" action="">
<label for="username" style="display: block; width: 9em; float: left">User Name:</label><input type="text" name="username" id="username" style="width: 25em" /><br />
<label for="password" style="display: block; width: 9em; float: left">Password:</label><input type="password" name="password" id="password" style="width: 25em" /><br />
<br />
<input type="button" value="Encode" style="margin-left: 18em" onclick="document.base64Form.result.value=base64('\0' + document.base64Form.username.value + '\0' + document.base64Form.password.value);" /><br />
<br />
<label for="result" style="display: block; width: 9em; float: left">Result:</label><input type="text" name="result" id="result" readonly="readonly" style="width: 25em" />
<br /><br />
</form>
<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="/install-setup-dovecot-centos-6/">How to Setup Dovecot</a></div><div class="right">Next: <a href="/squirrelmail-webmail-setup-howto-centos-6/">How to Install SquirrelMail</a> &raquo;&raquo;</div>
<div class="clear">&nbsp;</div>
<script type="text/javascript">function base64(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i< input.length);return output;}</script>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-smtp-auth-dovecot-sasl-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewall Configuration Howto for RHEL/CentOS 6</title>
		<link>http://www.linuxmail.info/firewall-configuration-centos-6/</link>
		<comments>http://www.linuxmail.info/firewall-configuration-centos-6/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 07:17:40 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 6]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 6]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=405</guid>
		<description><![CDATA[How to configure the firewall in Red Hat Enterprise Linux 6 or CentOS 6]]></description>
			<content:encoded><![CDATA[<p>Red Hat Enterprise Linux 6 and its derivative CentOS 6 includes a graphical tool called <strong>Firewall Configuration</strong> for configuring the firewall options. This article describes how to use the Firewall Configuration tool to open up the ports necessary for providing an email server.</p>
<span id="more-405"></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>Firewall Configuration (GUI)</h2>
<p>This section describes how to use the <strong>Firewall Configuration</strong> tool to configure the firewall.</p>
<div class="clearfix steps"><a href="/images/centos-6/firewall-shortcut.png"><img class="preview" alt="Firewall Configuration Startup" src="/images/centos-6/t-firewall-shortcut.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>Firewall</em>. This will launch the <strong>Firewall Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-startup.png"><img class="preview" alt="Firewall" src="/images/centos-6/t-firewall-configuration-startup.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Click <em>Close</em> in the <strong>Firewall Configuration Startup</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-authenticate.png"><img class="preview" alt="Firewall Authenticate" src="/images/centos-6/t-firewall-authenticate.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type in the root password and click <em>Authenticate</em>.</div>
<div class="steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If the <strong>Firewall Configuration Startup</strong> window does not disappear after clicking <em>Close</em>, click the window behind it to bring the <strong>Authenticate</strong> window into the foreground.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. In the service list, check <em>Mail (SMTP)</em> and <em>WWW (HTTP)</em>.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-other-ports.png"><img class="preview" alt="Firewall Configuration - Other Ports" src="/images/centos-6/t-firewall-configuration-other-ports.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Click <em>Other Ports</em> and click <em>Add</em>.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-port.png"><img class="preview" alt="Firewall Configuration - Other Ports - Add" src="/images/centos-6/t-firewall-configuration-port.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Select <em>110 tcp pop3</em> and click <em>Ok</em>. Do the same for <em>143 tcp imap</em>.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-other-ports-2.png"><img class="preview" alt="Firewall Configuration - Other Ports" src="/images/centos-6/t-firewall-configuration-other-ports-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Finally, click <em>Apply</em> to save your changes.</div>
<h2>Firewall Configuration (TUI)</h2>
<p>This section describes how to use the <strong>Firewall Configuration</strong> text user interface (TUI) tool to configure the firewall.</p>
<div class="clearfix steps"><a href="/images/centos-6/terminal-system-config-firewall-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-terminal-system-config-firewall-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch the <strong>Firewall Configuration</strong> tool using the command below.
<pre class="steps">
system-config-firewall-tui
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In <strong>Firewall Configuration</strong> screen, press the <em>Customize</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-trusted-services-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration-trusted-services-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the service list, check <em>Mail (SMTP)</em> and <em>WWW (HTTP)</em>. Press <em>Forward</em> when you are done.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-other-ports-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration-other-ports-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Press <em>Add</em> to add a custom port.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-port-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration-port-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Type in <em>110</em> to the field <em>Port</em> and <em>tcp</em> to the field <em>Protocol</em>. Press <em>OK</em> when you are done. Do the same for <em>143:tcp</em>.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-other-ports-2-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration-other-ports-2-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. After adding the two ports press <em>Close</em>.</div>
<div class="clearfix steps"><a href="/images/centos-6/firewall-configuration-tui.png"><img class="preview" alt="Firewall Configuration" src="/images/centos-6/t-firewall-configuration-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. Finally, press <em>OK</em> and press <em>Yes</em> to confirm overriding of firewall configuration.</div>
<div class="clear">&nbsp;</div>
<div class="steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can see the list of service and port numbers using the command below.
<pre class="steps">
getent services
</pre>
</div>
<div class="left">&laquo;&laquo; Previous: <a href="/squirrelmail-webmail-setup-howto-centos-6/">How to Install SquirrelMail </a></div>
<div class="clear">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/firewall-configuration-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail Webmail Setup Howto for RHEL/CentOS 6</title>
		<link>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-centos-6/</link>
		<comments>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-centos-6/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 16:56:52 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 6]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 6]]></category>
		<category><![CDATA[SquirrelMail]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=404</guid>
		<description><![CDATA[How to install SquirrelMail Webmail in Red Hat Enterprise Linux 6 or CentOS 6]]></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-404"></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 SquirrelMail</h2>
<div class="clearfix steps"><a href="/images/centos-6/yum-repolist.png"><img class="preview" alt="Install EPEL" src="/images/centos-6/t-yum-repolist.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/add-epel-centos-6/">Install the EPEL repository package.</a></div>
<div class="clearfix steps"><a href="/images/centos-6/yum-install-squirrelmail.png"><img class="preview" alt="yum install squirrelmail" src="/images/centos-6/t-yum-install-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Install squirrelmail using the command below.
<pre class="steps">
yum install squirrelmail
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-6/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-6/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Start the <em>httpd</em> service. <a href="/how-to-start-stop-services-centos-6/">Learn how to start and stop services here.</a></div>
<h2 id="configure-squirrelmail">Configuring SquirrelMail</h2>
<div class="clearfix steps"><a href="/images/centos-5/sm-config.png"><img class="preview" alt="SquirrelMail Configuration" src="/images/centos-5/t-sm-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch the <strong>SquirrelMail Configuration</strong> utility using the command below.
<pre class="steps">
/usr/share/squirrelmail/config/conf.pl
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If your Terminal window has a white background, make sure that the colors are off by looking for the command <tt>Turn color on</tt>. If the command is <tt>Turn color off</tt>, type in C and press <em>Enter</em> to turn the colors off. This will ensure that you will be able to read all of the text.</div>
<div class="clearfix steps"><a href="/images/centos-5/sm-config-predefined.png"><img class="preview" alt="SquirrelMail Configuration" src="/images/centos-5/t-sm-config-predefined.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Type in <tt>D</tt> and press <em>Enter</em> to select the <strong>Set pre-defined settings for specific IMAP servers</strong> menu. Type in <tt>dovecot</tt> and press <em>Enter</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/sm-config-server-settings.png"><img class="preview" alt="SquirrelMail Configuration" src="/images/centos-5/t-sm-config-server-settings.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type in <tt>2</tt> and press <em>Enter</em> to select the <strong>Server Settings</strong> menu.</div>
<div class="clearfix steps"><a href="/images/centos-5/sm-config-server-settings-2.png"><img class="preview" alt="SquirrelMail Configuration" src="/images/centos-5/t-sm-config-server-settings-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Type in <tt>1</tt> and press <em>Enter</em> to select the <strong>Domain</strong> menu. Type in your domain name and press <em>Enter</em>. Save your changes and quit when you are done.</div>
<div id="selinux" class="clearfix steps"><a href="/images/centos-6/setsebool-httpd.png"><img class="preview" alt="setsebool httpd" src="/images/centos-6/t-setsebool-httpd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Type the commands below to enable SquirrelMail to function properly under SELinux.<pre class="steps">
setsebool httpd_can_network_connect on
setsebool httpd_can_sendmail on
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />I recommend installing the <a href="/retrieveuserdata/">Retrieve User Data plugin</a> so the user&#8217;s name will appear whenever he or she sends an email in SquirrelMail.</div>
<h2>Testing SquirrelMail</h2>
<div class="clearfix steps"><a href="/images/centos-5/firefox.png"><img class="preview" alt="Firefox" src="/images/centos-5/t-firefox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click the browser icon at the top near the <em>System</em> menu to launch the <strong>Firefox</strong> web browser.</div>
<div class="clearfix steps"><a href="/images/centos-6/sq-configtest-php.png"><img class="preview" alt="SquirrelMail configtest" src="/images/centos-6/t-sq-configtest-php.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the address box, type in <em>http://localhost/webmail/src/configtest.php</em> and press <em>Enter</em>. Check for any errors.</div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. 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-5/squirrelmail-2.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/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>
<div class="clearfix steps">&nbsp;</div>
<h2 id="virtual-host">Relocating SquirrelMail into the domain root</h2>
<p>By default, SquirrelMail is located in the <em>/webmail</em> of your domain. If you prefer to access SquirrelMail from the root of your domain, follow the steps below.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-sqroot-conf.png"><img class="preview" alt="Edit SQRoot.conf" src="/images/centos-5/t-edit-sqroot-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Create the file <em>/etc/httpd/conf.d/sqroot.conf</em> containing the lines below.
<pre class="steps">
&lt;VirtualHost *:80&gt;
DocumentRoot /usr/share/squirrelmail
&lt;/VirtualHost&gt;
</pre>
</div></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you are using SSL and you want to force users to use SSL, add the <em>Redirect</em> directive inside the <em>VirtualHost</em> section to redirect browsers to the secured version. See the example below.</div>
<pre class="steps">
redirect permanent / https://mail.acme.local
</pre>
<div class="clearfix steps"><a href="/images/centos-6/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-6/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Restart the httpd service. <a href="/how-to-start-stop-services-centos-6/">Learn how to restart services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-4.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-squirrelmail-4.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Now try browsing <em>http://localhost</em></div>
<div class="clearfix steps">&nbsp;</div>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-customized-login.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-squirrelmail-customized-login.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/customize-squirrelmail-login-page/">How to customize the login page.</a></div>
<div class="clearfix steps"><a href="/images/windows-xp/https-squirrelmail.png"><img class="preview" alt="SquirrelMail" src="/images/windows-xp/t-https-squirrelmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/securing-squirrelmail-using-ssl/">How to secure SquirrelMail using SSL.</a></div>
<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="left">&laquo;&laquo; Previous: <a href="/postfix-smtp-auth-dovecot-sasl-centos-6/">How to Setup SMTP Auth</a></div><div class="right">Next: <a href="/firewall-configuration-centos-6/">How to Configure the Firewall</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-webmail-setup-howto-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.284 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-04 12:44:39 -->
<!-- Compression = gzip -->
