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.

Question about mail per domain IP

Discussion in 'E-mail Discussions' started by tutt, Nov 19, 2008.

  1. tutt

    tutt Well-Known Member
    PartnerNOC

    Joined:
    Apr 16, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    For the new feature in the latest cPanel/WHM, you can set exim to send out via the domain's IP rather than the base IP of the server. I have a simple question. Will it still do this for example if a user's script is executed via cron and sends out PHP mail (using PHP from the command line)? Or will it appear to come from the base IP of the server?
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    AFAIK but I could be wrong, all mail originating from PHP will use the servers main IP address to relay out due to it calling the system mailer
     
  3. netguruBO

    netguruBO Registered

    Joined:
    Dec 13, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Same problem here

    I've also set in my WHM the option to send email from the domain ip address, but when the php script of the user invokes the mail command it is sent by the server main IP instead of the domain dedicated IP.

    Anyone knows how to face with this problem? Any help would be really appreciated.

    Thank you
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Most PHP scripts nowadays that send mail have the option to use mail() or use SMTP to send mail. Using SMTP to send mail is currently considered best practice.
     
Loading...

Share This Page