大网数据广告活动
服务器运维问答

Send a percentage or count of emails to another server with Postfix

· 52CE 我爱测

We are moving our Postfix outbound mail servers into an AWS region. We have the new external IP addresses with neutral reputation and can't move the old ones. We'd like to warm up the new IPs before moving the entire load by send…

问题原文

原帖链接 · flickerfly · CC BY-SA 4.0

We are moving our Postfix outbound mail servers into an AWS region. We have the new external IP addresses with neutral reputation and can't move the old ones. We'd like to warm up the new IPs before moving the entire load by sending a percentage or total count of our legitimate email to the new servers with the new IPs.

Is it possible to configure Postfix on the old servers to relay a measurable portion of mail through these new servers so that they can begin to build reputation before we assign them full responsibility?

已采纳解答

原帖链接 · ETL · CC BY-SA 4.0

You could write a "simple" TCP server that would return the relay server to use. This would follow the tcp_table format:

http://www.postfix.org/tcp_table.5.html

Another option, depending what these emails are, you could use header based routing and you could add a X-NextRelay header and determine the next hop from that. That would place the decision of which relay to use to the system generating the email. This is done with http://www.postfix.org/header_checks.5.html - you can then have a regex file like

/^X-NextRelay: (.*)$/ FILTER smtp:$1

These are two ideas that come to mind.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-01-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。