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.

exim configuration editor

Discussion in 'E-mail Discussions' started by cappac, May 18, 2008.

  1. cappac

    cappac Member

    Joined:
    Nov 30, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I was trying to modify the virtual_address_pipe transport via WHM editor since I need to add an envelope_to_add directive there.

    Unfortunately I can't modify this section, only add the transport again. This result in an error, exim is complaining about 2 transports with the same name.

    Now I can edit the exim.conf manually. But then I run into problems if CPanel updates exim.conf and overwrites my manual mod.

    Is there any way to make the modification via configuration editor so it does not get overwritten?
     
    #1 cappac, May 18, 2008
    Last edited: May 18, 2008
  2. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Yes, you can "chattr" the exim.conf such that it never gets overwritten, chattr is used for changing the attributes of files.

    Here's the command that needs to be executed from within SSH as root:
    Once done, the exim configuration file will be immutable...
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You mention two different methods of editing the configuration: using the configuration editor vs. editing exim.conf manually.

    If you edit the file manually, even with +i, it will be overwritten by cPanel/WHM updates.

    If you edit the file via the configuration editor in WHM, your changes will be preserved.
     
  4. cappac

    cappac Member

    Joined:
    Nov 30, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, both answers are helpful and I knew them already :)

    I would like to go with the editor, unfortunately I don't see a way to implement the needed modification.

    The manual way is a workaround only.
     
Loading...

Share This Page