Sie sind auf Seite 1von 5

Backup Incoming Mail in Postfix Linux Mail Server Setup and Howto Guide

Pgina 1

Home | Forum | About | Contact | Subscribe | Follow me


Search

Linux Mail Server Setup and Howto Guide


Rapidly deploy Linux based mail solutions today

Backup Incoming Mail in Postfix


0
tweets tweet

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 .
HPC Linux Servers Intel Xeon Processors for HPC Custom High Performance Computing
www.PenguinComputing .com

Official Linux 880 for 7 Days Includes Course, Exam , Hotel, Meals & more
www.Koenig -Solutions. com

DomainNameShop.co.uk . com .uk .ie .eu .be .at .ch & more UK Freephone support helpline
www.domainnameshop. co.uk

Servios Linux Servios Profissionais Linux Concepo/administrao de sistemas


www.eurotux. com

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

http://www.linuxmail.info/backup-mail-postfix/

04-08-2010 15:33:13

Backup Incoming Mail in Postfix Linux Mail Server Setup and Howto Guide

Pgina 2

2. Create the file /etc/postfix/backup_bcc .pcre containing


/^ (. *)@acme\. local$ / $ 1@ backup.invalid

which tells Postfix to BCC emails to the domain backup.invalid. Email for BCC to johndoe @acme.local johndoe@backup.invalid janedoe @acme.local janedoe@backup.invalid

3. Edit the file /etc/postfix/transport and add the line below.


backup.invalid smtp: [192 .168. 1. 4]

Replace the IP address with the IP address of your backup mail server. Next, type in the command below to convert it to a database file.
postmap /etc /postfix/ transport

This tells Postfix to send all emails for the domain backup.invalid to the specified mail server.

http://www.linuxmail.info/backup-mail-postfix/

04-08-2010 15:33:13

Backup Incoming Mail in Postfix Linux Mail Server Setup and Howto Guide

Pgina 3

4. Create the file /etc/postfix/generic.pcre containing


/^ (. *)@backup\. invalid$ / $ 1@ acme.local

which tells Postfix to change the email address back to the original recipient before sending it out. BCC to Email for

johndoe @backup.invalid johndoe@acme .local janedoe @backup.invalid janedoe@acme.local

5. Restart the Postfix or MailScanner service if you have installed it. Learn how to start and stop services here. The destination Postfix server can be configured to accept emails without validating the recipient. If you encounter any problems, check the log file at /var/log/maillog . Visit the forum to ask for help or to give a comment. *** Posted on 12/12/2009 and last updated on 5/9/2010 Filed under Backup , Postfix ShareThis

Comments are closed. Content RHEL 5/CentOS 5 Email Server

http://www.linuxmail.info/backup-mail-postfix/

04-08-2010 15:33:13

Backup Incoming Mail in Postfix Linux Mail Server Setup and Howto Guide RHEL 4/CentOS 4 Email Server Why Use a Linux Mail Server Recommended Softwares Deploy Mail Server on the Net Mail Client Configuration Postfix Howtos Postfix RPM Packages SquirrelMail Howtos Barracuda Spam Firewall System Administration Howto Squid Proxy Server Howto 389 Directory Server Howto Active Directory in Linux Bind Setup Howto SharePoint Howto SQL Server Howto Categories 389 Directory Server (10) Active Directory (24) Anti-spam/Anti-virus (8) Backup (3) CentOS 4 (14) CentOS 5 (31) Dovecot (8) Kerberos (4) LDAP (16) Mail Clients (6) MailScanner (7) Postfix (30) Red Hat Enterprise Linux 4 (14) Red Hat Enterprise Linux 5 (30) Samba (3) SASL (3) Squid Proxy Server (4) SquirrelMail (15) SSL/TLS (8) System Administration (17) Technical Articles (4) Uncategorized (7) Sponsored Links

Pgina 4

http://www.linuxmail.info/backup-mail-postfix/

04-08-2010 15:33:13

Backup Incoming Mail in Postfix Linux Mail Server Setup and Howto Guide

Pgina 5

Zmanda .com /Cloud-Backup Ads by Google

Copyright 2007 LinuxMail. All rights reserved.

Privacy Policy

http://www.linuxmail.info/backup-mail-postfix/

04-08-2010 15:33:13

Das könnte Ihnen auch gefallen