SMTP server response: 530 5.7.0 Must issue a STARTTLS command first

后端 未结 9 729
生来不讨喜
生来不讨喜 2020-11-28 13:25

SMTP server response: 530 5.7.0 Must issue a STARTTLS command first

I get this error message when i use mail() function in php script file...

I m using gmail

9条回答
  •  忘掉有多难
    2020-11-28 14:01

    Problem Solved,

    I edited the file /etc/postfix/master.cf

    and commented

    -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    

    and changed the line from

    -o smtpd_tls_security_level=encrypt 
    

    to

    -o smtpd_tls_security_level=may
    

    And worked on fine

提交回复
热议问题