Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default I changed the IP of Exim, but what about cgi/php scripts?

    I successfully changed the IP address in the exim.conf and exim_outgoing.conf files and that seems to work ok.

    However, it seems like mail sent through cgi and php scripts still goes out over the old IP address. Did I miss something, or is this even possible to change?

  2. #2
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Scripts normally use Sendmail, which I believe always uses the main server IP.

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Quote Originally Posted by webtiva View Post
    Scripts normally use Sendmail, which I believe always uses the main server IP.

    Ok, would there be any way possible to change the IP address that sendmail uses?

  4. #4
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Hmm, now that I think on this - cPanel usually has Exim take over sendmail, so that might not be the problem at all... Weird...

    Does your server's hostname still resolve to the old IP? Look for a "primary_hostname=" line in your exim.conf maybe, and see what it resolves to...

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Quote Originally Posted by webtiva View Post
    Hmm, now that I think on this - cPanel usually has Exim take over sendmail, so that might not be the problem at all... Weird...

    Does your server's hostname still resolve to the old IP? Look for a "primary_hostname=" line in your exim.conf maybe, and see what it resolves to...
    I'm not seeing a "primary_hostname=" in the exim.conf file..? I do see one in the exim_outgoing.cnf file, but it is blank and commented out?

    My host name does still resolve to the old IP address because I was just wanting to change the mail IP address, and not the shared IP address itself?

  6. #6
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Hm, very weird if it's sending out over your new IP for other accounts, but scripts are not. Might want to put in a support ticket or wait for Chirpy or someone more familiar with the Exim process as a whole to comment. Sorry! I've never run into this one before. But I was under the assumption that it used the hostname to send out mail for everyone...

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Ok, maybe I'm smoking something or I'm just loosing it. I just did some more tests and the scripts are sending out using the new IP....

  8. #8
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Thought that was odd.. glad to see it's working for you.

Similar Threads & Tags
Similar threads

  1. CGI scripts not sending email, php scripts will
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-17-2006, 04:20 AM
  2. apache parsing non php or cgi or pl scripts
    By dchepishev in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-08-2006, 11:59 AM
  3. cgi/php scripts slow
    By Daemon1 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-19-2006, 04:04 AM
  4. php & cgi scripts forwarding mail bombs, how to neutralize?!
    By porcupine in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-22-2002, 11:21 AM
  5. Nobody-Mail-Problem with PHP & CGI-Scripts
    By JapAniManga.ch in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-08-2002, 02:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube