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

postfix deliveries per connection

· 52CE 我爱测

hope you can assist me in this case. I am administrating an Postfix server which is used for newsletters. Recently one of the major recipient domains changed their policies to only accept one email per smtp session/connection. To…

问题原文

原帖链接 · Steffen Nielsen · CC BY-SA 3.0

hope you can assist me in this case.

I am administrating an Postfix server which is used for newsletters. Recently one of the major recipient domains changed their policies to only accept one email per smtp session/connection. To adhere to their policy I found the following settings in main.cf to be kind of useful as they refer to concurrency of email delivery, though it doesn't seem to help.

(I've tested with values as low as 1)

  • initial_destination_concurrency
  • default_destination_concurrency_limit
  • smtp_destination_concurrency_limit

The error I am facing is: dsn=4.4.2, status=deferred, along with a link telling me to send a single email per SMTP connection.

Postfix version: 2.9.6

Any suggestions will be appreciated!

已采纳解答

原帖链接 · NickW · CC BY-SA 3.0

If you're faced with a specific domain asking for slower delivery, the easiest way is to set up a custom transport:

In /etc/postfix/main.cf place these two lines (name it what you want, just use it consistently):

smtp-slowdelivery       unix  -       -       n       -       -       smtp
-o syslog_name=smtp-slowdelivery

In /etc/postfix/main.cf add these lines:

smtp-slowdelivery_destination_rate_delay = 12s
smtp-slowdelivery_destination_concurrency_limit = 1
smtp-slowdelivery_destination_recipient_limit = 1
smtp-slowdelivery_initial_destination_concurrency=1

Add this to /etc/postfix/transport (which you may need to create)

/\@thatdomain.com$/ smtp-slowdelivery:

(replace thatdomain with the domain you need to slow deliveries to)

Postmap the file postmap /etc/postfix/transport

then tell postfix the file is a regex:

in /etc/postfix/main.cf add:

transport_maps = regexp:/etc/postfix/transport

and then run postfix reload

You should then see mail sent though your new transport in your maillog.

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

资料来源与适用范围

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

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

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