if you want all your emails to be handled by gmail, you should not need to configure an SMTP-server on your side (whether this is postfix
, exim
or whatever).
the SMTP-error you get (550
) indicates that the gmail-mailservers do not recognize the recipient address as being one of theirs. so i would double check whether you really have "verifed my domain with google" (not clear what you mean by this).
finally, here's a suggested migration path that should minimize loss of email:
- make sure all is working fine on your side (MX points to your smtp-server, and it accepts all the mails you want)
- negotiate with googlemail that they accept your domain & email-addresses
- test whether gmail actually accepts your email. personally i would manually do an SMTP connection to a gmail server, something like the simple telnet session at below
- once gmail accepts emails for your domain, change the
MX
record to point to gmail. not before.
here is a telnet-session to verify an email address with google (it tries verifying joe@example.com
and fails).
$ dig mx gmail.com
> [...]
> gmail.com. 705 IN MX 10 alt1.gmail-smtp-in.l.google.com.
> [...]
$ telnet alt1.gmail-smtp-in.l.google.com 25
> [...]
> 220 mx.google.com ESMTP i8si336733lam.57 - gsmtp
HELO world
> 250 mx.google.com at your service
MAIL FROM: <>
> 250 2.1.0 OK i8si336733lam.57 - gsmtp
> RCPT TO: <joe@example.com>
> 550-5.1.1 The email account that you tried to reach does not exist. Please try
QUIT
$
(lines starting with $
are what you have to type in the shell, lines starting with >
are responses (either from some command like dig
or from the remote server) and the other lines are commands you have to type in the SMTP-dialog.)