I'm migrating from a VPS with SmarterMail installed to an Amazon EC2 instance with the same version of SmarterMail. My question is how to make sure that I don't lose any email when I switch over the MX records to point to the new mail server.
I've set the TTL values on the mail server records to be just 1 minute so that I can get a quick DNS propagation, but not everyone will honor that, so I'm trying to figure out how to use the Old server as an incoming gateway that just forwards on to the new mail server once I make the switch. However, I can't seem to get that to work.
Here's what I'm trying to do:
- I have two servers:
- server1 (current vps server)
- server2 (new EC2 server)
- I have the domain mydomain.com configured on both servers.
- I have SmarterMail installed on both servers, and I've copied over all of the necessary files to migrate the domains from one server to the other.
So I have mydomain.com, and the same users, set up on both servers. On server1, I've configured an incoming gateway:
- Gateway Mode: Domain Forward
- IP Address: server2 ip
- User Verification: None
- Enable SmarterMail Gateway Mode: False
- Disable Greylisting: True
- Domain Verification: Specified Domains
- Specified domains: mydomain.com
I save the configuration, and I can see it in the Incoming Gateways list. I can send an email to email@example.com, and it lands on server1, it does not get forwarded to server2.
I may be misunderstanding exactly how this works. I can't get anything to forward on to server2 at this point.