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 do I change ip that email leaves & comes back to?

Discussion in 'E-mail Discussion' started by wildonehosting, Mar 12, 2005.

  1. wildonehosting

    wildonehosting Registered

    Joined:
    Mar 5, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Apparently when the security of one of our servers was compromised awhile back with a php file that generated an enormous amount of spam aol & a few other companies blocked our users from emailing people who are on their service! I was wondering if anyone had any suggestions or how we could change the IP that email leaves & returns on so that we can get arround block now that problem has been resolved!
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    168
    Find this part of exim.conf

    remote_smtp:
    driver = smtp

    and change it to

    remote_smtp:
    driver = smtp
    interface = 123.123.123.123


    Where 123.123.123.123 is your IP to set the mail server to use.

    Make sure that you have a new PTR (reverse dns) record added by the datacenter for that IP.

    Restart exim once the change has been made.
     
    #2 DigitalN, Mar 13, 2005
    Last edited: Mar 13, 2005
    wadearnold likes this.
  3. Ali

    Ali Well-Known Member

    Joined:
    Jul 12, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    Is there a way to possibly configure EXIM to use a different interface for specific Domain(s)?

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I guess it's possible. Unless someone posts with a way to do it, you'd be better of having a look at exim's site or asking on the exim mailing list.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    This isn't particularly polished but it looks to provide a reasonable answer:

    http://nixdoc.net/files/forum/ptopic44008.html

    Let us know how you go, I'm sure a lot of people are interested in this.

    Also, if you want cpanel to add this as a feature, please vote for the bugzilla enhancement request to allow the outgoing email IP to be specifiable in WHM:

    http://bugzilla.cpanel.net/show_bug.cgi?id=2563
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    DigitalN's procedure for changing the outgoing SMTP IP address works perfectly, just for the sake of the record.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. DaveT

    DaveT Active Member

    Joined:
    Aug 20, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    151
    I also need to do this...

    I'm also in the position of needing to add an
    interface = xx.xx.xx.xx
    into my exim.conf ... whilst I can manually do that, each time that I do a cPanel update it's likely that my changes will be over-written.

    The
    remote_smtp:
    driver = smtp
    is just underneath an input box, however placing the "interface" statement there is blatantly wrong, and trying to put the whole
    remote_smtp:
    driver = smtp
    interface = xx.xx.xx.xx
    block in the box makes the syntax check complain because there are two sets of remote_smtp.

    Is there a cPanel friendly way of achieving this that won't be over-written???
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    AFAIK, unfortunately, there isn't a cPanel friendly way to add it in. The bugzilla entry Brian has added is requesting one.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    I just put in postupcp to copy MY exim.conf back every time and review the logs to see if they made any changes to exim.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. SubZero

    SubZero Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Balmumcu, Istanbul, TR
    In fact there is one.. and is working perfectly well.. :) check back an old msg:

    http://forums.cpanel.net/showpost.php?p=181360&postcount=15
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Well spotted :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Thanks SubZero. Can also confirm that method works.
     
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