Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member dev_cw's Avatar
    Join Date
    Jun 2004
    Posts
    59

    Default Edit exim.conf

    Hello,

    I am trying to edit my exim.conf file but am having some tropuble.

    1) when I edit it in Exim Configuration Editor it will record the changes but I don't think that the changes are working, I removed a few ACLs that were still working after the update. If I look into the exim.conf file it has not been updated.

    2) The exim.conf.buidtest has been updated to reflect my changes and the contents of the 'edit' boxes can be found in exim.conf.local

    3) If I try to copy replace exim.conf I get:
    Code:
    root@server [~]# cp /etc/exim.conf.buildtest /etc/exim.conf     
    cp: overwrite `/etc/exim.conf', overriding mode 0644? y
    cp: cannot create regular file `/etc/exim.conf': Permission denied
    So my question is how do I effectively edit the exim configuration.

    Thanks

  2. #2
    Member
    Join Date
    Apr 2004
    Posts
    147

    Lightbulb Try this

    Run exim -bV

  3. #3
    Member dev_cw's Avatar
    Join Date
    Jun 2004
    Posts
    59

    Default

    I get:
    Configuration file is /etc/exim.conf
    However I still cant edit the file since it claims I don't have permission which is odd since I am running as root. When I try to edit I get:
    Code:
    root@server [~]# cp /etc/exim.conf.buildtest /etc/exim.conf     
    cp: overwrite `/etc/exim.conf', overriding mode 0644? y
    cp: cannot create regular file `/etc/exim.conf': Permission denied
    And the saved conf from whm is not being used, so my edit is not working.

    All the exim.conf files have the same owner and group so I don't understand the permission error?

    Code:
    -rw-r--r--   1 root     root    39007 Jan 11 19:22 exim.conf
    -rw-r--r--   1 root     root    39007 Jan 25 23:25 exim.conf.bkup
    -rw-r--r--   1 root     root    39023 Jan 25 22:57 exim.conf.buildtest
    -rw-r--r--   1 root     root    11551 Jan 25 22:57 exim.conf.local

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    10

    Default

    I had the same experience as you, but I noticed something. It appears to me that exim.conf.buildtest or exim.conf.local are a symbolic link to exim.conf.
    I will confirm later on today and check to see, but I recall seeing that when I was editing this file via the exim configurator in WHM.
    Have you tried to restart exim after you made yoru changes and test out those changes to see if they are working as you expected them to be?
    Thanks,
    WB

  5. #5
    Member dev_cw's Avatar
    Join Date
    Jun 2004
    Posts
    59

    Default

    No, the changes are not working after restart exim. The file does not look like a symlink.

    Thanks

  6. #6
    Member
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    217

    Default

    try
    Code:
    lsattr /etc/exim.conf
    and see if you have i set it should look like

    Code:
    lsattr /etc/exim.conf
    ------------- /etc/exim.conf

    A file with the ‘i’ attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file.
    Affordable Linux Server Managament Solution
    http://www.linuxnetworkcare.com/services/cpanel.php
    [ Phone: 647-722-5303 MSN : sutha@linuxnetworkcare.com AIM : xerophytev skype:ksutha5]

  7. #7
    Member dev_cw's Avatar
    Join Date
    Jun 2004
    Posts
    59

    Default

    I do get:
    Code:
    lsattr /etc/exim.conf
    ------------- /etc/exim.conf
    If this is the case what can I do? It is not being written to from the Exim Configuration Editor so I can't edit any ACLs.

    I am stumped.

    In case it helps I am on CentOS 4.4 currently running cPanel 10.9.0-C131 but this started when I updated to C117.

    ____
    Update: I think I found the cause of this, it turns out that my host super usered in to my VPS and edited the exim.conf to remove the reference to relays.ordb.org since they closed down. I have a super user login warning that I received by e-mail on Jan 11 and the only edit is the removal of the relays.ordb.org reference...I HATE it when sysadmins do something and don't tell you (or the rest of the support staff) about it!!! Even if it was for a good cause. For now I wait for level-3 to unlock the file.
    Last edited by dev_cw; 01-26-2007 at 03:49 PM.

  8. #8
    Member kdarray's Avatar
    Join Date
    Apr 2006
    Location
    Washington
    Posts
    81

    Default try this

    try running this command to change the attributes of the file so you can edit and save. i had this same issue about a month ago:

    chattr -RV -i /etc/exim.conf

Similar Threads & Tags
Similar threads

  1. edit spamd_address in exim.conf
    By andyf in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 07-29-2010, 02:35 AM
  2. Help - how to edit httpd.conf
    By badzilla in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 03-06-2008, 01:22 PM
  3. Edit httpd.conf
    By looloo in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 12-01-2006, 09:28 AM
  4. How do I edit httpd.conf?
    By Izkabola in forum Data Protection
    Replies: 12
    Last Post: 12-21-2004, 08:03 AM
  5. proftpd.conf ,can i edit it?
    By Jedia in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-26-2004, 12:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube