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.

Outgoing mail ip

Discussion in 'E-mail Discussions' started by popeye, Jun 2, 2013.

  1. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi i want to know how i can set the outgoing ip myself so if it ever gets blocked i can change with one in my subnet

    I found this link below, the first steps Configuring Exim from WHM is easy its the rest i get stuck with.

    Changing the Sending IP for Outbound Email in Exim

    But when i look in Editing /etc/mailhelo & Editing /etc/mailips its blank or is this meant to be like this so i just add mine ? also i see that i have to add this below, but just need to know what i have to change i am very new to all this and need it explaining in easy to follow steps, if someone could help i would really appreciate it.

    example.com: example.com
    sub.example.com: example.com
    example.net: example.net
    addon.example.net: example.net
    *: hostname.example.com

    example.com: 192.168.0.2
    sub.example.com: 192.168.0.2
    example.net: 192.168.0.3
    addon.example.net: 192.168.0.3
    *: 192.168.0.1
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Yes, You have have to add your NEW ip and hostname in /etc/mailips and /etc/mailhelo file.

    Open /etc/mailips files and add your new IP which you want to set for the exim


    And add your server hostname in /etc/mailhelo file

    Login to WHM and got to WHM >> Exim Configuration Editor >> Domains and IP >> Enable >> "Reference /etc/mailips for outgoing SMTP connections"
     
  3. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi thanks for the reply so like this below ?

    *: NEW-16.123.2.3

    *: SERVER-my.server.com

    But if above is correct what's all this below for ?

    example.com: example.com
    sub.example.com: example.com
    example.net: example.net
    addon.example.net: example.net
    *: hostname.example.com

    example.com: 192.168.0.2
    sub.example.com: 192.168.0.2
    example.net: 192.168.0.3
    addon.example.net: 192.168.0.3
    *: 192.168.0.1
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You will have add following on your server

    *: 16.123.2.3

    *: my.server.com


    If you have any domain on your server with dedicated ip address, and if you want to continue to send emails from this/these ip address instated of using main/shared ip address, you will need to check in WHM > Exim Configuration Editor to have the dedicated IPs automatically used:

    And add following lines in your in /etc/mailips and /etc/mailhelo file.

    /etc/mailips: example.com: 192.168.0.2

    And /etc/mailhelo : example.com: example.com

     
  5. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Thank you very much for the easy way to do this very much appreciated.
     
  6. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Forgot to ask would it be best to set this up now before the main IP gets black listed or wait to see if it does ?
     
  7. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    If your client are facing lot of mail issues (bounce back, mail delivery failed) than I will suggest you change your exim IP and place IP unblock request and once your IP get unlocked you can revert back the changes so that your server will send the mails from main IP of your server
     
  8. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    This is a new server just gone online so no problems just yes but wanted to know what to do if i did,

    Can you tell me where i can request IP unblock which sites i need to go to please i am new to all this because i have always had managed servers in the past.
     
  9. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's also a good idea to implement options to prevent email abuse from occurring. There is a document on this at:

    cPanel - Prevent Email Abuse

    Thank you.
     
  11. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi thanks for this i have managed to find most but cant find suEXEC or mod_ruid2

    - - - Updated - - -

    Sorry found mod Ruid2 but says EXPERIMENTAL
     
  12. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    ok got all these enabled suPHP and suEXEC or mod_ruid2
     
  13. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi my settings below is this correct ?

    enabled suPHP suEXEC & mod_ruid2

    Max hourly emails per domain 500

    Count mailman deliveries towards a domain’s Max hourly emails on

    Maximum percentage of failed or deferred messages a domain may send per hour, it wont let me set this to 125% ? keeps going back to default

    also got this message below after changing them ?

    System Integrity checking detected a modified system file
    /usr/bin/phar: FAILED
    /usr/bin/phar.phar: FAILED
    /usr/bin/php: FAILED
    /usr/bin/php5: FAILED
    /usr/bin/php5-cgi: FAILED
    /usr/bin/php5-cli: FAILED
    /usr/bin/php-cgi: FAILED
    /usr/bin/php-cli: FAILED
    /usr/bin/php-config: FAILED
    /usr/local/bin/phar: FAILED
    /usr/local/bin/phar.phar: FAILED
    /usr/local/bin/php: FAILED
    /usr/local/bin/php-config: FAILED
     
    #13 popeye, Jun 3, 2013
    Last edited: Jun 3, 2013
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The value for "email_send_limits_max_defer_fail_percentage" must be an integer of 1 through 100. 0 is used for unlimited.

    The description for this option is as follows:

    The maximum percentage of a domain's outgoing mail that can consist of failed or deferred messages. Once the domain exceeds this percentage, it is temporarily blocked from sending mail.


    This message comes from your third-party LFD application, and not from cPanel. You may want to ask this particular question on their forums:

    CSF/LFD Support

    Thank you.
     
Loading...

Share This Page