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 installed cpanel on a new server, so exim is included. As my provider blocks port 25, I added port 587 (according to the ISP recomendation), to the "Allow exim to listen on port " setting.

I can receive messages sent to any email created on the server, but no way to send messages out of the server. They go to the Queue and stack there.

There are the logs, of when trying to send an email to a gmail address.

  cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1UQguD-0005bE-74
delivering 1UQguD-0005bE-74
Connecting to [2607:f8b0:4002:c04::1a]:25 ... failed: Network is unreachable
LOG: MAIN [2607:f8b0:4002:c04::1a] Network is unreachable

And this, trying to send to hotmail.

LOG: MAIN [] Connection timed out
Connecting to []:25 ... failed: Connection timed out (timeout=5m)
LOG: MAIN [] Connection timed out

Where Am I wrong?

share|improve this question
up vote 2 down vote accepted

Outgoing SMTP must use port 25. Port 587 is the submission port which is only for your users to connect to the server and submit emails for sending. The actual sending of the email from your server to the other servers must occur over port 25. You must contact your ISP to lift the block on port 25 or configure another email server (which is not blocked on 25) as a smart host.

share|improve this answer
Thank you. That was clarifying. I also found this article that explains what you said: So. I will just need to ask my ISP to open the port 25, that cames closed by default. – valter Apr 12 '13 at 17:23
The ISP opened the port 25. Now it works... – valter Apr 12 '13 at 19:08

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.