Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Send email using a random IP?

Discussion in 'E-mail Discussion' 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:
    51
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on why you prefer to randomize the IP addresses you send out email from?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice