postfix 中继 - 向不存在的邮件地址发送消息不会失败

postfix 中继 - 向不存在的邮件地址发送消息不会失败

我有一个在层级服务器(Oracle 云电子邮件传递)上带有中继的 docker-mailserver。

当我向不存在的地址(例如,gmail)发送消息时,我会收到代码 250 Ok Sent(难道不应该是代码 550 吗?),但我希望在发件人邮箱中收到一封电子邮件,内容是“无法将消息发送到 {someaddresswichdoesnotexist}。”

以下是一些日志:

Jul  3 08:14:17 mail dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=my-ip, lip=172.19.0.5, mpid=6461, TLS, session=<wJCqNOLiYt6M7tku>
Jul  3 08:14:17 mail postfix/submission/smtpd[6462]: connect from unknown[my-ip]
Jul  3 08:14:17 mail postfix/submission/smtpd[6462]: Anonymous TLS connection established from unknown[my-ip]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
Jul  3 08:14:17 mail postfix/submission/smtpd[6462]: AFDDEFD48F: client=unknown[my-ip], sasl_method=PLAIN, [email protected]
Jul  3 08:14:17 mail postfix/sender-cleanup/cleanup[6467]: AFDDEFD48F: replace: header MIME-Version: 1.0 from unknown[my-ip]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.my-domain.org>: Mime-Version: 1.0
Jul  3 08:14:17 mail postfix/sender-cleanup/cleanup[6467]: AFDDEFD48F: message-id=<[email protected]>
Jul  3 08:14:17 mail opendkim[260]: AFDDEFD48F: DKIM-Signature field added (s=mail, d=my-domain.org)
Jul  3 08:14:17 mail postfix/qmgr[1471]: AFDDEFD48F: from=<[email protected]>, size=936, nrcpt=1 (queue active)
Jul  3 08:14:17 mail postfix/submission/smtpd[6462]: disconnect from unknown[my-ip] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jul  3 08:14:17 mail dovecot: imap([email protected])<6461><wJCqNOLiYt6M7tku>: Logged out in=972 out=573 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  3 08:14:17 mail dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=my-ip, lip=172.19.0.5, mpid=6474, TLS, session=<O8GvNOLiZN6M7tku>
Jul  3 08:14:17 mail dovecot: imap([email protected])<6474><O8GvNOLiZN6M7tku>: Logged out in=90 out=1054 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  3 08:14:17 mail postfix/smtp[6468]: Trusted TLS connection established to smtp.email.eu-zurich-1.oci.oraclecloud.com[192.29.182.152]:587: TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)
Jul  3 08:14:18 mail postfix/smtp[6468]: AFDDEFD48F: to=<[email protected]>, relay=smtp.email.eu-zurich-1.oci.oraclecloud.com[192.29.182.152]:587, delay=0.46, delays=0.08/0.02/0.22/0.15, dsn=2.0.0, status=sent (250 Ok)
Jul  3 08:14:18 mail postfix/qmgr[1471]: AFDDEFD48F: removed

如何在本地设置上配置传送失败消息(我有一个 rainloop 客户端)?

相关内容