I have Amazon EC2 (windows) instance which hosts Tomcat & Apache James mail server.
James works fine on EC2 locally (I have created a domain and updated etc/hosts file to mimic domain. Using thunderbird client on same machine, I was able to send messages between accounts on same domain).
Now I am trying to map james to real domain. I have registered a domain with goDaddy say mycompany.com
- created one A record on Route 53: mailserver.mycompany.com points to EC2 instance IP
- created MX entry on Route 53: mailserver.mycompany.com 0(priority) mailserver.mycompany.com
- Pointed all Mail related DNS Zone file entries in GoDaddy to mailserver.mycompany.com
Now I am confused on while adding domain to James, what should be the host name & domain name I use?
should host name be localhost (or) mycompany.com? should James domain name be mycomapny.com (or) mailserver.mycompany.com?
Any help would be appreciated. Thanks for your time & help.