The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send email using a random IP?

Discussion in 'E-mail Discussions' started by saros, Feb 11, 2014.

  1. saros

    saros Active Member

    Joined:
    Aug 28, 2013
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    How do I randomize the IPS?


    this code not work /etc/exim.pl
    -----------------
    Code:
    sub randinet {
    @inet = ("x.x.x.1", "x.x.x.2", "x.x.x.3", "x.x.x.4");
    return $inet[int rand($#inet+1)];
    }
    
     
    #1 saros, Feb 11, 2014
    Last edited: Feb 11, 2014
  2. Sreejit

    Sreejit Member

    Joined:
    Apr 11, 2011
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Alternative Option : You can write script to update IP's in /etc/mailips file. Then set it up as cron to update it every 1 minute.

    Make sure you disable the option "Send email from accounts dedicated IP" in WHM >> Exim configuration editor/manger
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page