Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    19

    Default 'Could not connect to SMTP host'

    Greetings,

    Does Exim need to be enabled for SMTP to function? SMTP is allowed through our Firewall... Is there anything else that must be enabled for SMTP to work?

    Tx!

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by guysmiley View Post
    Greetings,

    Does Exim need to be enabled for SMTP to function? SMTP is allowed through our Firewall... Is there anything else that must be enabled for SMTP to work?

    Tx!
    Yes, Exim definitely needs to be active for SMTP to work. By default it will be listening on TCP 25. Make sure your firewall is allowing ingress TCP 25.

    ps auwx|grep exim - see if it's running

    telnet main.ip.address 25 - you should see your server banner pop up.

    NOTE: If you are testing from a remote location (such as a machine on a DSL or Cable line), you may find that you are blocked from accessing port 25 (SMTP) of the server, but not because of the server - instead, the ISP may be blocking outbound port 25 (forcing theri customers to use the ISP mailserver for outbound delivery).

    Most decent ISPs today block port 25 outbound by default for residential / non-static connections so that if a machine on one of those connections gets compromised and starts sending spam, it won't go anywhere.... except maybe through the ISP's own mailserver, which they then can track and take action on.

    There are a million different ways to verify that exim is started and listening on port 25... one quick and dirty way is:

    lsof -n|grep TCP|grep smtp

    some others are:

    ss|grep smtp

    netstat -an|grep LISTEN|grep ':25'


    With any of the above three commands you should see some at least one entry showing that SMTP is active.

    Mike

  3. #3
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Exim

    Hello,


    Yes you would need to install Exim for the SMTP service to work. I have attached a link to some documentation that should help. Please let me know if you have any other questions.

    MailFAQ < AllDocumentation/AllFAQ < TWiki

    Thank you,
    Matthew Curry

Similar Threads & Tags
Similar threads

  1. Cannot connect to port 25! (SMTP)
    By SnakeO in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-11-2011, 08:16 PM
  2. Not connect to SMTP
    By glowndark in forum New User Questions
    Replies: 4
    Last Post: 11-20-2009, 08:29 AM
  3. Not connect to SMTP
    By glowndark in forum E-mail Discussions
    Replies: 0
    Last Post: 11-19-2009, 06:30 PM
  4. DWMAIL SMTP will not connect
    By bigdessert in forum E-mail Discussions
    Replies: 4
    Last Post: 04-25-2008, 05:48 PM
  5. Error: could not connect to SMTP host server
    By mghool in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-30-2005, 05:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube