我有一个使用 /etc/aliases 设置别名的 Postfix 服务器,其中我们有:
postmaster: root
bounces: root
main.cf 中的配置还有:
transport_maps = hash:/etc/postfix/transport
传输文件包含:
[email protected] bulkbounce:
master.cf:
bulkbounce unix - n n - - pipe
user=nobody argv=/etc/postfix/bounce_hold.php ${recipient}
如果我将返回路径设置为,则一切正常[电子邮件保护]
这是日志:
Mar 6 15:00:11 smtp160218 syslog/smtp[404]: 8BF363D6: to=<[email protected]>, relay=mail.fabulous.com[104.171.24.195]:25, delay=1.4, delays=0.57/0.02/0.68/0.16, dsn=5.1.1, status=bounced (host mail.fabulous.com[104.171.24.195] said: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Mar 6 15:00:11 smtp160218 postfix/cleanup[403]: F38473E0: message-id=<[email protected]>
Mar 6 15:00:11 smtp160218 postfix/qmgr[384]: F38473E0: from=<>, size=5856, nrcpt=1 (queue active)
Mar 6 15:00:12 smtp160218 postfix/bounce[405]: 8BF363D6: sender non-delivery notification: F38473E0
Mar 6 15:00:12 smtp160218 postfix/qmgr[384]: 8BF363D6: removed
Mar 6 15:00:12 smtp160218 postfix/pipe[406]: F38473E0: to=<[email protected]>, relay=bulkbounce, delay=0.05, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via bulkbounce service)
问题始于[电子邮件保护]:
syslog/smtp[3048]: 947433D6: to=<[email protected]>, relay=mail.fabulous.com[104.171.24.195]:25, delay=1.8, delays=0.65/0.01/0.98/0.16, dsn=5.1.1, status=bounced (host mail.fabulous.com[104.171.24.195] said: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual alias table (in reply to RCPT TO command))
Mar 6 17:22:26 smtp160218 postfix/cleanup[3047]: 5E0113E0: message-id=<[email protected]>
Mar 6 17:22:26 smtp160218 postfix/bounce[3050]: 947433D6: sender non-delivery notification: 5E0113E0
Mar 6 17:22:26 smtp160218 postfix/qmgr[3032]: 5E0113E0: from=<>, size=5913, nrcpt=1 (queue active)
Mar 6 17:22:26 smtp160218 postfix/randomizer[3046]: Using: smtp2: Transport Service
Mar 6 17:22:26 smtp160218 postfix/qmgr[3032]: 947433D6: removed
Mar 6 17:22:26 smtp160218 syslog/smtp[3051]: 5E0113E0: to=<[email protected]>, relay=none, delay=0.09, delays=0/0.01/0.07/0, dsn=5.4.6, status=bounced (mail for example.com loops back to myself)
Mar 6 17:22:26 smtp160218 postfix/qmgr[3032]: 5E0113E0: removed
我甚至有recipient_delimiter = +
我怎样才能让反弹+一些 id 移动到管道脚本?