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!

Mail sent from command-line is using main server ip instead of the user dedicated ip

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

  1. ruiz

    ruiz Active Member

    Feb 13, 2008
    Likes Received:
    Trophy Points:
    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

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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