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.

How can I setup a dedicated ip for exim

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

  1. ramystyle

    ramystyle Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    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:
    18
    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'
     
    #2 InstaCarma_Tech, May 22, 2009
    Last edited: May 22, 2009
  3. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    213
    Likes Received:
    4
    Trophy Points:
    18
    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