2

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

  1. created one A record on Route 53: mailserver.mycompany.com points to EC2 instance IP
  2. created MX entry on Route 53: mailserver.mycompany.com 0(priority) mailserver.mycompany.com
  3. 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.

kosa
  • 23

1 Answers1

0

The MX entry should be "mycompany.com 0(priority) mailserver.mycompany.com", and you should have as servernames both localhost and mycompany.com.

Port 25 is required to be opened in the firewall for send and receive.

For validation of your installation, this link might be useful :
James Wiki JamesQuickstart.

harrymc
  • 498,455