Postfix实际上并未发送电子邮件

Thi*_*its 1 linux ubuntu troubleshooting postfix

所以在遵循 Ubuntu Postfix 教程之后,我尝试了他们推荐的测试

telnet localhost 25
MAIL FROM: person@mydomain.com
RCTP TO: person@gmail.com
DATA
some text here
.
Run Code Online (Sandbox Code Playgroud)

我收到一个成功的 250 OK Queued as C55230429543

但是,当我检查我的 gmail 帐户(包括垃圾邮件文件夹)时,那里没有电子邮件。

我有什么想法可以检查哪里出了问题?

Aug 25 22:34:06 mydomain postfix/cleanup[16130]: 23C20508CA: message-id=<20100825223401.23C20508CA@server1.mydomain.com>
Aug 25 22:34:06 mydomain postfix/qmgr[15822]: 23C20508CA: from=<root@mydomain.com>, size=372, nrcpt=1 (queue active)
Aug 25 22:34:12 mydomain postfix/smtp[16131]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Aug 25 22:34:13 mydomain postfix/master[15819]: warning: process /usr/lib/postfix/smtp pid 16131 exit status 1
Aug 25 22:34:13 mydomain postfix/master[15819]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Aug 25 22:34:35 mydomain postfix/smtpd[16127]: disconnect from localhost[127.0.0.
Run Code Online (Sandbox Code Playgroud)

我将我的实际域更改为“mydomain”

rap*_*ink 7

在 Google 上稍微搜索一下fatal: specify a password table via the smtp_sasl_password_maps就会将您带到此页面。在第 3 页,您会发现:

Apr 14 18:03:08 flamingweasel postfix/smtp[17932]: fatal: specify a password table via the `smtp_sasl_password_maps' configuration parameter
Run Code Online (Sandbox Code Playgroud)

是由于您的配置中的错误未被发现。您拥有的线路是:

smtp_sasl_auth_enable = yes
Run Code Online (Sandbox Code Playgroud)

你希望它在哪里:

smtpd_sasl_auth_enable = yes
Run Code Online (Sandbox Code Playgroud)

如果你没有这条线,你可能会错过它。