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.

Exim on Other IP

Discussion in 'E-mail Discussions' started by dkz, Oct 29, 2007.

  1. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    I am attempting to have exim use another IP address located on my server however it refuses to and keeps using the primary IP address. I followed the instructions listed in another post (http://forums.cpanel.net/showpost.php?p=181360&postcount=15) and checked exim.conf for the changes and they are there. I also tried just modifying
    remote_smtp:
    driver = smtp
    interface = xx.xx.xx.xxx

    Exim restarts with no errors but it still uses the old IP address according to the mail headers.

    If you have any ideas, please let me know.
    Thank you!
     
    #1 dkz, Oct 29, 2007
    Last edited: Oct 29, 2007
  2. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    I got it to work however the changes will be overwritten by cpanel every time it updates. Here is what my exim config now looks like.

    Code:
    my_remote_smtp:
    driver = smtp
    interface = xx.xx.xx.xxx
    
    
    
    remote_smtp:
      driver = smtp
      interface = xx.xx.xx.xxx
    dk_remote_smtp:
      driver = smtp
      interface = xx.xx.xx.xxx
      dk_private_key = "/var/cpanel/domain_keys/private/${dk_domain}"
      dk_selector = default

    Does anyone have any suggestions on how I can stop it from being overwritten?

    Thanks!
     
  3. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Edit it using WHM / Exim Configration Editor. Then when you save the changes they will not be overwritten.

    Mike


     
  4. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    I did use the WHM config to set it up however, since the exim config says the following once edited in WHM
    Code:
    my_remote_smtp:
    driver = smtp
    interface = xx.xx.xx.xxx
    
    remote_smtp:
      driver = smtp
    
    dk_remote_smtp:
      driver = smtp
      dk_private_key = "/var/cpanel/domain_keys/private/${dk_domain}"
      dk_selector = default
    That doesn't work but the following does
    Code:
    my_remote_smtp:
    driver = smtp
    interface = xx.xx.xx.xxx
    
    remote_smtp:
      driver = smtp
    
    dk_remote_smtp:
      driver = smtp
      interface = xx.xx.xx.xxx
      dk_private_key = "/var/cpanel/domain_keys/private/${dk_domain}"
      dk_selector = default
    I narrowed it down and since I am using domain keys, I need to place interface = xx.xx.xx.xxx in the dk_remote_smtp: section. Can I add that in WHM?
     
Loading...

Share This Page