|
|
本帖最后由 pengxp1996 于 2020-6-11 21:21 编辑
main.cf配置文件
[ol]smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destinationmyhostname = gov.996icu.comalias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesmyorigin = /etc/mailnamemydestination = $myhostname, gov.996icu.com, localhost.wanvi.net, , localhostrelayhost = smtp.office365.com:587mynetworks = 127.0.0.0/8 172.17.17.91/18 [::ffff:127.0.0.0]/104 [::1]/128mailbox_size_limit = 0recipient_delimiter = +inet_interfaces = loopback-onlyinet_protocols = ipv4smtp_sasl_auth_enable = yessmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwdsmtp_sasl_security_options = noanonymoussmtp_tls_security_level = mayheader_size_limit = 4096000[/ol]复制代码
账户密码配置文件/etc/postfix/sasl_passwd
[ol]smtp.office365.com:587 [email protected]:passwd[/ol]复制代码
[ol]Jun 11 09:53:45 gov postfix/smtpd[15473]: connect from localhost[127.0.0.1]Jun 11 09:53:45 gov postfix/smtpd[15473]: 770352007F3: client=localhost[127.0.0.1]Jun 11 09:53:45 gov postfix/cleanup[15475]: 770352007F3: message-id=Jun 11 09:53:45 gov postfix/qmgr[15468]: 770352007F3: from=, size=655, nrcpt=1 (queue active)Jun 11 09:53:45 gov postfix/smtpd[15473]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5Jun 11 09:53:49 gov postfix/smtp[15470]: 088E32007EC: SASL authentication failed; server smtp.office365.com[40.100.54.2] said: 535 5.7.3 Authentication unsuccessful [HK2PR0302CA0009.apcprd03.prod.outlook.com]Jun 11 09:53:51 gov postfix/smtp[15476]: 770352007F3: SASL authentication failed; server smtp.office365.com[40.100.54.242] said: 535 5.7.3 Authentication unsuccessful [HK2PR03CA0056.apcprd03.prod.outlook.com]Jun 11 09:53:56 gov postfix/smtp[15470]: 088E32007EC: SASL authentication failed; server smtp.office365.com[40.100.2.98] said: 535 5.7.3 Authentication unsuccessful [HK2PR02CA0200.apcprd02.prod.outlook.com]Jun 11 09:53:59 gov postfix/smtp[15476]: 770352007F3: SASL authentication failed; server smtp.office365.com[52.98.85.194] said: 535 5.7.3 Authentication unsuccessful [HK2PR06CA0023.apcprd06.prod.outlook.com][/ol]复制代码
懂的大佬快来看看?
问题最终发生在微软smtp服务器拒绝身份验证,这一个安全策略,只需要为不支持多重验证的应用创建应用密码即可。 |
|