![使用 postfix 配置 dovecot 从任意电子邮件向任意电子邮件发送电子邮件](https://linux22.com/image/685088/%E4%BD%BF%E7%94%A8%20postfix%20%E9%85%8D%E7%BD%AE%20dovecot%20%E4%BB%8E%E4%BB%BB%E6%84%8F%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E5%90%91%E4%BB%BB%E6%84%8F%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E5%8F%91%E9%80%81%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6.png)
我正在尝试配置 smtp 服务器,以允许服务器上的应用程序使用此 smtp 向任何电子邮件地址发送电子邮件。我使用了以下所有配置:http://www.server-world.info/en/note?os=CentOS_7&p=mail
我得到的错误是
Jun 20 21:10:35 onnlyn postfix/master[7249]: daemon started -- version 2.10.1, configuration /etc/postfix
Jun 20 21:10:41 onnlyn postfix/smtpd[7255]: connect from onnlyn.com[::1]
Jun 20 21:10:41 onnlyn postfix/smtpd[7255]: NOQUEUE: reject: RCPT from onnlyn.com[::1]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<onnlyn.com>
或者对于与我的域名相同的地址,我将收到此错误
Jun 20 21:20:27 onnlyn postfix/smtpd[7601]: NOQUEUE: reject: RCPT from onnlyn.com[::1]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<onnlyn.com>
答案1
我放弃了使用postfix和dovecot的想法,简单安装了sendmail来实现。