Skip to main content

Unable to restart Exim

Comments

9 comments

  • dalem
    My guess is you have something custom in your exim.conf that preventing exim to start backup your custom config ( so maybe you can re-implement it ) set it back to cpanel defaults and see if it starts
    0
  • ITGabs
    Probably, but I tried in the Exim configuration in WHM to reset with each option of the "reset tab", also deleted all the /etc/exim*.conf and later force the "Update Server Software" and the behavior is exactly the same. If it is safe I could tried to uninstall and install Exim manually but I didn't find info about
    0
  • SysSachin
    Hi, Can you please try to update exim using the below command : /scripts/eximup --force Also, please check the post related exim issue : Exim Mail Server will not start
    0
  • ITGabs
    /scripts/eximup should do the work but is already deprecated in cPanel v 56?? Probably I need something like that script, in the documentation I didn't find anything about a new script to reinstall exim
    0
  • albagarcia
    Hello! Please try /scripts/upcp --force Cheers.
    0
  • ITGabs
    Please try /scripts/upcp --force

    That I meant that with 'force the "Update Server Software" and the behavior is exactly the same.' I also tried things with /scripts/restartsrv_exim /scripts/restartsrv_eximstats /scripts/restartsrv_mailman /scripts/restartsrv_imap /scripts/restartsrv_clamd /scripts/restartsrv_dovecot /scripts/restartsrv_spamd /scripts/restartsrv_queueprocd /scripts/restartsrv_syslogd /scripts/restartsrv_p0f /scripts/restartsrv_exim
    0
  • cPanelMichael
    Hello :) Could you review /var/log/exim_mainlog and /var/log/exim_paniclog and let us know the output when attempting to start Exim? Thank you.
    0
  • ITGabs
    I found the root of the problem! From an answer in another thread Documentation doubt about Configure PHP-FPM with User Pools for EasyApache 4 I figure out that maybe exim is ok but the commands to restart exim are wrong This is a long history I checked many files in /etc/rc.d/init.d/ visudo .bash* profile* /bin/sh > /bin/bash and I found the first work around service exim status #not show anything bash service exim status #show status bash service exim restart #it works! but this will not restart exim automatically if fails playing around changing #!/bin/sh to #!/bin/bash in /sbin/services do the trick I compared files with other centos servers but I can't find where is the real problem, I know that is some environment variable. (/sbin/service in all the other servers start with #!/bin/sh) This somewhat explain why bash behave differently Why does /bin/sh behave differently to /bin/bash even if one points to the other? UPDATE: checking inside /etc/profile.d/ I found some differences with other centos servers, a instalation of ruby, redmine, passenger libs make changes in /etc/profile.d/ some months ago apache didn't start because of that, I cleaned the files manually, checking the code of lang.sh I was suspicious so I renamed it... when /etc/profile.d/lang.sh is not present /sbin/service start using sh as shell when /etc/profile.d/lang.sh is in present /sbin/service start using bash as shell I hope this help someone else, this problem generated a lot of little bugs hard to find.
    0
  • cPanelMichael
    I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.