<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Mail Server Setup and Howto Guide &#187; Postfix</title>
	<atom:link href="http://www.linuxmail.info/category/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Sat, 13 Feb 2010 23:39:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backup Incoming Mail in Postfix</title>
		<link>http://www.linuxmail.info/backup-mail-postfix/</link>
		<comments>http://www.linuxmail.info/backup-mail-postfix/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 03:59:27 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=373</guid>
		<description><![CDATA[This article will show you how to copy incoming mail to another mail server using the blind carbon copy (BCC) feature in Postfix. This capability is useful for backup, archive or disaster recovery purposes.


1. Edit the file /etc/postfix/main.cf and add the lines below.

recipient_bcc_maps = pcre:/etc/postfix/backup_bcc.pcre
transport_maps = hash:/etc/postfix/transport
smtp_generic_maps = pcre:/etc/postfix/generic.pcre


2. Create the file /etc/postfix/backup_bcc.pcre containing 

/^(.*)@acme\.local$/ [...]]]></description>
			<content:encoded><![CDATA[<p>This article will show you how to copy incoming mail to another mail server using the blind carbon copy (BCC) feature in Postfix. This capability is useful for backup, archive or disaster recovery purposes.</p>
<span id="more-373"></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-main-cf-backup.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-backup.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.
<pre class="steps">
recipient_bcc_maps = pcre:/etc/postfix/backup_bcc.pcre
transport_maps = hash:/etc/postfix/transport
smtp_generic_maps = pcre:/etc/postfix/generic.pcre
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-backup-bcc-pcre.png"><img class="preview" alt="Edit backup-bcc.pcre" src="/images/centos-5/t-edit-backup-bcc-pcre.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Create the file <em>/etc/postfix/backup_bcc.pcre</em> containing 
<pre class="steps">
/^(.*)@acme\.local$/ $1@backup.invalid
</pre>
<p>which tells Postfix to BCC emails to the domain <em>backup.invalid</em>.</p>
<table>
<tr><th>Email for</th><th>BCC to</th></tr>
<tr><td>johndoe@acme.local</td><td>johndoe@backup.invalid</td></tr>
<tr><td>janedoe@acme.local</td><td>janedoe@backup.invalid</td></tr>
</table>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-transport-backup.png"><img class="preview" alt="Edit transport" src="/images/centos-5/t-edit-transport-backup.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Edit the file <em>/etc/postfix/transport</em> and add the line below.
<pre class="steps">
backup.invalid smtp:[192.168.1.4]
</pre>
<p>Replace the IP address with the IP address of your backup mail server.</p>
<p>Next, type in the command below to convert it to a database file.</p>
<pre class="steps">
postmap /etc/postfix/transport
</pre>
<p>This tells Postfix to send all emails for the domain <em>backup.invalid</em> to the specified mail server.</p>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-generic-pcre.png"><img class="preview" alt="Edit generic.pcre" src="/images/centos-5/t-edit-generic-pcre.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">4. Create the file <em>/etc/postfix/generic.pcre</em> containing 
<pre class="steps">
/^(.*)@backup\.invalid$/ $1@acme.local
</pre>
<p>which tells Postfix to change the email address back to the original recipient before sending it out.</p>
<table>
<tr><th>BCC to</th><th>Email for</th></tr>
<tr><td>johndoe@backup.invalid</td><td>johndoe@acme.local</td></tr>
<tr><td>janedoe@backup.invalid</td><td>janedoe@acme.local</td></tr>
</table>
</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>5. 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"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />The destination <a href="/configure-postfix-accept-all-mails/">Postfix server can be configured to accept emails without validating the recipient.</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/maillog.</em></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/backup-mail-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix Backup MX</title>
		<link>http://www.linuxmail.info/postfix-backup-mx/</link>
		<comments>http://www.linuxmail.info/postfix-backup-mx/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 15:42:49 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=371</guid>
		<description><![CDATA[This article describes how to configure Postfix to act as a backup MX server.]]></description>
			<content:encoded><![CDATA[<p>Postfix can be configured to act as a backup mail server. A backup MX server accepts mail if the primary mail server goes down and will forward all mails in its queue if the primary mail server goes back online.</p>
<span id="more-371"></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/backup-mx.png" alt="Backup MX" style="width: 450px; height: 320px; margin: auto; display: block" />
<p>This article describes how to configure Postfix to act as a backup MX server.</p>
<h2>Configuring Postfix</h2>
<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 the file <em>/etc/postfix/main.cf</em> and update the lines below.
<pre class="steps">
mynetworks = 127.0.0.0/8
relay_domains = $mydestination acme.local
smtpd_recipient_restrictions = permit_mynetworks, 
    reject_unauth_destination
transport_maps = hash:/etc/postfix/transport
</pre>
<p>Replace <em>acme.local</em> with your own domain name.</p>
</div>
</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">
acme.local :[192.168.3.1]
</pre>
<p>Replace <em>acme.local</em> with your own domain name and <em>192.168.3.1</em> with the hostname or IP address of your primary 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 backup mail server and those mails will be automatically forwarded to your primary mail server. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a>.</div>
<h2>Backup MX Notes</h2>
<p>It is easy to setup a backup mail server but you also need to consider the items below.</p>
<ul>
<li><p><strong>Add DNS MX Record.</strong> In order for your backup mail server to be identified over the internet, you need to add a lower priority DNS MX record. A higher number means lower priority.</p>
<table style="width: 100%; text-align: center; margin-bottom: 1em">
<tr style="background-color: #dbe6ea"><th>Domain</th><th>TTL</th><th>Priority</th><th>Mail Server Name</th></tr>
<tr><td>acme.local</td><td>86400</td><td>10</td><td>mail.acme.local</td></tr>
<tr><td>acme.local</td><td>86400</td><td>20</td><td>mail2.acme.local</td></tr>
</table>
</li>
<li><p><strong>Add Antivirus and Antispam Filtering.</strong> Make sure to have the same or better <a href="/mail-server-setup-centos-5/#antivirus">virus and spam protection</a> in your backup mail server as you have in your primary mail server. Otherwise, viruses and spams will be entering your inbox through the backdoor.</p></li>
<li><p><strong>Verify Recipient.</strong> If possible, you also need to apply the same recipient verification method you used in your primary mail server. This will allow your backup mail server to reject all invalid recipient address instead of having the primary mail server bounce the forwarded 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>Relay Only.</strong> In your <em>/etc/postfix/main.cf</em>, make sure the relay domain is not found in <em>mydestination</em>, <em>virtual_alias_domains</em> and <em>virtual_mailbox_domains</em>. Otherwise, the backup mail server will not forward emails to the primary mail server and will instead store it into its own mailbox.</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. It will also avoid relay loopback problems if you are using port forwarding in your backup mail server.</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. This useful after bringing the primary mail server back online to eliminate the waiting period for the backup mail server to resend mails in its queue.</p>
<pre class="steps">
postfix flush
</pre>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-backup-mx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix Vacation Autoresponder</title>
		<link>http://www.linuxmail.info/postfix-vacation-autoresponder/</link>
		<comments>http://www.linuxmail.info/postfix-vacation-autoresponder/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 10:54:08 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=331</guid>
		<description><![CDATA[This article describes how to configure Postfix to automatically respond with vacation messages.]]></description>
			<content:encoded><![CDATA[<p>This article describes how to configure a <em>vacation autoresponder</em> in Postfix mail server so email senders can be informed when the recipient is not available.</p>
<span id="more-331"></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 the Vacation Perl Script</h2>
<div class="clearfix steps"><a href="/images/centos-5/postfixadmin-main.png"><img class="preview" alt="Postfix Admin Main" src="/images/centos-5/t-postfixadmin-main.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/postfix-admin-howto-centos-5/">Install Postfix Admin</a>. We are not going to actually use Postfix Admin, we are just going to leverage its excellent vacation message infrastructure. You can skip this part if you are actually using Postfix Admin to manage your Postfix mail server.</div>
<div class="clearfix steps"><a href="/images/centos-5/installing-rpmforge.png"><img class="preview" alt="Install RPMforge" src="/images/centos-5/t-installing-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/add-rpmforge-centos-5/">Add the RPMforge repository</a>. The RPMforge repository is needed to install the required modules for the <em>vacation.pl</em> script.</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-install-perl-mime-encwords.png"><img class="preview" alt="yum install" src="/images/centos-5/t-yum-install-perl-mime-encwords.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Type in the command below to install the required Perl modules.
<pre class="steps">
yum install perl-MIME-EncWords perl-MIME-Charset
   perl-Email-Valid perl-Mail-Sendmail
</pre>
</div>
<div class="clearfix steps"><a href="/images/centos-5/create-user-vacation.png"><img class="preview" alt="Create user vacation" src="/images/centos-5/t-create-user-vacation.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Create a new user named <em>vacation.</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/copy-vacation-pl.png"><img class="preview" alt="Copy vacation.pl" src="/images/centos-5/t-copy-vacation-pl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">5. Type in the commands below to copy <em>vacation.pl</em> to the vacation user home directory.
<pre class="steps">
cd /home/vacation
wget www.linuxmail.info/files/vacation.pl
chown vacation:vacation vacation.pl
chmod 700 vacation.pl
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-vacation-pl.png"><img class="preview" alt="vacation.pl" src="/images/centos-5/t-terminal-vacation-pl.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Type in the command below to test vacation.pl. No error should appear.
<pre class="steps">
./vacation.pl
</pre>
</div>
<h2>Configuring Postfix</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-transport-vacation.png"><img class="preview" alt="Edit transport" src="/images/centos-5/t-edit-transport-vacation.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit the file <em>/etc/postfix/transport</em> and add the line below.
<pre class="steps">
vacation.invalid vacation:
</pre>
Next, type in the command below to convert it to a database file.
<pre class="steps">
postmap /etc/postfix/transport
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-master-cf-vacation.png"><img class="preview" alt="Edit master.cf" src="/images/centos-5/t-edit-master-cf-vacation.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Edit the file <em>/etc/postfix/master.cf</em> and add the line below.</div>
<div class="clearfix steps">
<pre class="steps">
vacation unix - n n - - pipe flags=Rq user=vacation
   argv=/home/vacation/vacation.pl ${recipient} ${original_recipient}
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" /><em>${original_recipient}</em> requires at least <a href="/postfix-rpm-packages/">Postfix 2.5</a> but you can remove it if you prefer not to upgrade. It enables vacation.pl to work with aliases like in the example below.</div>
<div class="clearfix steps">
<table>
<tr><th>Email<br />(original recipient)</th><th>Forwards to<br />(recipient)</th></tr>
<tr><td>john@acme.local</td><td>johndoe@acme.local</td></tr>
<tr><td>jane@acme.local</td><td>janedoe@acme.local</td></tr>
</table>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-mysql-aliases-cf.png"><img class="preview" alt="Edit mysql-aliases.cf" src="/images/centos-5/t-edit-mysql-aliases-cf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Create the file <em>/etc/postfix/mysql-aliases.cf</em> containing the lines below.
<pre class="steps">
host = localhost
user = postfix
password = <em>your_password</em>
dbname = postfix
table = alias
select_field = goto
where_field = address
additional_conditions = and active = '1'
</pre>
</div>
<p><strong>user</strong>, <strong>password</strong>, <strong>dbname</strong> should match your PostfixAdmin settings.</p>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-vacation.png"><img class="preview" alt="Edit transport" src="/images/centos-5/t-edit-main-cf-vacation.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Edit the file <em>/etc/postfix/main.cf</em> and add the lines below.</div>
<div class="clearfix steps">
<pre class="steps">
virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf
transport_maps = hash:/etc/postfix/transport
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you already have an existing <em>virtual_alias_maps</em>, add the mysql-aliases into the end like the one below.</div>
<div class="clearfix steps">
<pre class="steps">
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.cf,
  mysql:/etc/postfix/mysql-aliases.cf
</pre>
</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If adding the vacation domain conflicts with your existing <em>virtual_alias_maps</em>, use <em>recipient_bcc_maps</em> instead and replace <em>/etc/postfix/mysql-aliases.cf</em> with the lines below.
<pre class="steps">
host = localhost
user = postfix
password = <em>your_password</em>
dbname = postfix
table = vacation
select_field = email
where_field = email
additional_conditions = and active = '1'
result_format = %u@vacation.invalid
</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>5. 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/squirrelmail-test-vacation.png"><img class="preview" alt="SquirrelMail Test Vacation" src="/images/centos-5/t-squirrelmail-test-vacation.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>6. Send an email to test@vacation.invalid. You should get an automated reply.</div>
<h2>Configuring the Vacation Perl Script</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-vacation-conf.png"><img class="preview" alt="Edit vacation.conf" src="/images/centos-5/t-edit-vacation-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Create the file <em>/home/vacation/vacation.conf</em> containing the lines below.
<pre class="steps">
$db_username = 'postfix';
$db_password = 'secret';
$db_name     = 'postfix';
$test_mode   = 0;
1;
</pre>
<p><strong>$db_username</strong>, <strong>$db_password</strong>, <strong>$db_name</strong> should match your PostfixAdmin settings.</p>
</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>2. <a href="/squirrelmail-postfixadmin-plugin/">Install the SquirrelMail Postfix Admin Plugin</a> and set a vacation message and to a user.</div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-vacation.png"><img class="preview" alt="postmap vacation" src="/images/centos-5/t-postmap-vacation.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Verify your vacation setting by typing the command below.</div>
<div class="clearfix steps">
<pre class="steps">
postmap -q johndoe@acme.local mysql:/etc/postfix/mysql-aliases.cf
</pre>
Replace <em>johndoe@acme.local</em> with the email address where you have configured a vacation message. The output should contain an email address for the <em>vacation.invalid</em> domain.
</div>
<div class="clearfix steps"><a href="/images/centos-5/squirrelmail-test-vacation-2.png"><img class="preview" alt="SquirrelMail Auto Response" src="/images/centos-5/t-squirrelmail-test-vacation-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Send an email to the user with a vacation message. You should receive an automatic reply.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you encounter any problems, check the log file at <em>/var/log/maillog.</em></div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-vacation-autoresponder/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Handling Multiple Domains with Postfix Admin in RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/multiple-domains-postfix-admin-centos-5/</link>
		<comments>http://www.linuxmail.info/multiple-domains-postfix-admin-centos-5/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 16:42:05 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[CentOS 5]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 5]]></category>

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

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

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

		<guid isPermaLink="false">http://www.linuxmail.info/?p=96</guid>
		<description><![CDATA[This article will show you how to configure Postfix to allow outbound mail without requiring authentication for authorized IP addresses.]]></description>
			<content:encoded><![CDATA[<p>SMTP Authentication prevents unauthorized user from sending out spam mails. But some applications do not support SMTP Authentication. Example of these are web applications with mail sending features (Microsoft Office Sharepoint Server, PHP based applications, etc).</p>
<span id="more-96"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>One solution to this problem is to bypass SMTP authentication for certain IP addresses. This article will show you how to configure Postfix to allow outbound mail without requiring authentication for authorized IP addresses.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-mynetworks.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-mynetworks.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 authorized IP addresses into <em>mynetworks</em>.
</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>2. Check the value of <em>smtpd_recipient_restrictions</em> to make sure that <em>permit_mynetworks</em> is the first value to ensure that nothing will prevent it from being restricted.</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>3. Restart the Postfix service or the MailScanner service if you have integrated MailScanner into Postfix.</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="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix</a> by sending from the authorized IP address to an email address outside your domain.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/bypass-postfix-smtp-authentication-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix Howtos</title>
		<link>http://www.linuxmail.info/postfix-howtos/</link>
		<comments>http://www.linuxmail.info/postfix-howtos/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 13:58:17 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/postfix-howtos/</guid>
		<description><![CDATA[This page contains a collection of howtos for Postfix.]]></description>
			<content:encoded><![CDATA[<p>These are the collection of Postfix howtos available on this site.</p>
<span id="more-69"></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>General Information</h2>
<ul>
<li><a href="/postfix-smtp-server-howto-centos-5/">Postfix installation and setup</a></li>
<li><a href="/postfix-change-port/">Postfix change listening port</a></li>
<li><a href="/postfix-change-port/">Postfix add another listening port</a></li>
<li><a href="/postfix-multiple-ip-address-smtp-greeting/">Postfix multiple IP address individual SMTP greeting</a></li>
<li><a href="/postfix-aliases-mailing-list/">Postfix alias/proxy email address</a></li>
<li><a href="/postfix-aliases-mailing-list/">Postfix email distribution/mailing list</a></li>
<li><a href="/postfix-quota/">Postfix with individual mailbox quota</a></li>
<li><a href="/multiple-domains-postfix-admin-centos-5/">Postfix with multiple domains</a></li>
<li><a href="/postfix-mysql-centos-5/">Postfix with MySQL</a></li>
<li><a href="/postfix-admin-howto-centos-5/">Postfix Admin</a></li>
<li><a href="/postfix-backup-mx/">Postfix backup mail server</a></li>
<li><a href="/postfix-vacation-autoresponder/">Postfix vacation autoresponder</a></li>
</ul>
<h2>Postfix with SMTP Authentication</h2>
<h3 style="margin-left: 1em">SASL</h3>
<ul>
<li><a href="/postfix-smtp-auth-dovecot-sasl/">Postfix and Dovecot SASL Authentication</a> (Recommended)</li>
<li><a href="/smtp-authentication-postfix-centos-5/">Postfix and Cyrus SASL Authentication</a></li>
<li><a href="/active-directory-cyrus-sasl-authentication/">Postfix, Cyrus SASL and Active Directory Authentication</a></li>
</ul>
<h3 style="margin-left: 1em">Others</h3>
<ul>
<li><a href="/bypass-postfix-smtp-authentication-ip-address/">Bypass Postfix SMTP Authentication for authorized IP addresses</a></li>
</ul>
<h2>Postfix with Antispam/Antivirus</h2>
<ul>
<li><a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">Postfix with MailScanner</a></li>
<li><a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">Postfix with ClamAV Antivirus</a></li>
<li><a href="/mailscanner-postfix-clamav-spamassassin-howto-centos-5/">Postfix with SpamAssassin Antispam</a></li>
<li><a href="/postgrey-postfix-anti-spam/">Postfix Greylisting with Postgrey</a></li>
</ul>
<h2>Postfix Virtual User Accounts</h2>
<ul>
<li><a href="/postfix-quota/">Postfix and Linux virtual user accounts</a></li>
<li><a href="/postfix-dovecot-ldap-centos-5/">Postfix and LDAP virtual user accounts</a></li>
<li><a href="/postfix-dovecot-ldap-centos-5/">Postfix and Active Directory virtual user accounts</a></li>
<li><a href="/multiple-domains-postfix-admin-centos-5/">Postfix and MySQL virtual user accounts</a></li>
</ul>
<h2>Postfix and Active Directory</h2>
<h3 style="margin-left: 1em">User Accounts</h3>
<ul>
<li><a href="/postfix-dovecot-ldap-centos-5/">Postfix and Active Directory virtual user accounts</a> (Recommended)</li>
<li><a href="/active-directory-integration-samba-centos-5/">Postfix and Active Directory accounts using Samba</a></li>
</ul>
<h3 style="margin-left: 1em">Others</h3>
<ul>
<li><a href="/postfix-active-directory-ldap-lookup-howto/">Postfix and Active Directory distribution list</a></li>
<li><a href="/postfix-quota/">Postfix and Active Directory mailbox quota</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-howtos/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Postfix Quota</title>
		<link>http://www.linuxmail.info/postfix-quota/</link>
		<comments>http://www.linuxmail.info/postfix-quota/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 06:30:20 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/postfix-quota/</guid>
		<description><![CDATA[How to setup and configure individual user mailbox quota in Postfix.]]></description>
			<content:encoded><![CDATA[<p>Postfix does not support mailbox quota. But thanks to <a href="http://vda.sourceforge.net/">Anderson Nadal&#8217;s Postfix Virtual Delivery Agent (VDA) patches</a>, it can. To use the Postfix VDA requires two things, first Postfix must be built with the VDA patches and second, virtual user accounts must be used. You can get the <a href="/postfix-rpm-packages/">Postfix RPM with VDA patches</a> here.</p>
<span id="more-68"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you have installed Postfix with VDA and your Postfix is configured for virtual user accounts, you can proceed to <a href="#postfix-vda">Configure Postfix VDA</a> section.</p>
<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>
<p>You can generate the vmailbox file automatically by executing</p>
<pre class="steps">getent passwd | grep /bin/bash | sed &#39;s/\([^:]*\):.*/\1@acme.local \1\/Maildir\//&#39; &gt; /etc/postfix/vmailbox</pre>
<p>After creating this file, execute <tt>postmap /etc/postfix/vmailbox</tt>. This will generate <em>/etc/postfix/vmailbox.db</em>, the actual file that will be used for the lookup.</p>
<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>3. 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>4. 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">
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>
<p>You should also comment out the <em>userdb passwd</em> section, otherwise it will override the values in <em>userdb static</em> above.</p>
<div class="clearfix steps"><a href="/images/centos-5/service-config-3.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. 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>3. <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>
<h2 id="postfix-vda">Configure Postfix VDA</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-virtual-3.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-virtual-3.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 add the lines below
<div class="m">
<pre class="steps">
virtual_mailbox_limit_override = yes
virtual_mailbox_limit_maps = hash:/etc/postfix/vquota
</pre>
</div>
</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-vquota.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-vquota.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Create the file <em>/etc/postfix/vquota</em> containing the mapping from an email address to the maximum mailbox quota in bytes. If you wish to be exact, 1KB equals 1024 bytes while 1MB equals 1024KB or 1048576 bytes.
<div class="m">
<pre class="steps">
johndoe@acme.local 10485760
janedoe@acme.local 2097152
</pre>
</div>
<p>John Doe got a 10MB quota while Jane Doe got 2MB.</p>
<p>After creating this file, execute <tt>postmap /etc/postfix/vquota</tt>. This will generate <em>/etc/postfix/vquota.db</em>, the actual file that will be used for the lookup.</p>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you use <a href="/postfix-dovecot-ldap-centos-5/">Active Directory as your Postfix virtual user accounts source</a>, you can use the <em>maxStorage</em> attribute instead to store the quota. Just copy your ldap-users.cf configuration and save it as ldap-quota.cf. Next change <em>samaccountname</em> to <em>maxstorage</em> in the <em>result_attribute</em> line and remove the <em>result_format</em> line. In your main.cf, use <em>ldap:/etc/postfix/ldap-quota.cf</em> as your <em>virtual_mailbox_limit_maps</em>. In Windows, you can use <a href="/adsi-edit-ldap-attributes/">ADSI Edit</a> to access and modify the value of <em>maxStorage</em>.</p>
</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>3. 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>4. <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a>. Try using a very small quota limit so you can test the quota feature.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-quota/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Postfix Aliases and Mailing List</title>
		<link>http://www.linuxmail.info/postfix-aliases-mailing-list/</link>
		<comments>http://www.linuxmail.info/postfix-aliases-mailing-list/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 02:04:42 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.linux-mail.info/postfix-aliases-mailing-list/</guid>
		<description><![CDATA[How to specify a mailing list address or a proxy address for use in Postfix using the /etc/aliases file.]]></description>
			<content:encoded><![CDATA[<p>You can create a text file in Postfix containing an alias email and several destination emails. There are two ways to implement aliasing and mailing list in Postfix depending on how it is configured.</p>
<span id="more-66"></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>For System Accounts</h2>
<div class="clearfix steps">Your Postfix is configured to use system accounts if your configuration file has something like <pre class="steps">mydestination = $mydomain</pre> or sending to a non-existent account gives the error message <pre class="steps">Recipient address rejected: User unknown in local recipient table</pre></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><div class="m">1. Edit the file <em>/etc/aliases</em>. The file has the form<pre class="steps">alias: address1,address2</pre> If <em>address</em> has the same domain as yours, you can leave it out. Thus you can use the <em>/etc/aliases</em> file to alias an email address or to build a mailing list.</div></div>
<div class="clearfix steps"><a href="/images/centos-5/terminal-newaliases.png"><img class="preview" alt="Terminal" src="/images/centos-5/t-terminal-newaliases.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Type in the command <tt>newaliases</tt> in a terminal window. This will rebuild the aliases database file.</div>
<h2>For Virtual Accounts</h2>
<div class="clearfix steps">Your Postfix is configured to use virtual accounts if your configuration file has something like <pre class="steps">virtual_mailbox_domains = $mydomain</pre> or sending to a non-existent account gives the error message <pre class="steps">Recipient address rejected: User unknown in virtual mailbox table</pre></div>
<div class="clearfix steps"><a href="/images/centos-5/edit-valias.png"><img class="preview" alt="Create /etc/postfix/valias" src="/images/centos-5/t-edit-valias.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">1. Edit the file <em>/etc/aliases</em>. The file has the form<pre class="steps">alias address1,address2</pre></div></div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-valias.png"><img class="preview" alt="postmap /etc/postfix/valias" src="/images/centos-5/t-postmap-valias.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">2. Generate the database file for <em>valias</em> using the command 
<pre class="steps">postmap /etc/postfix/valias</pre></div></div>
<div class="clearfix steps"><a href="/images/centos-5/postmap-query-valias.png"><img class="preview" alt="postmap query /etc/postfix/valias" src="/images/centos-5/t-postmap-query-valias.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">3. Test your database file using the command
<pre class="steps">postmap -q group@acme.local /etc/postfix/valias</pre></div>
Replace <em>group@acme.local</em> with a valid alias entry. You should see the destination emails.</div>
<div class="clearfix steps"><a href="/images/centos-5/edit-main-cf-valias.png"><img class="preview" alt="Edit main.cf" src="/images/centos-5/t-edit-main-cf-valias.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><div class="m">4. Edit the file <em>/etc/postfix/main.cf</em> and add the line below to your virtual settings section
<pre class="steps">virtual_alias_maps = hash:/etc/postfix/valias</pre></div></div>
<p><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />If you are using virtual accounts, instead of maintaining a text file containing the aliases and mailing list, it would be better if you can work with your virtual accounts source. See the links below for examples</p>
<ul>
<li><a href="/postfix-active-directory-ldap-lookup-howto/">Active Directory</a></li>
<li><a href="/multiple-domains-postfix-admin-centos-5/">MySQL</a></li>
</ul>
<h2>To Test Postfix</h2>
<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>1. Restart the Postfix service. But if you installed MailScanner, then restart MailScanner instead. This will immediately reload the aliases database file instead of after a few minutes.</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>2. You should now be able to send email to addresses found in your aliases file. See <a href="/postfix-smtp-server-howto-centos-5/#test-postfix">Test Postfix using Telnet</a> and try using the alias email addresses.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/postfix-aliases-mailing-list/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
