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.

mail from "own ip"

Discussion in 'E-mail Discussions' started by MrHits, Mar 11, 2009.

  1. MrHits

    MrHits Well-Known Member

    Joined:
    Oct 31, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    I am checking to see if anyone has success with this.

    I am running into the following problem:

    When I enable the feature, mail sent from a script via a users account using sendmail or the phpmail function still comes from the main server's ip, instead of the account owners ip. I am running suexec and phpsuexec.

    Has anyone else had this problem?
     
  2. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    You will need to configure exim on the command line (sendmail is a symlink to exim) or PHP's configuration in order to send mail from the account's IP. The default configuration for both's mail functions are to send from localhost. Here's info about configuring php to send mail from something other than localhost:

    http://www.w3schools.com/PHP/php_ref_mail.asp
     
  3. MrHits

    MrHits Well-Known Member

    Joined:
    Oct 31, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Do you have any instructions on configuring it via the command line as you mentioned in your post?
     
Loading...

Share This Page