可以postfix使用备份中继响应一个5xx错误代码

我试图configuration我的后缀(2.9.6)邮件服务器,最初尝试将邮件直接发送给收件人MX,然后如果收到5xx状态码,则通过ISP的邮件服务器进行中继。 我的邮件服务器是在家庭宽带连接的末尾,所以它的垃圾邮件过滤恶作剧。 我知道,我可以通过我的ISP服务器传递一切,但我宁愿不,除非这是绝对必要的。 叫我偏执狂

我希望在main.cf中这样的东西可以做这个工作(端口11125是我的ISP的邮件中继的通道,并且如果我把它设置为中继主机,

relayhost = smtp_skip_5xx_greeting = yes smtp_fallback_relay = [127.0.0.1]:11125 

这只是反弹,例如

 Nov 19 12:46:15 mail-server postfix/smtp[14459]: E9275744: to=<[email protected]>, relay=mx2.hotmail.com[65.55.92.136]:25, delay=1.3, delays=0.04/0.01/0.46/0.81, dsn=5.0.0, status=bounced (host mx2.hotmail.com[65.55.92.136] said: 550 OU-002 (SNT0-MC1-F51) Unfortunately, messages from xx.xx.xx.xx weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors. (in reply to end of DATA command)) 

那么,面对这样的消息,是否有可能通过后备中继来传递postfix?

在configuration中没有这样的选项。 你可能会做一些有创意的事情,通过一个脚本将pipe道反弹,将目标域添加到传输表并重新发送邮件。 但是我build议你从colo供应商那里得到一个服务器,这个服务器没有足够的垃圾邮件被添加到黑名单中,或者只是使用你的ISP服务器。