<?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; Backup</title>
	<atom:link href="http://www.linuxmail.info/category/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Tue, 01 Nov 2011 00:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>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>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[Backup]]></category>
		<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 [...]]]></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[Backup]]></category>
		<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 = example.com
smtpd_recipient_restrictions = permit_mynetworks, 
    reject_unauth_destination
transport_maps = hash:/etc/postfix/transport
</pre>
</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">
example.com :[192.168.1.3]
</pre>
<p>Replace <em>192.168.1.3</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>
	</channel>
</rss>

<!-- Dynamic page generated in 1.933 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-09 06:47:21 -->
<!-- Compression = gzip -->
