Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    51

    Default Wwhat files in what order does WHM exim conf rebuild use

    Folks:

    I'm trying to understand the the files that go into rebuilding of exim.conf that is done by WHM.

    if the file /etc/exim.conf.dist is that the basic file, then how are exim.local and exim.local.options merged with it?

    This seems to be complex to me, I bet that it's really simple actually, I just need some guidance.

    Thanks

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dmgens View Post
    Folks:

    I'm trying to understand the the files that go into rebuilding of exim.conf that is done by WHM.

    if the file /etc/exim.conf.dist is that the basic file, then how are exim.local and exim.local.options merged with it?

    This seems to be complex to me, I bet that it's really simple actually, I just need some guidance.

    Thanks
    The easiest way to modify the Exim configuration is using the Exim Configuration Editor in WHM. If you want to edit the contents of exim.conf, just click on the Advanced Editor button on that WHM screen.

  3. #3
    Member
    Join Date
    Dec 2006
    Posts
    51

    Default Thanks, But...

    cPanelDavidG

    I Have tried that and I get that annoying message:

    " cPanel was unable to automatically merge your Exim configuration with the new settings that shipped
    with the build you have installed (11.24.4-STABLE_36281) because you have a custom ACL configuration
    which cannot be automatically configured. ", etc.

    So I followed the instructions and updated the /etc/exim.config.local file by adding my ACLs to it after @BEGINACL@ and before @CONFIG@ it still complains, is that normal?

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dmgens View Post
    cPanelDavidG

    I Have tried that and I get that annoying message:

    " cPanel was unable to automatically merge your Exim configuration with the new settings that shipped
    with the build you have installed (11.24.4-STABLE_36281) because you have a custom ACL configuration
    which cannot be automatically configured. ", etc.

    So I followed the instructions and updated the /etc/exim.config.local file by adding my ACLs to it after @BEGINACL@ and before @CONFIG@ it still complains, is that normal?
    Hmm...

    Can you paste the ACLs you are attempting to add?

  5. #5
    Member
    Join Date
    Dec 2006
    Posts
    51

    Default Posting the acls

    Here they are:

    They actually work if you put them in the exim.conf file, but cPanel complains then:

    #++# HELO ACL's
    check_helo:
    #

    accept condition = ${if match {$sender_host_address} {127.0.0.1} {yes}{no}}
    accept condition = ${if match {$sender_host_address} {albq.qwest.net ([192.168.0.65])}{yes}{no}}

    drop condition = ${if match {$sender_helo_name} {.*[.].*} {no}{yes}}
    message = Your mail server announcement ($sender_helo_name) [$sender_host_address] \
    is a single word rather than a FQDN. This is \
    in breach of RFC2821(A)
    log_message = Bad HELO: Not FQDN (A)

    drop condition = ${if match {$sender_helo_name} {localhost[.]*.*} {yes}{no}}
    message = you are not ($sender_helo_name) (B)
    log_message = not me (B)

    # drop from ip only

    drop condition = ${if match {$sender_helo_name}{^[0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,
    3\}\$} {yes}{no}}
    message = IPs ($sender_helo_name) are not compliant in HELO
    log_message = IPs ($sender_helo_name) are not compliant in HELO (C)


    accept

    #--# end of HELO ACL's

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dmgens View Post
    Here they are:

    They actually work if you put them in the exim.conf file, but cPanel complains then:

    #++# HELO ACL's
    check_helo:
    #

    accept condition = ${if match {$sender_host_address} {127.0.0.1} {yes}{no}}
    accept condition = ${if match {$sender_host_address} {albq.qwest.net ([192.168.0.65])}{yes}{no}}

    drop condition = ${if match {$sender_helo_name} {.*[.].*} {no}{yes}}
    message = Your mail server announcement ($sender_helo_name) [$sender_host_address] \
    is a single word rather than a FQDN. This is \
    in breach of RFC2821(A)
    log_message = Bad HELO: Not FQDN (A)

    drop condition = ${if match {$sender_helo_name} {localhost[.]*.*} {yes}{no}}
    message = you are not ($sender_helo_name) (B)
    log_message = not me (B)

    # drop from ip only

    drop condition = ${if match {$sender_helo_name}{^[0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,
    3\}\$} {yes}{no}}
    message = IPs ($sender_helo_name) are not compliant in HELO
    log_message = IPs ($sender_helo_name) are not compliant in HELO (C)


    accept

    #--# end of HELO ACL's
    What you provided above works for me, once I fixed a syntax error. It may be due to posting on the forum, but the following line needs to be a consecutive line in the configuration file:

    Code:
    drop condition = ${if match {$sender_helo_name}{^[0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}[.][0-9]\{1,3\}\$}{yes}{no}}
    When I pasted it from the forum, the line wrapped to a new line.
    Kenneth
    Product Manager
    cPanel, Inc.

  7. #7
    Member
    Join Date
    Dec 2006
    Posts
    51

    Default They work if you edit the exim file directly

    Kenneth:

    But I can't get the WHM exim configuration system to put them there, Don't know why, and yes the last regex wraps at the lease excuse. I'll attach my exim.conf.local file, maybe that will give some more info

    Thanks for you help and time
    Attached Files

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by dmgens View Post
    Kenneth:

    But I can't get the WHM exim configuration system to put them there, Don't know why, and yes the last regex wraps at the lease excuse. I'll attach my exim.conf.local file, maybe that will give some more info

    Thanks for you help and time
    I suggest you open a support ticket regarding this issue. I'm not able to duplicate your scenario on 11.24.4-CURRENT
    Kenneth
    Product Manager
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. Faulty httpd.conf - can't rebuild with rebuildhttpd.conf
    By movielad in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-21-2011, 12:43 PM
  2. Rebuild all awstats.domain.conf files?
    By nichiyume in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-10-2009, 08:36 AM
  3. what are the /etc/exim.conf.mailman* files?
    By Kent Brockman in forum E-mail Discussions
    Replies: 1
    Last Post: 12-03-2008, 02:06 PM
  4. Conf rebuild fix
    By darklord1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-11-2008, 10:57 PM
  5. Exim 4 updates and blown away conf files
    By myrem in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-20-2003, 09:01 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube