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.

Can't send email (exim not starting correctly)

Discussion in 'E-mail Discussions' started by Brad Meyer, Apr 6, 2015.

  1. Brad Meyer

    Brad Meyer Registered

    Joined:
    Apr 6, 2015
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Our server updated and we can no longer send email (and it appears that some inboxes appear blank as well. Not sure if that's related or even a real issue yet). If you try to restart exim it fails with the following error:

    Code:
    Waiting for “exim” to start ……waiting for “exim” to initialize …………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
    …failed.
    
    Service Error
    The “exim” service failed to start.
    
    Startup Log
    Starting exim: [ OK ]
    0 processes (antirelayd) sent signal 9
    /usr/local/cpanel/scripts/update_sa_rules: running in background
    
    exim has failed. Please contact your system administrator if the service does not automagically recover.
    I'm wondering if it's a permissions error as these permissions look weird to me:
    Code:
    ls -l /var/spool/
    
    total 56
    drwxr-xr-x. 14 root     root   4096 Dec 27 12:51 ./
    drwxr-xr-x. 23 root     root   4096 Apr  6 02:02 ../
    drwxr-xr-x.  2 abrt     abrt   4096 Dec 31 02:05 abrt/
    drwx------.  2 abrt     abrt   4096 Oct 16 10:33 abrt-upload/
    drwxr-xr-x.  2 root     root   4096 Nov 23  2013 anacron/
    drwx------.  3 daemon   daemon 4096 Apr  6 02:51 at/
    drwx------.  2 root     root   4096 Mar 12  2012 cpupdates/
    drwx------.  2 root     root   4096 Apr  6 10:10 cron/
    drwx------   2 root     root   4096 Jan 27 17:29 cron.suspended/
    drwxr-x---.  6 mailnull mail   4096 Jul  5  2014 exim/
    drwxr-xr-x.  3 root     root   4096 Mar 12  2012 logrotate/
    drwxr-xr-x.  2 root     root   4096 Sep 23  2011 lpd/
    drwxr-xr-x.  2 root     mail   4096 Apr  6 02:25 mail/
    drwxr-xr-x.  2 root     root   4096 Apr  3 12:47 plymouth/
    
    
    
    
    ls -l /var/spool/exim
    
    total 28
    drwxr-x---.  6 mailnull mail 4096 Jul  5  2014 ./
    drwxr-xr-x. 14 root     root 4096 Dec 27 12:51 ../
    drwxr-x---.  2 mailnull mail 4096 Apr  6 02:10 db/
    -rw-r--r--.  1 mailnull mail    5 Apr  3 12:48 exim-daemon.pid
    drwxr-x---. 64 mailnull mail 4096 May 25  2014 input/
    drwxr-x---. 64 mailnull mail 4096 May 25  2014 msglog/
    drwxr-x---   4 mailnull mail 4096 Apr  3 12:52 scan/
    The server isn't out of space as a df -h denotes about 33% free space still. It's really strange to me and I've even tried rebooting the server. I have an open ticket, but thought I'd ask here anyways. Any help would be greatly appreciated!

    EDIT: I would also add that checking the status of the servers gives you: exim dead but subsys locked
     
    #1 Brad Meyer, Apr 6, 2015
    Last edited: Apr 6, 2015
  2. Brad Meyer

    Brad Meyer Registered

    Joined:
    Apr 6, 2015
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Support took care of it! Thanks guys! Here's their response of what they did for the record:

    It looks like there was a misconfiguration inside WHM that was causing this issue. I noticed that Exim wasn't running properly when I first logged in and it would crash again shortly after restarting the service. I saw this error repeatedly happening in the Exim logs:

    2015-04-06 14:37:53 [17914] socket bind() to port 110 for address (any IPv6) failed: Address already in use: waiting 30s before trying again (4 more tries)

    It looks like the following custom ports were added to WHM >> Service Manager for Exim:

    26,110,587

    Ports 110 or 587 are already open by default on the mail service so Exim was trying to connect to those ports twice when it started up. When it failed it would continually restart and no mail could be sent. I removed 110 and 587 and saved the configuration and now email seems to be working just fine.
     
    madmanmachines likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page