Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

custom exim.conf

Discussion in 'General Discussion' started by LuckDragon, Aug 25, 2004.

  1. LuckDragon

    LuckDragon Member

    Joined:
    Jun 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    how do I create a custom exim.conf file without having to worry about it getting overwritten evertime cpanel does updates..

    it doesn't even backup the exim.conf file properly.. it overwrites it THEN backs it up.. (or that's how it seems looking at the date/time on the files)..

    I don't want exim.conf overwritten.. unless there's a MAJOR version change.. I use eximconfig to help kill 95% of the spam that comes to my server (much more efficient.. and less server intensive than spam assassin)..

    any ideas?
     
  2. anand

    anand Well-Known Member

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

    The only way to avoid your exim.conf getting overwritten is using the whm exim editor.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    I just looked at eximconfig, it looks real nice on the first look. Let me check if i can make use of it someway and still make cpanel not overwrite the exim.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rmbnet

    rmbnet Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    156
    shell into your server, su ..

    cd /etc
    chattr +i exim.conf

    to make it writable again.. chattr -i exim.conf

    Rob
     
  5. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    You forget only one thing that when the cpanel exim update runs, the first thing it does is chattr -i exim.conf.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,191
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    Root Administrator
    remove the "chattr -i exim.conf" from the exim update script and then keep the exim.conf with the "chattr +i" option.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. rmbnet

    rmbnet Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    156
    Ahh yes, thanks!

    Rob
     
  8. docbreed

    docbreed Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    Any good install tuts for eximconfig for cpanel?
     
  9. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    But would'nt Exim update script get updated/over written with chattr -i when Cpanel update/upgrade runs..? :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. LuckDragon

    LuckDragon Member

    Joined:
    Jun 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    yes, it would, that's why in the above post it says to remove the chattr command from the update script
     
  11. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    Just have a backup copy that replaces it after upcp and does a restart of exim.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice