OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re-injecting a mailbox into postfix?

From: Sean Tempesta (sean.tempestagmail.com)
Date: Mon Sep 03 2007 - 01:37:29 CDT


Hello,

My old company had their mail server die and were desperate to accept
the mail that was queuing while they were trying to rebuild their
server so they asked me to temporarily accept all mail for their org.
So, I setup the following virtual mailbox:

 1 /etc/postfix/main.cf:
 2 virtual_mailbox_domains = example.com
 3 virtual_mailbox_base = /var/mail/vhosts
 4 virtual_mailbox_maps = hash:/etc/postfix/vmailbox
 5 virtual_minimum_uid = 100
 6 virtual_uid_maps = static:5000
 7 virtual_gid_maps = static:5000
 8 virtual_alias_maps = hash:/etc/postfix/virtual
 9
10 /etc/postfix/vmailbox:
11 example.com example.com/catchall

which was great as all of their email started flowing into this single
catchall file. Now that their mail server is back up and running I
need to reinject it into postfix. The format appears to be standard
.mbox: