Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    556
    cPanel/Enkompass Access Level

    DataCenter Provider

    Question copy rbl settings across multiple servers

    Is there a way for us to use rsync and copy the RBL settings we have across all our cpanel systems.
    It was fine back in the day when we had 25 or 30 servers - but going through all of them and doing updates to include new rbl's - turning them on, adding the same ACL's over and over - is a bit of a pain in the rear.

    Any thoughts ?



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  2. #2
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: copy rbl settings across multiple servers

    Howdy,

    I would check out our Edge version. We have a lot of changes to our exim configuration management that may help you with this.

    Thanks!

  3. #3
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    556
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: copy rbl settings across multiple servers

    good to know.

    I try to stick away from the edge.... my fat a** might fall in ... ha ha .

    Will try it on a test system - thanks for the reply and update.



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  4. #4
    cPanel Staff
    Join Date
    Dec 2010
    Location
    ¯\_(ツ)_/¯
    Posts
    87
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: copy rbl settings across multiple servers

    An RBL being enabled/disabled is stored as an exim local option.

    This command will show you what the settings look like in /etc/exim.conf.localopts that would need to be mirrored to the destination machine.
    Code:
    # grep "acl_.*_rbl" /etc/exim.conf.localopts
    acl_spamhaus_rbl=1
    acl_spamhaus_spamcop_rbl=0
    acl_spamcop_rbl=0
    Note that if you see any other RBLs beyond that list above, then you've setup custom RBLs. In such a case, you'd need to also be sure to copy the contents of /var/cpanel/rbl_info/ to the new destination server as well.

    Further, if you wanted to copy the entire "Exim Configuration" page of settings (except for the "Advanced Configuration" section) then you could just copy /etc/exim.conf.localopts directly to the destination box (still be mindful of if you have custom RBLs as above).

    If you also want to copy the "Advanced Configuration" section, that's just a matter of copying /etc/exim.conf.local. Note that exim.conf.local is strictly tied to a template version. If your exim.conf.local is from a newer/older Exim Configuration Template version than the destination server then it can't be copied/restored to it.

    Once you've copied whatever files you've chosen to copy, you'll have to instruct cPanel & WHM to rebuild /etc/exim.conf based upon that info.

    Code:
    /scripts/buildeximconf
    As Eric has mentioned, though, the Exim Configuration Editor has gone through a substantial rewrite in 11.31+ (Currently in Edge only) which inherently supports export/import of configurations. So, this process will be substantially easier in 11.31+ let alone able to be accomplished through the UI.

    Note: As with anytime you're overwriting files, be sure to backup everything involved before taking any action in this post so you can revert back to how things were if this doesn't work out for you as expected. /etc/exim.conf, /etc/exim.conf.localopts, /etc/exim.conf.local, etc.

  5. #5
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    556
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: copy rbl settings across multiple servers

    Brian - awesome response! that is exactly what I needed.

    We run a source system for a ton of other things and use rsync quite a bit to push out to each server.
    Doing this for exim is a better option.

    The new Gui looks nice - but when your pushing out options to roughly 400 systems - rsync is much easier :-)
    otherwise it is still a ton of login then import save - logout and repeat on another system.



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

Similar Threads & Tags
Similar threads

  1. Copy an account and preserve customized DNS settings?
    By JamesAB in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-26-2010, 11:03 PM
  2. Copy multiple accounts
    By benito in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-01-2007, 07:54 AM
  3. Copy multiple accounts does nothing
    By skorpio in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-06-2006, 11:11 PM
  4. Copy old cpanel settings to new setup???
    By devGOD in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-27-2005, 05:14 AM
  5. copy multiple accounts
    By brandonk in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 02-26-2003, 05:30 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube