开始研究一个新项目,我需要为私人和公共项目组合运行"迦太基更新",其中一些项目有子模块.无论我做什么,迦太基都没有说明原因.我该怎么做才能确定挂起,然后如何解决这些问题呢?
我正在使用 postfix 通过 gmail 发送带有应用程序密码的电子邮件(激活了两步验证)。
每次我使用 sendmail 命令测试发送邮件时,我都会收到此错误:
Action: delayed
Status: 4.7.14
Diagnostic-Code: X-Postfix; delivery temporarily suspended: SASL authentication
failed; server smtp.gmail.com said: 534-5.7.14
<https://accounts.google.com/signin/continue?...> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14
Run Code Online (Sandbox Code Playgroud)
这是我的后缀配置:
主文件
myorigin = /etc/mailname
mydestination = mydomain.com, localhost.fr, localhost
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_tls_security_level = encrypt
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
Run Code Online (Sandbox Code Playgroud)
/etc/postfix/sasl/sasl_passwd:
[smtp.gmail.com]:587 admin@mydomain.com:application_password
Run Code Online (Sandbox Code Playgroud)
这就是我使用 sendmail 的方式:
sendmail -v ...
From: admin@mydomain.com
Subject: Test
This is …Run Code Online (Sandbox Code Playgroud)