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 sent from command-line is using main server ip instead of the user dedicated ip

Discussion in 'E-mail Discussions' started by ruiz, May 4, 2011.

  1. ruiz

    ruiz Active Member

    Joined:
    Feb 13, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    I have a user that wants to send e-mails through php from a cron job, however those e-mails are sent via the main server ip address instead of my client dedicated ip. That behavior brings him some trouble because those e-mails are maybe blocked on the recipients due to spf settings, helo name, etc.

    Question is.. how can i make those e-mails also use my clients dedicated ip?? I already selected:
    "Automatically send outgoing mail from the account’s IP address instead of the main IP address."

    But only e-mails affect mails sent via a smtp connection, php tho connects directly to the smtp server. Thanks!!!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Re: Mail sent from command-line is using main server ip instead of the user dedicated

    If the PHP script is using sendmail or the PHP mail() function, then it will bypass the exim settings. The script would need to use SMTP authentication with an email user on the account and password in order to be sent from the dedicated IP.
     
Loading...

Share This Page