Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default Exim Configuration Editor Question

    I cannot edit exim.conf because a cPanel update will overwrite it.

    I need to change the IP used to send mail, within the Exim Configuration Editor in WHM.

    Each time I try, I place the code in the box below:

    message_prefix =
    message_suffix =

    I enter:
    interface = ip

    I also have tried:
    interface=ip

    An error displays at each save, "Invalid syntax"

    I thought the same thing would be typed as you would type in exim.conf directly.

    Does anyone have any advice on this?


  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    I was looking through the exim site.. it appears there is really no other way to type that. Hmm.

  3. #3
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    You need to find the folowing section of exim.conf (transports section)

    Code:
    remote_smtp:
      driver = smtp
    and then change that to

    Code:
    remote_smtp:
      driver = smtp
    
    interface = 123.123.123.123
    123.123.123.123 being the IP you want exim to use. Restart exim after making the change.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    Quote Originally Posted by HostDime
    I cannot edit exim.conf because a cPanel update will overwrite it.
    Thanks.. but. ^

  5. #5
    Ramsy
    Guest

    Default

    in shell edit /etc/exim.conf.dist (be sure to make a backup first)
    then save and do a /scripts/buildeximconf

    restart exim with service exim restart and you're done

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    This way my changes won't be overwritten?

    Thank you.

  7. #7
    Ramsy
    Guest

    Default

    not sure what other modifications you made ....
    check out exim.conf.local, exim.conf.localopts and exim.conf.dist

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    I think I will reword my question at this time.

    It is to my understanding and also confirmed by my testing, if you change the IP in exim.conf directly, it is overwritten with a cPanel update.

    I need to make a change, and have it stay. I don't need it to be overwritten.

    Therefore, I want to change it in WHM directly in the editor because it claims to not overwrite your changes if you do it that way.

    However, when I do this, I always get an error. Option INTERFACE unknown. Then it states that the changes have been saved, but they have not.

    So this is where I am. I need to know what to type since it is not accepting "interface".

    Here is what I type and what happens afterwards, with screenshots.

    I hope that we can figure this out here and hopefully help someone else out in the future. This problem so far is driving me batty and I wouldn't wish this on anyone.



    Last edited by HostDime; 04-14-2005 at 01:50 PM.

  9. #9
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    As mentioned, if you want to change the IP that exim binds to, you need to add this

    Code:
    remote_smtp:
      driver = smtp
    
    interface = 123.123.123.123

    You added the interface config in the wrong section of exim.conf - Try adding it where I suggested and it will work, directly under the existing driver = smtp line, you need interface

    You may not be able to edit that using the whm editor, as I don't think it allows an entry there, no box on that part. Enter it manually and see if that works for you, I have been adding this config to exim for near 2 years, so it should work for you 2

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    I understand where to add it in exim.conf. But I do not want to add it there. This is the issue.

    It will get overwritten when cPanel updates.

    It seems it is not possible to make this change in WHM.

    If so, this is not very good.
    Last edited by HostDime; 04-14-2005 at 03:24 PM.

  11. #11
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    Ok, fair enough, I was just explaining why you were getting the error, as you seem to be confused with the exim.conf syntax and why the error was being displayed.

    I always keep a copy of exim.conf and if it gets wiped, I install the backup copy, write a /scripts/postupcp to make the change automatically, if exim.conf gets updated.
    I haven't found it to be too much of a problem, as I liked to make sure that exim updates were done manually and that isn't all that often that exim needs reinstalling or updating.

    You may be able to add the interaface config manually to one of the exim.conf.* files to have the changes written back automatically too should it get updated, but I've never looked into that, maybe you could trial and error it or maybe someone else can chime in with that info.

  12. #12
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    I always edit exim.conf without issues. I recently discovered that a cPanel update wipes changes that I make to the file.

    This is why I want to edit the file via WHM. I need to do this to a few servers, and would like the change to stay.

    But the edit box does not appear directly below driver = smtp.
    Though there is one above that section.

    Either box gives me the same error as seen in the screenshot.

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    Quote Originally Posted by DigitalN
    You may be able to add the interaface config manually to one of the exim.conf.* files to have the changes written back automatically too should it get updated, but I've never looked into that, maybe you could trial and error it or maybe someone else can chime in with that info.
    I think what Ramsy mentioned might be the solution but I wasn't sure if he understood what I was doing, since there appeared to be some confusion.

    "in shell edit /etc/exim.conf.dist (be sure to make a backup first)
    then save and do a /scripts/buildeximconf

    restart exim with service exim restart and you're done"

    Ramsy, can you confirm that it's a permanent change? Thanks!

  14. #14
    cPanel Partner NOC cPanel Partner NOC Badge HostDime's Avatar
    Join Date
    Mar 2003
    Location
    Orlando, Florida
    Posts
    82

    Default

    I emailed cPanel the same day I asked here, they do not have the explanation either.

  15. #15
    cPanel Partner NOC cPanel Partner NOC Badge fmalekpour's Avatar
    Join Date
    Dec 2002
    Posts
    85

    Default

    Changes will not be permanent, Here is what you need to do:

    In WHM on Exim Configuration Editor, rewrite two routers, There is an edit box bellow "ROUTERS CONFIGURATION", Box is before "lookuphost" router, Put these lines to that box:


    (7th box from top in exim configuration)
    mylookuphost:
    driver = dnslookup
    condition = "${perl{checkspam}}"
    domains = ! +local_domains
    ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24
    headers_add = "${perl{mailtrapheaders}}"
    transport = my_remote_smtp

    myliteral:
    driver = ipliteral
    condition = "${perl{checkspam}}"
    domains = ! +local_domains
    headers_add = "${perl{mailtrapheaders}}"
    transport = my_remote_smtp

    Then move down to "TRANSPORTS CONFIGURATION", On edit box there (just up the remote_smtp transporter) put these lines:

    (12th box from top in exim configuration)
    my_remote_smtp:
    driver = smtp
    interface = 72.29.75.244
    This will be permanent and will not change by CPanel updates.


    Good Luck
    F.Malekpour
    Dayana Networks Ltd.

Similar Threads & Tags
Similar threads

  1. Exim Configuration Editor
    By mesranet in forum E-mail Discussions
    Replies: 3
    Last Post: 06-26-2011, 02:25 PM
  2. Exim Configuration Editor question
    By drsceifers in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-04-2008, 01:04 PM
  3. exim configuration editor
    By cappac in forum E-mail Discussions
    Replies: 3
    Last Post: 05-19-2008, 04:06 PM
  4. Using Exim Configuration Editor but my new rules not save at exim.conf
    By isputra in forum cPanel and WHM Discussions
    Replies: 23
    Last Post: 03-07-2007, 08:14 PM
  5. Exim Configuration Editor
    By ymfm in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-22-2004, 11:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube