Results 1 to 13 of 13
  1. #1
    Join Date
    Sep 2008
    Posts
    93

    Thumbs up ip rotation in exim

    Hi,

    I want to rotate ip addresses in exim....i have 2 different series/pool of ip address with me,i want to add the same in exim to rotate the ip address in exim.

    1. Pool :- 10.10.10.7 to 10.10.10.37
    2. Pool :- 20.20.0.6 to 20.20.0.15


    Note :- I want to rotate the ip address,to improve the ip reputation.

    Thanks,
    P-root

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    You could use a simple bash script to achieve the results
    Sam
    Supportlobby.com - Expertise in Windows/Linux server support, IaaS and PaaS Management
    Spiralbean.com - Custom Software Development
    Email: exec @ activelobby.net | Skype: unni_active

  3. #3
    Join Date
    Sep 2008
    Posts
    93
    Hi,

    Can you please help me for the same.

    Thanks,
    p-root

  4. #4
    Join Date
    Sep 2008
    Posts
    93
    Hi,

    In cpanel version 11.30 ip roation not working....earlier it was working perfectly with :-

    interface = 192.168.0.1${eval:${substr{-2}{1}{$tod_zulu}}%7+1}

    But now in new version of cpanel 11.30 it's not working.

    Any one have the clue how can enable ip rotation in exim in Cpanel 11.30 version.

    Thanks,
    P-root
    http://unixsurgoen.com/kb

  5. #5
    Join Date
    Sep 2008
    Posts
    93
    Hi,

    I have solved my problem with create script with iptables rules.....Thanks for your all support.
    Thanks,
    p-root
    http://unixsurgeon.com/kb
    Linux WebHosting Solution, Linux How to's, Server Management , Linux Solution , KnowledgeBase , Linux Tutorial

  6. #6
    You could also create a bash with replaces the IP in the config for another one with perl as example. Glad you fixed it already!

  7. #7
    Quote Originally Posted by p-root View Post
    Hi,

    I have solved my problem with create script with iptables rules.....Thanks for your all support.
    Hi p-root

    Can you share how you do it. I am having the same problem. thnx

  8. #8
    Join Date
    Aug 2010
    Location
    /bin/bash
    Posts
    124
    Hi,

    Take a look at the following.

    vi /etc/exim.conf
    Search for the line : interface =

    Replace this line with

    interface = xxx.xxx.x.1${eval:${substr{-2}{1}{$tod_zulu}}%9+1}

    If your server is having ip’s from xxx.xxx.x.11 to xxx.xxx.x.20 , you can use above line.

    +1 is is the starting ip ie xxx.xxx.x.1’1′ and %9 is the increment value ie 11(xxx.xxx.x.11) to how much. Here it is 20 (xxx.xxx.x.20)
    When all else fails ... Read the documentation!!!


  9. #9
    Quote Originally Posted by arunsv84 View Post
    Hi,

    Take a look at the following.



    Search for the line : interface =

    Replace this line with

    interface = xxx.xxx.x.1${eval:${substr{-2}{1}{$tod_zulu}}%9+1}

    If your server is having ipís from xxx.xxx.x.11 to xxx.xxx.x.20 , you can use above line.

    +1 is is the starting ip ie xxx.xxx.x.1í1′ and %9 is the increment value ie 11(xxx.xxx.x.11) to how much. Here it is 20 (xxx.xxx.x.20)
    it was said by p-root that it is not working anymore on latest cpanel version. haven't tried this though, how can this be done if your IP pool is broken like this:
    xxx.xxx.xxx.146-148 and xxx.xxx.xxx.160-165

  10. #10
    Join Date
    Nov 2004
    Location
    Australia
    Posts
    1,683
    Great way to get your entire class C blocked

    You might want to look at cPanel's options for sending emails from their site IP. This works reasonably well and means if someone does something that gets blocked it only affects them.

    Then, put your high risk domains on another IP.

    I'd think your IP rotation scheme, while really really clever and ingenious*, would lead to possible random IPs being blocked and then email will fail randomly, creating a support nightmare. I suspect this doesn't happen much in real life due to the lack of outgoing spam, but it's possible, and messy.

    You could also use an auto-alert script or website - there are several that will send alerts, and a simple one at www.whmscripts.net (our site) which will email you if any of your server IPs are found on a set of nominated blocking lists.

    * and much admired by myself!

  11. #11
    With latest version of cpanel you can simply change the IP specified in the /etc/mailips file.
    Want to sell domain names? Sign up today for an eNom.com reseller account from a trusted eNom ETP provider.
    * We provide support and service to over 3245 happy eNom domain name and SSL certificate resellers!

  12. #12
    Join Date
    Aug 2010
    Location
    /bin/bash
    Posts
    124
    Quote Originally Posted by mrzippy View Post
    With latest version of cpanel you can simply change the IP specified in the /etc/mailips file.
    Yeah. Thats correct. I don't think automatic ip rotation is possible through /etc/mailips . or write some script to change the ip in /etc/mailips after some particular time or set it as cron.

    Cheers!!!
    When all else fails ... Read the documentation!!!


  13. #13
    Join Date
    Feb 2010
    Location
    SSH Terminal
    Posts
    409
    I am also interested to see a solution that can change IP in /etc/mailips at some particular time interval.

Similar Threads

  1. exim - how to remove rbl lists from exim.conf
    By abusaifedden in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-02-2007, 08:01 PM
  2. Bypassing Exiscan / exim.antivirus from Exim for specific domain
    By tweakservers in forum Hosting Security and Technology
    Replies: 0
    Last Post: 04-09-2006, 06:44 AM
  3. want exim 4.51 config file(/etc/exim.conf) pleaze
    By loverboy in forum Hosting Security and Technology
    Replies: 29
    Last Post: 08-03-2005, 05:23 AM
  4. Exim Problems Any An Guru Exim Tech
    By mpisinc in forum Colocation and Data Centers
    Replies: 1
    Last Post: 11-27-2004, 08:21 AM
  5. exim has failed !! Error : package exim is not installed!!
    By atul in forum Hosting Security and Technology
    Replies: 26
    Last Post: 06-30-2004, 08:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •