Troubleshooting WordPress mail delivery issues by using Mailx to send mail via SMTP on Centos

Posted in:
Update time:2021-08-25

We offer WordPress Themes and Plugins Custom Development Services

This site has long undertaken WordPress themes, plugins, WooCommerce-based store mall development business. We have 10 years of experience in WordPress development, if you want to Developing Websites with WordPress, please contact WeChat: iwillhappy1314 or email: amos@wpcio.com for inquiries.

9 thoughts on “使用 Mailx 通过 SMTP 在 Centos 上发送邮件,解决 WordPress 发送邮件问题

  1. Executing these commands still results in the same error, "Error in certificate: Peer's certificate issuer is not recognized."

    What's going on?

    1. The order was executed as stated above:
      mkdir -p /root/.certs/
      echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/qq .crt
      certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crt
      certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crt
      certutil -L -d /root/.certs

      The email was able to be sent, but there was still an error, the same error message "Error in certificate: Peer's certificate issuer is not recognized."

  2. There's a missing entry in the certificate generation section, just add it.

    certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d . / -i qq.crt # authentication
    1. After executing the four commands, cd to the /root/.certs/ directory.
      then execute
      certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d . / -i qq.crt
      I've been screwed by you for an hour because in your statement, the center dot before G3 is a Chinese character

      1. The pot isn't @Mapleleaf's, the comment that was posted was correct, and for some reason, it was auto-transcoded by WordPress. I've edited this comment to add pre so that others don't get screwed.

  3. Don't you have to set it up in wordpress? centos sends it fine with commands, but wordpress just doesn't work. Just enable the plugin.

发表回复

Your email address will not be published. 必填项已用 * 标注

*