<?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>Mon, 30 Aug 2010 09:09:11 +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>File Management in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/file-management-centos-5/</link>
		<comments>http://www.linuxmail.info/file-management-centos-5/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 13:35:55 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=393</guid>
		<description><![CDATA[This article describes how to manage your files in Red Hat Enterprise Linux 5 or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to manage your files in Red Hat Enterprise Linux 5 or CentOS 5.</p>
<span id="more-393"></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>File Management (GUI)</h2>
<p>Managing files in GUI mode is a simple as launching the <strong>File Browser</strong>.</p>
<div class="clearfix steps"><a href="/images/centos-5/file-browser-shortcut.png"><img class="preview" alt="File Browser" src="/images/centos-5/t-file-browser-shortcut.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Tools</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-5/file-browser.png"><img class="preview" alt="File Browser" src="/images/centos-5/t-file-browser.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. From the <strong>File Browser</strong> tool you can now perform your desired file operation.</div>
<h2>File Management (Console)</h2>
<p>Below are the console commands to manage files. This is just an overview of the commands available, to get more information, type in <tt><strong>man</strong> <em>command</em></tt> to get the manual for the specified command.</p>
<h3>Common Operations</h3>
<ul class="spaced">
<li><tt><strong>cp -a</strong> <em>source</em> <em>dest</em></tt><br />copy the specified file or directory</li>
<li><tt><strong>rm -rf</strong> <em>name</em></tt><br />delete the specified file or directory and all of its contents</li>
<li><tt><strong>mv</strong> <em>old</em> <em>new</em></tt><br />move a file or directory to a new location. Also used to rename a file or directory</li>
<li><tt><strong>ln -s</strong> <em>source</em> <em>linkname</em></tt><br />create a symbolic link to the specified file or directory</li>
</ul>
<h3>Directory Operations</h3>
<ul class="spaced">
<li><tt><strong>cd</strong></tt><br />change to the home directory</li>
<li><tt><strong>cd</strong> <em>path</em></tt><br />change to the specified directory</li>
<li><tt><strong>pwd</strong></tt><br />print working directory</li>
<li><tt><strong>ls</strong></tt><br />list directory</li>
<li><tt><strong>mkdir</strong> <em>name</em></tt><br />create the specified directory</li>
<li><tt><strong>rmdir</strong> <em>name</em></tt><br />delete the specified directory. Directory should be empty</li>
</ul>
<h3>File Operations</h3>
<ul class="spaced">
<li><tt><strong>chown</strong> <em>owner</em> <em>file</em></tt><br />change the file owner to the specified user</li>
<li><tt><strong>chmod</strong> <em>permissions</em> <em>files</em></tt><br />change the file permissions</li>
<li><tt><strong>cat</strong> <em>name</em></tt><br />shows the file content</li>
<li><tt><strong>more</strong> <em>name</em></tt><br />shows the file content a few screens at a time</li>
<li><tt><strong>less</strong> <em>name</em></tt><br />shows the file content similar to how vi displays a file</li>
<li><tt><strong>vi</strong> <em>name</em></tt><br />edit the specified file. <a href="/vi-editor-tutorial/">Learn how to use the vi editor</a></li>
<li><tt><strong>head</strong> <em>name</em></tt><br />shows the first few lines of a file</li>
<li><tt><strong>tail</strong> <em>name</em></tt><br />shows the last few lines of a file</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/file-management-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Network Device in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/configure-network-device-centos-5/</link>
		<comments>http://www.linuxmail.info/configure-network-device-centos-5/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 07:56:59 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=391</guid>
		<description><![CDATA[This article describes how to configure network devices in Red Hat Enterprise Linux or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p>Red Hat Enterprise Linux 5 and its derivative CentOS 5, includes tools to configure the network device. This article describes how to configure network devices in Red Hat Enterprise Linux or CentOS 5.</p>
<span id="more-391"></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 Network Device (GUI)</h2>
<p>This section describes how to configure the network device using GUI tools.</p>
<div class="clearfix steps"><a href="/images/centos-5/system-network-shortcut.png"><img class="preview" alt="Network" src="/images/centos-5/t-system-network-shortcut.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>System</em>, select <em>Administration</em> then click <em>Network</em>. This will launch the <strong>Network Configuration</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/network-configuration.png"><img class="preview" alt="Network Configuration" src="/images/centos-5/t-network-configuration.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Select the network device you want to modify and click <em>Edit</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/ethernet-device.png"><img class="preview" alt="Ethernet Device" src="/images/centos-5/t-ethernet-device.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. In the <strong>Ethernet Device</strong> window, apply your changes and click <em>OK</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/network-configuration-dns.png"><img class="preview" alt="Edit DNS" src="/images/centos-5/t-network-configuration-dns.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click the <em>DNS</em> tab and apply your DNS settings.</div>
<div class="clearfix steps"><a href="/images/centos-5/network-configuration-save.png"><img class="preview" alt="Save" src="/images/centos-5/t-network-configuration-save.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. To save your changes, click the <em>File</em> and click <em>Save</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/network-configuration-deactivate.png"><img class="preview" alt="Restart" src="/images/centos-5/t-network-configuration-deactivate.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. To effect your changes, click the <em>Devices</em> tab. Next, select the device and click <em>Deactivate</em> then click <em>Activate</em> to reactivate the device.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-hosts.png"><img class="preview" alt="Edit Hosts" src="/images/centos-5/t-edit-hosts.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>7. <a href="/configure-host-name-lookup-centos-5/">Update your <em>/etc/hosts</em> file.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Although the <strong>Network Configuration</strong> tool has a feature to update the <em>/etc/hosts</em> file, it is more reliable to edit it directly instead.</div>
<h2>Configure Network Device (TUI)</h2>
<p>This section describes how to configure the network device using text user interface (TUI) tools.</p>
<div class="clearfix steps"><a href="/images/centos-5/network-configuration-tui.png"><img class="preview" alt="Network Configuration" src="/images/centos-5/t-network-configuration-tui.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Launch the <strong>Network Configuration</strong> TUI tool using the command below. Then apply the necessary changes to your network device.
<pre class="steps">
system-config-network-tui
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-network-restart.png"><img class="preview" alt="Restart" src="/images/centos-5/t-service-network-restart.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. To effect your changes, restart the network service using the command below.
<pre class="steps">
service network restart
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-hosts.png"><img class="preview" alt="Edit Hosts" src="/images/centos-5/t-edit-hosts.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/configure-host-name-lookup-centos-5/">Update your <em>/etc/hosts</em> file.</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/configure-network-device-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Host Name Lookup in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/configure-host-name-lookup-centos-5/</link>
		<comments>http://www.linuxmail.info/configure-host-name-lookup-centos-5/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 01:15:37 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>
		<category><![CDATA[System Administration]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=389</guid>
		<description><![CDATA[This article describes how to edit the static host name lookup table file /etc/hosts in Red Hat Enterprise Linux 5 or CentOS 5.]]></description>
			<content:encoded><![CDATA[<p>Before starting to use Red Hat Enterprise Linux 5 or CentOS 5, the static host name table lookup file /etc/hosts must be corrected first. The steps below describes how to do this.</p>
<span id="more-389"></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 Hosts</h2>
<div class="clearfix steps"><a href="/images/centos-5/file-browser.png"><img class="preview" alt="File Browser" src="/images/centos-5/t-file-browser.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Click <em>Applications</em>, select <em>System Tools</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-5/file-browser-etc.png"><img class="preview" alt="File Browser" src="/images/centos-5/t-file-browser-etc.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. If you don&#8217;t see the Location field, click the notepad button to toggle to text-based location bar.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-hosts.png"><img class="preview" alt="Edit hosts" src="/images/centos-5/t-edit-hosts.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Locate and double click on the file <em>hosts</em> to open it for editing. Update the content similar to the lines below.
<pre class="steps">
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.0.4     mail.acme.local mail
</pre>
Replace the last line with your own <em>IP address</em>, <em>fully qualified domain name</em> and <em>host name</em>.
</div>
<h2>Test the Host Name Lookup</h2>
<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>1. Click <em>Applications</em>, select <em>Accessories</em>, and click <em>Terminal</em>. This will launch the <strong>Terminal</strong> window.</div>
<div class="clearfix steps"><a href="/images/centos-5/ping-localhost.png"><img class="preview" alt="ping localhost" src="/images/centos-5/t-ping-localhost.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. In the terminal window, type in the command below.
<pre class="steps">
ping localhost
</pre>
You should see <em>localhost.localdomain</em> and <em>127.0.0.1</em></div>
<div class="clearfix steps"><a href="/images/centos-5/ping-mail.png"><img class="preview" alt="ping localhost" src="/images/centos-5/t-ping-mail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Next, type in the command below.
<pre class="steps">
ping mail
</pre>
Replace <em>mail</em> with your own hostname. You should see your fully qualified domain name and ip address.</div>
<div class="left">&laquo;&laquo; Previous: <a href="/how-to-setup-centos-5-linux/">How to Setup CentOS 5 Linux</a></div><div class="right">Next: <a href="/postfix-smtp-server-howto-centos-5/">How to Setup Postfix SMTP Server</a> &raquo;&raquo;</div>
<div style="clear: both">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/configure-host-name-lookup-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail and MySQL</title>
		<link>http://www.linuxmail.info/squirrelmail-mysql/</link>
		<comments>http://www.linuxmail.info/squirrelmail-mysql/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 16:29:55 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[SquirrelMail]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=387</guid>
		<description><![CDATA[This article describes how to configure SquirrelMail to use a MySQL address book.]]></description>
			<content:encoded><![CDATA[<p>SquirrelMail can use a database backend like MySQL to store address books and preferences. This article describes how to configure SquirrelMail to use a MySQL address book.</p>
<span id="more-387"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/terminal-yum-install-mysql.png"><img class="preview" alt="yum install" src="/images/centos-5/t-terminal-yum-install-mysql.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Install the requirements using the command below.
<pre class="steps">
yum install mysql-server php-pear-DB
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Start the <em>mysqld</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/create-squirrelmail-db.png"><img class="preview" alt="Create Postfix Admin db" src="/images/centos-5/t-create-squirrelmail-db.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Launch the MySQL command line tool using the command below.
<pre class="steps">
mysql -u root -p
</pre>
The default root password of MySQL is a blank password. Next, create a new MySQL database for SquirrelMail using the commands below.
<pre class="steps">
mysql> CREATE DATABASE squirrelmail;
mysql> CREATE USER squirrelmail@localhost IDENTIFIED BY 'your_password';
mysql> GRANT ALL PRIVILEGES ON squirrelmail.* TO squirrelmail;
mysql> USE squirrelmail;
mysql> CREATE TABLE address (
  owner varchar(128) DEFAULT '' NOT NULL,
  nickname varchar(16) DEFAULT '' NOT NULL,
  firstname varchar(128) DEFAULT '' NOT NULL,
  lastname varchar(128) DEFAULT '' NOT NULL,
  email varchar(128) DEFAULT '' NOT NULL,
  label varchar(255),
  PRIMARY KEY (owner,nickname),
  KEY firstname (firstname,lastname)
);
mysql> CREATE TABLE global_abook (
  owner varchar(128) DEFAULT '' NOT NULL,
  nickname varchar(16) DEFAULT '' NOT NULL,
  firstname varchar(128) DEFAULT '' NOT NULL,
  lastname varchar(128) DEFAULT '' NOT NULL,
  email varchar(128) DEFAULT '' NOT NULL,
  label varchar(255),
  PRIMARY KEY (owner,nickname),
  KEY firstname (firstname,lastname)
);
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-config-database.png"><img class="preview" alt="yum install" src="/images/centos-5/t-squirrelmail-config-database.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Configure SquirrelMail the command below.
<pre class="steps">
/usr/share/squirrelmail/config/conf.pl
</pre>
</div>
<p>Select menu 9, Database and update the values of the following.</p>
<ul>
<li><strong>DSN for Address Book</strong> : mysql://squirrelmail:password@localhost/squirrelmail</li>
<li><strong>DSN for Global Address Book</strong> : mysql://squirrelmail:password@localhost/squirrelmail</li>
<li><strong>Allow writing into Global Address Book</strong> : true</li>
<li><strong>Allow listing of Global Address Book</strong> : true</li>
</ul>
<p>Then save your changes. Your address book should now be stored in MySQL.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static DB Virtual Users in Postfix and Dovecot</title>
		<link>http://www.linuxmail.info/postfix-dovecot-static-db/</link>
		<comments>http://www.linuxmail.info/postfix-dovecot-static-db/#comments</comments>
		<pubDate>Sat, 29 May 2010 05:44:44 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=385</guid>
		<description><![CDATA[This article describes how to use a text file or static db file as the source for user accounts in Postfix and Dovecot.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to use a text file or static db file as the source for user accounts in Postfix and Dovecot. This is suitable for very simple mail account requirements. For larger implementations, check out the <a href="/multiple-domains-postfix-admin-centos-5/">MySQL virtual accounts</a> or <a href="/postfix-dovecot-ldap-centos-5/">Active Directory/LDAP virtual accounts</a>.</p>
<span id="more-385"></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>Create the Virtual Mail User Account</h2>
<div class="clearfix steps"><a href="/images/centos-5/create-user-vmail.png"><img class="preview" alt="Create user vmail" src="/images/centos-5/t-create-user-vmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Create a new user, we will call it <em>vmail.</em> Change the <em>Login Shell</em> to <em>/sbin/nologin</em>, this user account should not be used for logging in. <a href="/how-to-add-remove-user-accounts-centos-5/">Learn how to use the User Manager application here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-vmail.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-vmail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Take note of the <em>User ID</em> and <em>Home Directory</em> of vmail.</div>
<div class="clearfix steps"><a href="/images/centos-5/user-manager-vmail-groups.png"><img class="preview" alt="User Manager" src="/images/centos-5/t-user-manager-vmail-groups.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click the <em>Groups</em> tab and now note down the <em>Group ID</em>  of vmail. We&#8217;ll be needing all of them later.</div>
<h2>Configure Postfix for Virtual User Accounts</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-virtual-2.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-virtual-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the postfix configuration file <em>/etc/postfix/main.cf</em> and edit the line below</div>
<pre class="steps">
mydestination = $myhostname, localhost.$mydomain, localhost
</pre>
<p>and add the lines below</p>
<pre class="steps">
virtual_mailbox_domains = $mydomain
virtual_mailbox_base = /home/vmail/
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_uid_maps = static:501
virtual_gid_maps = static:501
</pre>
<p><em>virtual_mailbox_base</em>, <em>virtual_uid_maps</em> and <em>virtual_gid_maps</em> should contain the home directory, user id and group id of vmail respectively.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-vmailbox.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-vmailbox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Create the file <em>/etc/postfix/vmailbox</em> containing the mapping from an email address to a mailbox path relative to virtual_mailbox_base. See the example below.
<div class="m">
<pre class="steps">
johndoe@acme.local johndoe/Maildir/
janedoe@acme.local janedoe/Maildir/
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-vmailbox.png"><img class="preview" alt="postmap vmailbox" src="/images/centos-5/t-postmap-vmailbox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Type in the command below to generate the static db that will be used for the lookup.
<pre class="steps">
postmap /etc/postfix/vmailbox
</pre>
</div></div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the Postfix or MailScanner service if you have installed MailScanner. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Try sending an email. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a>. New mails should now be stored under the path specified in virtual_mailbox_base.</div>
<h2>Configure Dovecot Virtual User Accounts</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-dovecot-conf-virtual.png"><img class="preview" alt="Edit dovecot.conf" src="/images/centos-5/t-edit-dovecot-conf-virtual.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/dovecot.conf</em> and change the value of the following keys below
<div class="m">
<pre class="steps">
passdb static {
  args = /etc/dovecot-passdb
}

userdb static {
  args = uid=501 gid=501 home=/home/vmail/%u
}
</pre>
</div>
</div>
<p><em>uid</em>, <em>gid</em> and <em>home</em> should contain the user id, group id and home directory respectively of the vmail user account.</p>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Make sure comment out all the other <em>passdb</em> and <em>userdb</em> sections to avoid any conflicts.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-dovecot-passdb.png"><img class="preview" alt="Edit dovecot-passdb" src="/images/centos-5/t-edit-dovecot-passdb.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Create the file <em>/etc/dovecot-passdb</em> containing the password of a user name. See the example below.
<div class="m">
<pre class="steps">
johndoe:{PLAIN}secret
janedoe:{HMAC-MD5}dd59f669267e9bb13d42a1ba57c972c5b13a4b2ae457c9ada803dc7d8bae4ab
</pre>
</div>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />You can generate a hash password using the <tt>dovecotpw</tt> command.</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-3.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Restart the dovecot service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. <a href="/install-setup-dovecot-centos-5/#test-dovecot">Test Dovecot using Telnet</a>. You should be able to read the recently sent mail which was stored in a new location.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-dovecot-static-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SquirrelMail Howtos</title>
		<link>http://www.linuxmail.info/squirrelmail-howtos/</link>
		<comments>http://www.linuxmail.info/squirrelmail-howtos/#comments</comments>
		<pubDate>Tue, 18 May 2010 12:25:06 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[SquirrelMail]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=384</guid>
		<description><![CDATA[This article contains a collection of howtos for SquirrelMail.]]></description>
			<content:encoded><![CDATA[<p>These are the collection of SquirrelMail howtos available on this site.</p>
<span id="more-384"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/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><a href="/squirrelmail-webmail-setup-howto-in-centos-5/">How to install SquirrelMail</a></div>
<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/">Customize login page</a></div> 
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-captcha.png"><img class="preview" alt="SquirrelMail" src="/images/centos-5/t-squirrelmail-captcha.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/squirrelmail-captcha/">CAPTCHA in login page</a></div>
<div class="clearfix steps"><a href="/images/windows-xp/https-squirrelmail.png"><img class="preview" alt="HTTPS 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/">Using SSL with SquirrelMail</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/">Automatically update name and email address</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/">Change password 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/">Active Directory/LDAP Addressbook</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squirrelmail-howtos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix Restrict Senders or Recipients</title>
		<link>http://www.linuxmail.info/postfix-restrict-sender-recipient/</link>
		<comments>http://www.linuxmail.info/postfix-restrict-sender-recipient/#comments</comments>
		<pubDate>Mon, 17 May 2010 12:52:16 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=383</guid>
		<description><![CDATA[This article describes how to configure Postfix to restrict mails from a sender, to a recipient, or both.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to configure Postfix to restrict mails from a sender, to a recipient, or both.</p>
<span id="more-383"></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>Restrict Sender</h2>
<p>This section describes how to allow/reject a specific sender or a specific domain.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-sender-restrict.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-sender-restrict.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> and add the line below.
<pre class="steps">
smtpd_sender_restrictions = 
  check_sender_access hash:/etc/postfix/sender_access
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-sender-access.png"><img class="preview" alt="Edit sender_access" src="/images/centos-5/t-edit-sender-access.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Create the file <em>/etc/postfix/sender_access</em> and review the example below.
<pre class="steps">
janedoe@acme.local  REJECT
bugsbunny@acme.com  OK
acme.com            REJECT
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-sender-access.png"><img class="preview" alt="Edit sender_access" src="/images/centos-5/t-postmap-sender-access.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Type in the command below in a terminal window to create a hash file.
<pre class="steps">
postmap /etc/postfix/sender_access
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the Postfix or MailScanner service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>
<h2>Restrict Recipient</h2>
<p>This section describes how to allow/reject a specific recipient or a specific domain.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-recipient-restrict.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-recipient-restrict.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.</div>
<pre class="steps">
smtpd_recipient_restrictions = 
  check_recipient_access hash:/etc/postfix/recipient_access,
  reject_unauth_destinations
</pre>
<div class="clearfix steps"><a href="/images/centos-5/edit-recipient-access.png"><img class="preview" alt="Edit recipient_access" src="/images/centos-5/t-edit-recipient-access.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Create the file <em>/etc/postfix/recipient_access</em> and review the example below.
<pre class="steps">
janedoe@acme.local  REJECT
bugsbunny@acme.com  OK
acme.com            REJECT
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-recipient-access.png"><img class="preview" alt="postmap recipient_access" src="/images/centos-5/t-postmap-recipient-access.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Type in the command below in a terminal window to create a hash file.
<pre class="steps">
postmap /etc/postfix/recipient_access
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the Postfix or MailScanner service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>
<h2>Restrict Sender and Recipient</h2>
<p>This section describes how to restrict both the sender and recipient. Example usage of this is when you have a private domain which should not be allowed to send to the internet.</p> 
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-restriction-classes.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-restriction-classes.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 lines below.</div>
<pre class="steps">
smtpd_recipient_restrictions = 
  check_sender_access hash:/etc/postfix/sender_access,
  reject_unauth_destinations

smtpd_restriction_classes = local_only
local_only = check_recipient_access hash:/etc/postfix/local_domains, 
  reject
</pre>
<div class="clearfix steps"><a href="/images/centos-5/edit-sender-access-local-only.png"><img class="preview" alt="Edit sender_access" src="/images/centos-5/t-edit-sender-access-local-only.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Create the file <em>/etc/postfix/sender_access</em> and review the example below.
<pre class="steps">
acme.local  local_only
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-local-domains.png"><img class="preview" alt="Edit local_domains" src="/images/centos-5/t-edit-local-domains.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Create the file <em>/etc/postfix/local_domains</em> and review the example below.
<pre class="steps">
acme.local  OK
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-sender-access.png"><img class="preview" alt="Edit sender_access" src="/images/centos-5/t-postmap-sender-access.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">4. Type in the command belows in a terminal window to create the hash files.
<pre class="steps">
postmap /etc/postfix/sender_access
postmap /etc/postfix/local_domains
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Restart the Postfix or MailScanner service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-restrict-sender-recipient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a Disclaimer to Outgoing Postfix Emails</title>
		<link>http://www.linuxmail.info/postfix-disclaimer/</link>
		<comments>http://www.linuxmail.info/postfix-disclaimer/#comments</comments>
		<pubDate>Sun, 16 May 2010 10:55:14 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[MailScanner]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=382</guid>
		<description><![CDATA[This article describes how to use MailScanner to add a disclaimer message to outgoing mails in Postfix.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to use MailScanner to add a disclaimer message to outgoing mails in Postfix. Make sure <a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">MailScanner is integrated into Postfix</a> and tested to be working.</p>
<span id="more-382"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/edit-inline-sig-txt.png"><img class="preview" alt="Inline Signature" src="/images/centos-5/t-edit-inline-sig-txt.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/MailScanner/reports/en/inline.sig.txt</em> and <em>/etc/MailScanner/reports/en/inline.sig.html</em> and replace it with your own message.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-mailscanner-conf-sig.png"><img class="preview" alt="MailScanner Config" src="/images/centos-5/t-edit-mailscanner-conf-sig.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/MailScanner/MailScanner.conf</em> and update the line below.</div>
<pre class="steps">
Sign Clean Messages = /etc/MailScanner/rules/signing.rules
</pre>
<div class="clearfix steps"><a href="/images/centos-5/edit-signing-rules.png"><img class="preview" alt="signing.rules" src="/images/centos-5/t-edit-signing-rules.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Create the file <em>/etc/MailScanner/rules/signing.rules</em> and add the lines below.
<pre class="steps">
From:      *@acme.local  yes
FromOrTo:  default       no
</pre>
</div>
Replace <strong>acme.local</strong> with your own domain name.
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="CentOS 5 Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the MailScanner service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/sm-message-sig.png"><img class="preview" alt="SquirrelMail Message" src="/images/centos-5/t-sm-message-sig.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. You should now see your disclaimer message on outbound emails.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-disclaimer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup Postfix Mailbox</title>
		<link>http://www.linuxmail.info/backup-postfix-mailbox/</link>
		<comments>http://www.linuxmail.info/backup-postfix-mailbox/#comments</comments>
		<pubDate>Sun, 09 May 2010 12:36:48 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=381</guid>
		<description><![CDATA[This article describes how to backup and restore your Postfix mailboxes using the tar command.]]></description>
			<content:encoded><![CDATA[<p>Backing up your mailboxes is a simple as copying your mailbox folder. This article describes how to backup and restore your Postfix mailboxes using the tar command.</p>
<span id="more-381"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<div class="clearfix steps"><a href="/images/centos-5/postfix-backup-mailbox.png"><img class="preview" alt="Backup mailbox" src="/images/centos-5/t-postfix-backup-mailbox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">To backup the mailbox, type the command below in a terminal window.
<pre class="steps">
tar cvzf mailbox-`date +%F_%H%M`.tar.gz /home/vmail
</pre>
</div>
<p>Replace <strong>/home/vmail</strong> with the location of your own mailbox.</p>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postfix-restore-mailbox.png"><img class="preview" alt="Restore mailbox" src="/images/centos-5/t-postfix-restore-mailbox.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">To restore the mailbox, type the command below in a terminal window.
<pre class="steps">
tar xvzf mailbox.tar.gz -C /
</pre>
</div>
<p>Replace <strong>mailbox.tar.gz</strong> with the name of your backup file.</p>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Ideally, the Postfix and Dovecot configurations should be documented, or better yet, maintained using a change configuration process. But you can also use the procedure above to backup the <em>/etc</em> directory although it is not recommended since you may restore your configuration on an updated OS.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/backup-postfix-mailbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix SMTP Gateway</title>
		<link>http://www.linuxmail.info/postfix-smtp-gateway/</link>
		<comments>http://www.linuxmail.info/postfix-smtp-gateway/#comments</comments>
		<pubDate>Sun, 02 May 2010 23:12:21 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=380</guid>
		<description><![CDATA[This article describes how to configure Postfix as an SMTP gateway.]]></description>
			<content:encoded><![CDATA[<p>To improve security or offload services like virus and spam checking, you may want to implement an SMTP gateway. This article describes how to configure Postfix as an SMTP gateway.</p>
<span id="more-380"></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>

<img src="/images/smtp-gateway.png" alt="SMTP Gateway" style="width: 480px; height: 180px; margin: auto; display: block" />
<h2>DMZ Mail Server</h2>
<p>The DMZ mail server forwards the inbound mail to the internal mail server and delivers the outbound mail.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-relay.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-relay.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit <em>/etc/postfix/main.cf</em> and update the lines below.
<pre class="steps">
mydestination = 
local_recipient_maps = 
local_transport = error:local mail delivery is disabled

mynetworks = 127.0.0.0/8 192.168.1.3
relay_domains = example.com
transport_maps = hash:/etc/postfix/transport
smtpd_recipient_restrictions = permit_mynetworks
    reject_unauth_destination
</pre>
</div>
<p>The first three lines above disables local delivery. Replace <em>192.168.1.3</em> with the IP address of your internal mail server.</p>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-transport-relay.png"><img class="preview" alt="Edit transport" src="/images/centos-5/t-edit-transport-relay.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Edit the file <em>/etc/postfix/transport</em> and add the line below.
<pre class="steps">
example.com :[192.168.1.3]
</pre>
<p>Replace <em>192.168.1.3</em> with the hostname or IP address of your internal mail server.</p>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-transport-relay.png"><img class="preview" alt="postmap transport" src="/images/centos-5/t-postmap-transport-relay.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type the line command below to create a transport database file.
<pre class="steps">
postmap /etc/postfix/transport
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the Postfix or MailScanner service if you have installed it. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. You should now be able to send mails to your DMZ mail server and those mails will be automatically relayed to your internal mail server. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a>.</div>
<h2>Internal Mail Server</h2>
<p>The internal mail server holds the mailbox and forward all outbound mail to the DMZ mail server for delivery. Make sure you have <a href="/#basic">working Postfix mail server</a>.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-relay.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-relay.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit <em>/etc/postfix/main.cf</em> and update the lines below.
<pre class="steps">
transport_maps = hash:/etc/postfix/transport
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-transport-gateway.png"><img class="preview" alt="Edit transport" src="/images/centos-5/t-edit-transport-gateway.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Edit the file <em>/etc/postfix/transport</em> and add the lines below.
<pre class="steps">
example.com    :
.example.com   :
*              smtp:[192.168.3.2]
</pre>
<p>Replace <em>192.168.3.2</em> with the hostname or IP address of your DMZ mail server.</p>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-transport-relay.png"><img class="preview" alt="postmap transport" src="/images/centos-5/t-postmap-transport-relay.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type the line command below to create a transport database file.
<pre class="steps">
postmap /etc/postfix/transport
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config-2.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Restart the Postfix or MailScanner service if you have installed it. <a href="/how-to-start-stop-services-centos-5/">Learn how to start and stop services here.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Your outbound mail should now be sent the DMZ mail server. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a>.</div>
<h2>SMTP Gateway Notes</h2>
<p>It is easy to setup an SMTP gateway mail server but you also need to consider the items below.</p>
<ul>
<li><p><strong>Add Antivirus and Antispam Filtering.</strong> Since the DMZ mail server is exposed on the internet, make sure it has <a href="/#antivirus">anti-virus and anti-spam filtering</a>.</p></li>
<li><p><strong>Verify Recipient.</strong> If possible, you also need to apply the same recipient verification method you used in your internal mail server. This will allow your DMZ mail server to reject all invalid recipient address instead of having the internal mail server bounce the relayed emails with invalid recipients. Use the <em>relay_recipient_maps</em> setting in <em>/etc/postfix/main.cf</em> to specify the valid recipients.</p></li>
<li><p><strong>Use IP Address.</strong> By specifying the hostname or IP address in the transport file, the DNS MX lookup can be eliminated. Specifying the IP address will be even better since this will eliminate the need for any DNS lookup.</p></li>
<li><p><strong>Flush Mail Queue.</strong> You can force Postfix to immediately send all the mail in its queue by typing in the command below.</p>
<pre class="steps">
postfix flush
</pre>
</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-smtp-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.290 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-09-03 09:37:14 -->
<!-- Compression = gzip -->