我的邮箱是 *@outlook.com的个人邮箱
本地发送邮件正常,一放到服务器上就提示如下:
2024-05-16 06: 51: 46 SERVER->CLIENT: 220 SG3P274CA0021.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 16 May 2024 06: 51: 45+0000
2024-05-16 06: 51: 46 CLIENT->SERVER: EHLO www.test.com
2024-05-16 06: 51: 46 SERVER->CLIENT: 250-SG3P274CA0021.outlook.office365.com Hello[ 47.110 .x .x ]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8 BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2024-05-16 06: 51: 46 CLIENT->SERVER: STARTTLS
2024-05-16 06: 51: 46 SERVER->CLIENT: 220 2.0 .0 SMTP server ready
2024-05-16 06: 51: 46 CLIENT->SERVER: EHLO www.aliy7.com
2024-05-16 06: 51: 46 SERVER->CLIENT: 250-SG3P274CA0021.outlook.office365.com Hello[ 47.110 .x .x ]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8 BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2024-05-16 06: 51: 46 CLIENT->SERVER: AUTH LOGIN
2024-05-16 06: 51: 46 SERVER->CLIENT: 334 VXNlcm5hbWU6
2024-05-16 06: 51: 46 CLIENT->SERVER: <credentials hidden>
2024-05-16 06: 51: 46 SERVER->CLIENT: 334 UGFzc3dvcmQ6
2024-05-16 06: 51: 46 CLIENT->SERVER: <credentials hidden>
2024-05-16 06: 51: 54 SERVER->CLIENT: 535 5.7 .3 Authentication unsuccessful[ SG3P274CA0021.SGPP274.PROD.OUTLOOK.COM 2024-05-16 T06: 51: 54.531 Z 08 DC753A283DF07F ]
2024-05-16 06: 51: 54 SMTP ERROR: Password command failed: 535 5.7 .3 Authentication unsuccessful[ SG3P274CA0021.SGPP274.PROD.OUTLOOK.COM 2024-05-16 T06: 51: 54.531 Z 08 DC753A283DF07F ]
SMTP Error: Could not authenticate.
2024-05-16 06: 51: 54 CLIENT->SERVER: QUIT
2024-05-16 06: 51: 54 SERVER->CLIENT: 221 2.0 .0 Service closing transmission channel
网上有看到说用 安全管理员账号登录到 Azure属性(https%3A//portal.azure.com/%23blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Properties)
设置管理安全默认值,但是我不知道安全管理员账号是多少