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!

Dedicated Ip For Exim

Discussion in 'E-mail Discussion' started by Dradden45, Jan 28, 2016.

  1. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's possible, but you will have to manually configure the /etc/mailhelo and /etc/mailips files:

    How to Configure Exim's Outgoing IP Address - cPanel Knowledge Base - cPanel Documentation

    The wildcard entry configures the default IP address for any domain names not configured in those files.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I have followed the guide here: Changing Exim's Sending IP - The cPanel Admin

    To set this up initially, go into WHM > Exim Configuration and enable this option:

    ** Send outgoing mail from the ip that matches the domain name in /etc/mailips (*: IP can be added to the file to change the main outgoing interface) [?]
    Or, in /etc/exim.conf.localopts, add/change this line:

    per_domain_mailips=1

    Then run

    /scripts/buildeximconf
    service exim restart

    *The /etc/mailips file should be root:exim, chmod 440 if it doesn’t already exist.

    [Removed - setting /etc/mailips to immutable can result in several problems, including failed account creation attempts]

    Now for actually changing the IP:

    Changing the IP Globally
    If you want everyone on the server to send out on the same IP, just add the following to /etc/mailips:

    *: xxx.xxx.xxx.xxx

    Then add the IP and it’s matching PTR to /etc/mail_reverse_dns:

    xxx.xxx.xxx.xxx hostname.tld

    This will tell Exim to use that IP for any sender on the server.

    Will this also work?
     
    #3 Dradden45, Jan 28, 2016
    Last edited by a moderator: Nov 18, 2016
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,951
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    The documentation in steps in my previous response describe the supported method of defining a default IP address and defining specific IP addresses for specific domain names. The method in your last response is outdated and doesn't reflect that /etc/mailips and /etc/mailhelo are automatically overwritten when enabling the option to send email from an account's IP address.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thanks Michael.
     
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