Skip to main content

Sender Verify Failed with PHP Mail Function Via Cron or SSH

Comments

9 comments

  • bloatedstoat
    Are using PHP v5.6? Could be the mismatch is down to the SMTP sender verify mechanism in 5.6. Came across this myself when using 5.6 with WHMCS and all my support tickets and invoices failed to deliver when using the SMTP option with a purchased certificate installed across all services.
    0
  • linux4me2
    No, I'm still using PHP 5.5.30. I have WHMCS running too, and the emails from it stopped going through too until I switched it to SMTP. It's working fine now.
    0
  • max_payne
    Does host.hostingdomainname.com resolve to an IP?
    0
  • linux4me2
    Does host.hostingdomainname.com resolve to an IP?

    If I put it in WhoIs, it returns an IP, but if I put it in LeafDNS, I get an error that says "The parent nameservers do not have your nameservers listed." Is there some other way I should check it?
    0
  • cPanelMichael
    Is there some other way I should check it?

    Hello :) You can run the following command from your server:
    host server.domain.com
    However, it's generally a better idea to implement SMTP authentication for any scripts that send out email to prevent email abuse and ensure your server is not marked as a known SPAM source. Thank you.
    0
  • linux4me2
    Thanks, Michael. When I run the command:
    host server.domain.com
    It does return a valid IP address, so I think I'm okay in that regard. I have done as you said and implemented SMTP authentication for the apps I'm running that offer that option, but there are a number of scripts that are still just using the PHP mail() function.
    0
  • cPanelMichael
    I have done as you said and implemented SMTP authentication for the apps I'm running that offer that option, but there are a number of scripts that are still just using the PHP mail() function.

    You should also ensure the email address users are sending to is a valid email account created through cPanel. Thank you.
    0
  • linux4me2
    Thanks Michael. I installed phpMailer on the server and am using that for all the scripts that were using PHP mail(), so I'm completely set up for SMTP now. All the emails the users send to are either valid accounts or forwarders set up in cPanel. So far, it's working just great. Thanks for your help.
    0
  • cPanelMichael
    I am happy to see it's working well now. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.