
단일 사용자에 대해 발신 메시지를 시간당 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)
/etc/postfix/master.cf
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