The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

'Could not connect to SMTP host'

Discussion in 'E-mail Discussions' started by guysmiley, Aug 31, 2009.

  1. guysmiley

    guysmiley Member

    Joined:
    Sep 6, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    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. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    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. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Tx
    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
     
Loading...

Share This Page