Postfix - 特定のユーザーからの送信メッセージを制限する

Postfix - 特定のユーザーからの送信メッセージを制限する

1 人のユーザーに対して、送信メッセージを 1 時間あたり 5 件に制限したいと考えています。その時間中に送信された追加のメッセージはキューに入れられ、後で配信が試行されます。他のすべてのユーザーは、この制限の影響を受けません。

低速トランスポートを使用してみました:

slow unix - - n - 5 smtp

送信者依存および通常のトランスポート マップを使用する:

[email protected] slow:

postfwd も使ってみました:

/user_check/   sender/regexp    =~ /^(user@example\.com)$/ local   hour >= 5   action=rate(sender/3600/5)

マスター

postfwd unix - n n - 5 smtp
    -o content_filter=
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtpd_helo_restrictions=
    -o smtpd_client_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o smtpd_authorized_xforward_hosts=127.0.0.0/8

うまくいかなかったようです。この問題の解決策や提案をしてくれる人はいますか?

OS: CentOS 8 postfix-3.5.20-2.redhat.8+p18.0.55.2+t230919.0741.x86_64

関連情報