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.

Cpanel / Exim update deleted /etc/exim.conf

Discussion in 'General Discussion' started by FreedomNet, Oct 11, 2004.

  1. FreedomNet

    FreedomNet Active Member

    Joined:
    Mar 29, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    We are currently running WHM 9.9.0 cPanel 9.9.1-S50
    RedHat Enterprise 3 i686 - WHM X v3.1.0
    Looking at WHM this morning the left column is formatted differently so I am assuming cPanel was auto updated last night. The issue is Exim now fails, can not send or recieve messages on ANY domains. Restarting Exim produces:
    Oct 11 09:51:04 freedom exim: 2004-10-11 09:51:04 non-existent configuration file(s): /etc/exim.conf
    Oct 11 09:51:04 freedom exim: exim startup failed
    We run a very vanilla system and have never updated or modified the /etc/exim.conf. Does anyone know how / why the Cpanel update deleted this file and will it be a problem if we restore a copy from before the cpanel update?
    THANKS!
     
    #1 FreedomNet, Oct 11, 2004
    Last edited: Oct 11, 2004
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No idea why it broke, but you should be able to fix it with:

    /scripts/buildeximconf

    If that doesn't fix it, you can resinstall Exim with:

    /scripts/exim4
     
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    hmm strange i had the same problem on one box of mine. exim.conf was removed. I had to reinstall exim and get the conf back. Don;t remember seeing anything like this earlier.
     
  4. FreedomNet

    FreedomNet Active Member

    Joined:
    Mar 29, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Johnathan, thanks for the help. /scripts/buildeximconf allowed me to get Exim back up (Exim restarts clean through WHM), but thre are 2 other issues now. One is you can not send email (all domains recieve "please enter user name and password prompt" when trying to send via Outlook) and and email sent from an outside domain is lost (no message back to sender and the email does not end up in mail queues). After sending some more form off host email server to the failing Exim server, I was able to see smessages in the mail queue like:
    60P Received: from mailnull by freedom.freedomnetworking.net with local (Exim 4.34)
    id 1CH3IM-0005Jp-26
    for plymouth@theramp.net; Mon, 11 Oct 2004 11:45:10 -0500
    041 X-Failed-Recipients: ddemark@comcast.net
    031 Auto-Submitted: auto-generated
    073F From: Mail Delivery System <Mailer-Daemon@freedom.freedomnetworking.net>
    025T To: plymouth@theramp.net
    059 Subject: Mail delivery failed: returning message to sender
    062I Message-Id: <E1CH3IM-0005Jp-26@freedom.freedomnetworking.net>
    038 Date: Mon, 11 Oct 2004 11:45:10 -0500

    Here is from a different message in the mail queue:
    unrouteable mail domain "comcast.net"
    (this should be a vaild email address to send email to).

    It looks like exim is rejecting all email being sent to it. Would you recommend reinstalling Exim and if so well this screw up all the domain settings (like autoresponders, passwords, etc.)
    THANK AGAIN!
     
    #4 FreedomNet, Oct 11, 2004
    Last edited: Oct 11, 2004
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It looks like it has trashed your /etc/localdomains files too.

    Upgrading exim should work, as anand said.

    One last alternative before trying would be to run:

    /scripts/mailperm
    /scripts/fixvaliases
     
  6. FreedomNet

    FreedomNet Active Member

    Joined:
    Mar 29, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Johnathan, I ended up having run /scripts/exim4 and that fixed things - thanks a milllion.

    Also, I notiched you provide cPanel and general admin services for dedicated linux servers. I'll look into that as well as it looks like something we might want to take advantage of also.

    Thanks again for taking the time and trouble to help!!!

    Don
     
  7. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    Greetings,

    I posted about that problem like a week ago when they came out with 4.43-0 version for the servers. It just simply ate the exim.conf when it did the automatic update during the nightly upcp run.

    Now it seems others have started seeing this as well.
     
  8. nacs

    nacs Registered

    Joined:
    Aug 23, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Rebuilding exim with /scripts/exim4 fixed the problem for me too.

    This latest cpanel update has been an absolute mess though. This wasn't the only problem that came up. :\
     
  9. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Make sure none of your exim files are chattr +i

    rpm -ql exim (to get a list)

    This is the number one reason why exim installs fail
     
  10. justhost

    justhost Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Halifax, Nova Scotia
    This solution ( /scripts/exim4 ) worked for me temporarily last night but now this morning it is all down again. I have run this scripts again but this time it doesnt fix the problem.....

    Is anyone still having this trouble?
     
  11. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Nick, i don't use chattr on any files still i faced this problem, anyways after reinstalling exim things came back to normal.
     
  12. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Do this

    /scripts/reseteximtodefaults
    /scripts/exim4 --latest

    This will reset your exim.conf to default and force install exim again.

    Tail your /var/log/exim_mainlog to see if you find any errors.

    P.S. And make sure as Nick said no chattr on any of the files, otherwise things can fail.
     
  13. justhost

    justhost Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Halifax, Nova Scotia
    Thanks anand. Can you please explain "Tail".

    Also how do you check to see if no chattr on all of the files?
     
    #13 justhost, Oct 12, 2004
    Last edited: Oct 12, 2004
  14. justhost

    justhost Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Halifax, Nova Scotia
    What other problems have you seen nacs?
     
  15. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    To be on safer side do this

    chattr -i /etc/exim.conf

    As for tail:

    tail -f /var/log/exim_mainlog

    This will show you the exim log, see if you can find any errors. To break from tail, press Ctrl+C.

    You can send mails after executing the commands i mentioned earlier and see if you find any errors.

    It could be some custom modification in exim.conf which caused the problems to you.
     
  16. justhost

    justhost Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Halifax, Nova Scotia
    Excellent. After running

    /scripts/reseteximtodefaults
    /scripts/exim4 --latest

    the mailserver seems to be working. The same problems which were occuring right after the update yesterday morning are back though. Namely the mailing lists are not sending out the moderator notification messages. Well it might be sending them but they are not being received. Last night after I ran /scripts/exim4 this process was working. Now after running the above scripts this morngin the moderator messages are not working??

    Very strange?
     
  17. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Good its working for you.
     
  18. justhost

    justhost Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Halifax, Nova Scotia
    Well mail is flowing....thank you.

    Unfortunately, I still have the mailman issue with moderator problems...lol...
     
  19. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider

    hmm which build are you on ? Try to change to stable and do /scripts/upcp or if you are on stable do a /scripts/upcp --force to force update cpanel. Your mailman could have some problems.

    Still nothing helps its time to look for a sys admin :)
     
  20. Elikster

    Elikster Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    119
    Likes Received:
    1
    Trophy Points:
    18
    Note of Interest - Customized Exim Update Note

    If you have customized the exim.conf to have several features set like DNS RBL or ClamAV, be sure to set a copy as exim.conf.buildtest in /etc so that if Cpanel decide to update the exim, it will copy the exim.conf.buildtest into exim.conf after exim update. It is useful if you have lot of servers to maintain and don't feel like going though each WHM to put in customized entries in the exim and apply it across all servers. Saved me lot of time and maintainaince for this, especially I am working on removing the POP3 before SMTP relaying feature and forcing everyone to use SMTP Authentication entirely for sending emails.
     
Loading...

Share This Page