From the above link,
To rename the default domain
1.In IIS Manager, expand the SMTP virtual server, and then click Domains.
2.In the details pane, right-click a domain name, and then click Rename.
3.Type a new name for the default domain.
For me the domain name was "servername.mydomain.com" and I modified it as "mydomain.com"