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.

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:
    1
    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:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider

    The only way to avoid your exim.conf getting overwritten is using the whm exim editor.
     
  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
    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
     
  4. rmbnet

    rmbnet Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    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:
    38
    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.
     
  6. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    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.
     
  7. rmbnet

    rmbnet Well-Known Member

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

    Rob
     
  8. docbreed

    docbreed Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    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:
    16
    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:
     
  10. LuckDragon

    LuckDragon Member

    Joined:
    Jun 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
    Just have a backup copy that replaces it after upcp and does a restart of exim.
     
Loading...

Share This Page