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!

How can I setup a dedicated ip for exim

Discussion in 'E-mail Discussion' started by ramystyle, May 21, 2009.

  1. ramystyle

    ramystyle Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Montreal
    Whay I am basically looking to do is to setup a sepicific IP for emails only.

    Any idea how ?

    Thank you
     
  2. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    68
    Assuming that you are using Exim.

    Open /etc/exim.conf and go to 'TRANSPORT CONFIGURATION'

    Comment out the existing 'interface' entry and add the following line :-

    interface = X.X.X.X
    (Replace this with the IP that you want to use)

    After making the change, this part of the file should look something like this.

    Code:
     remote_smtp:
      driver = smtp
    #  interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch*  {/etc/mailips}{$value}{}}}{}}
      helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_hostname}}
       interface = x.x.x.x
    Alternatively, you can just put the IP in the file '/etc/mailips'
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 InstaCarma_Tech, May 22, 2009
    Last edited: May 22, 2009
  3. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    242
    Likes Received:
    13
    Trophy Points:
    168
    Location:
    Florida
    There are also several settings in WHM that would allow you to move the IP address of Exim, including the ability to use a different IP for accounts with static IPs.
     
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