On 12/2/2009 6:41 AM, LuKreme wrote:
OK, in preparation for moving to new hardware I've copied all the mail from the
working machine to the new machine, installed postfix and copied over my
/usr/local/etc/postfix folder so that I have identical configs on both machines.
Now, I haven't changed the MX records as yet because I want to change the new
machine from using courier authlib to dovecot. So for right now, I want to use
the new server as simply a test platform, but postfix (properly) will not
accept mail for krem...@kreme.com even though krem...@kreme.com is in virtual
pointing to the local user 'kremels'. This is probably because it looks at the
mx for kreme.com.
Long explanation, short question: how can I tell postfix on this machine to
temporarily accept all mail for users in the virtual tables regardless of MX,
or is that even possible? All the email will be test emails generated by me and
since the new machine is not listed as MX it's unlikely anyone else would be
trying to access it, and even if they did, the mail will be resynced with the
real server before it goes live.
Postfix doesn't use MX records to decide what domains to
accept (unless you're using the permit_mx_backup hack).
Maybe virtual_mailbox_domains isn't set.
http://www.postfix.org/ADDRESS_CLASS_README.html
Before doing the final sync of mail and moving the MX pointer I want to be sure
that everything is working correctly.
The other idea that I had, since the settings will be different for the MUAs,
is to setup the new server as mail2 and run it in parallel with the old
server,, allowing people to 'migrate' as they change the settings. Trouble with
that idea is I don't know how to keep the mail synced between machines.
It's not too hard to convince postfix to deliver a copy to
both systems, but keeping POP/IMAP synced between systems is
not trivial. Probably better to just force them to use the
new server after "sufficient" notice. After the switch, empty
out the mailboxes on the old server except for a notice about
how to access the new server.
-- Noel Jones