Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th May 2008, 23:59
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default Email Backup

Hello, How can i back up postfix email server to cimply with regulations?

Best regards

AL
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2008, 09:40
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

Setup archiving, you can use postfix's built in bcc to send each and every email to a script that then encrypts and stores it to file.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 14th May 2008, 20:45
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

thx, is this incremental back up or simply backup what is on the server at that time.?
Reply With Quote
  #4  
Old 17th May 2008, 18:52
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

any update with this

thx
Reply With Quote
  #5  
Old 18th May 2008, 14:54
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

each and every single email that passes through the system will be stored.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #6  
Old 22nd August 2008, 02:13
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

is any application than can do this?
Reply With Quote
  #7  
Old 22nd August 2008, 15:53
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

any suggestion on this?
Reply With Quote
  #8  
Old 22nd August 2008, 21:54
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

i just use a cron job to do a
cp -a /var/spool/mail /home/backup/mail
Reply With Quote
  #9  
Old 23rd August 2008, 00:07
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

Okay using my method here is a tip on how you can get it working

Create a script /etc/postfix/mail-backup.sh
Code:
#!/bin/bash

cat >> /backup_dir/mail-backup
Now for the always bcc use an address like email-backup
In your aliases file have a pointer to the script
Code:
email-backup: "|/etc/postfix/mail-backup.sh"
All the bcc'ed mail will be stored in the spool file /backup_dir/mail-backup.

NOTE that you can get more fancy with this and split the spool files if you have multiple users by reading the mail headers and getting the to address then store the mail in that users spool file.

Anyway this is just a skeleton for you to build on, haven't got the time on my hands to create you the full solution.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #10  
Old 24th August 2008, 00:16
techmeltz techmeltz is offline
Junior Member
 
Join Date: Jul 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Restore

That solution framework looks pretty simple yet effective.. how would you restore from that in the event of total server disaster? let's assume that a seperate program copied the target file to a remote server and is completely intact.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 04:39
Looking for an automatic backup for ISPConfig unsichtbare Installation/Configuration 1 2nd May 2008 15:33
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
email forwarding locally consumes all resources rdells General 20 1st May 2006 20:43
email + backup blackflag Installation/Configuration 3 7th March 2006 12:38


All times are GMT +2. The time now is 05:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.