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.

I changed our second email port to a new port and the old exim installation

Discussion in 'E-mail Discussions' started by DWHS.net, Oct 20, 2011.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    So now there is three exims running, how can I remove the second one?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    Hello :)

    Could you provide more details about the exact steps you took, and paste a list of the current Exim processes that are running?

    Thank you.
     
  3. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    exim exim-4.69-30_cpanel_maildir up
    exim-26 up
    exim-587 up

    I added exim on 26 then switched it to 587 and now 26 still remains running. I want to remove it.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    How did you add exim on 26? In WHM > Service Manager or somewhere else?

    You should probably restart exim itself to see what happens. If that doesn't work, check the following locations for exim-26:

    /var/run/chkservd/exim-26
    /etc/chkserv.d/exim-26

    Remove or move those files. Additionally, check /etc/chkserv.d/chkservd.conf file and remove any line such as:

    Code:
    exim-26:1
    At that point, restart chkservd:

    Code:
    /scripts/restartsrv_chkservd
     
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    Yes all three where through cpanel, first was on install, 26 I added with service manager, the third was 26 switch to 587 on service manager.

    /var/run/chkservd/exim-26
    /etc/chkserv.d/exim-26

    These both gave file not there errors

    There is no 26 on this file:

    /etc/chkserv.d/chkservd.conf

    The server status still shows 26 up and running even after restarting exim.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    Could you check in /etc/exim.conf to see if 26 is listed?

    Code:
    grep 26 /etc/exim.conf
     
  7. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    nothing showed up, thanks for the help btw
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    If nothing showed up, then exim itself is not binding on port 26. Please try this now:

    Code:
    lsof -i :26
    netstat -an | grep :26
     
  9. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    Nothing on both, I'm guessing it's a cpanel service monitor error and 26 really isn't there?
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    Where are you even seeing the 3 ports running? You have not provided the actual area you are seeing them as listed in WHM or root SSH by what command or section. Given all that we've gone through to check, it definitely doesn't appear that exim-26 is running at all on the machine.
     
  11. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    I agree it shows in the "server status" section in the WHM.
     
  12. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    That area is populated by these files:

    /var/run/chkservd/exim-26
    /var/run/chkservd/restart_track/exim-26

    Please ensure again that any such files have been either removed or moved.
     
  13. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    I ran both of these and got a permission error


    root@dwhs69 [~]# /var/run/chkservd/exim-26
    -bash: /var/run/chkservd/exim-26: Permission denied
    root@dwhs55 [~]# /var/run/chkservd/restart_track/exim-26
    -bash: /var/run/chkservd/restart_track/exim-26: Permission denied
    root@dwhs69 [~]#
     
  14. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    These aren't ones to run as they aren't executable files. That doesn't mean they don't exist. Move the files if they exist:

    Code:
    mv /var/run/chkservd/exim-26 /root/exim-26.bak
    mv /var/run/chkservd/restart_track/exim-26 /root/exim-26.bak2
     
  15. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Re: I changed our second email port to a new port and the old exim installa

    Aha, perfect, that was it!

    Thanks again for all the help.
     
Loading...

Share This Page