Postfix无法发送电子邮件


1

我试图使用postfix作为smtp但不幸的是我无法发送任何电子邮件(除非通过localhost发送:ex:webmail)。

我现在得到的错误是:

Dec 30 16:35:41 h05 postfix/master[3857]: warning: process /usr/lib/postfix/smtpd pid 5903 exit status 1
Dec 30 16:35:41 h05 postfix/master[3857]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Dec 30 16:35:52 h05 postfix/smtpd[5904]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit

而我的smtpd_recipient_restriction配置如下:

cat /etc/postfix/main.cf | grep smtpd_recipient_restrictions
smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10023 permit_sasl_authenticated
smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10023 permit_sasl_authenticated
(root@h05)-(~) $ netstat -alpen | grep 10023
tcp        0      0 127.0.0.1:10023         0.0.0.0:*               LISTEN      0          5635        2809/postgrey.pid -

有人有什么建议吗? Linux- 2.6.28.9 / Debian 6.0.5

Answers:


1

你有两个“smtpd_recipient_restrictions”实例

这肯定会导致错误。

您可以编辑该文件并删除重复两次的行。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.