Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup James mail server on a linux machine. The linux machine has public static ip address assigned.

I installed James and added in the config.xml added the servername as

In the DNS for, I have created a A-record, say, which corresponds to the ipaddress of the above mail server machine. Then added as MX record for

In James, I have created a new user test. Then from gmail, I sent a mail to The mail is not received back and it didn't even bounce back.

The linux machine is behind a firewall with only 22, 80, 8080 ports open for external network.

My question here is, Do I require do open any other ports on the firewall so that the mail I send from gmail arrives to James? If it's not the port problem, any views on solving this issue?

I don't want to send mails from this server. It's only for receiving the mails.

share|improve this question

migrated from Dec 25 '10 at 1:32

This question came from our site for professional and enthusiast programmers.

The SMTP Port for Mail transfer is 25, and 465 for SMTPS (ssl).

share|improve this answer
I know SMTP port 25 should be opened for sending a mail. Should it be opened for receiving a mail as well? – Chaitanya Dec 24 '10 at 9:18
Found that STMP port 25 should be open for receiving the mail from remote server as well. Once the port 25 is opened, I started receiving the mails. – Chaitanya Dec 25 '10 at 7:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.