如何允许在postfix/iredmail上从标头任意设置



我已经用iRedMail设置了邮件服务器。它应该充当web应用程序的SMTP服务器。Postfix仅限于本地主机使用。

假设我创建了一个帐户web@example.com

我需要的是允许设置任意的from报头,例如bar@example.com,甚至baz@my-second-domain.com

目前这是拒绝:

postfix/smtpd[7386]: NOQUEUE: reject: RCPT from ***[127.0.0.1]: 550 5.1.0 <notlviv@pb.org.ua>: Sender address rejected: User unknown in virtual mailbox table; from=<notlviv@pb.org.ua> to=<some@email.com> proto=ESMTP helo=<[127.0.0.1]>

这怎么可能被允许?

好的,计算出来了:

smtpd_reject_unlisted_sender = yes # set to no
# Sender restrictions
smtpd_sender_restrictions =
    reject_unknown_sender_domain
    reject_non_fqdn_sender
    reject_unlisted_sender # comment this 

最新更新