After I change my main domain, our emails not working any more when we tested coming error msg:
stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known
I think it is because of DNS setting.
Because you changed main domain, you probably forgot to update your MX settings. These need to point to your 'old' mail server.