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.

Dedicated Ip For Exim

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

  1. Dradden45

    Dradden45 Active Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. Dradden45

    Dradden45 Active Member

    Joined:
    Sep 7, 2012
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Michael.
     
Loading...

Share This Page