I have total 4000 mail for an outgoing recipient and I want to send mail 2 mail every 1 minute. so I have configured postfwd.
#/etc/postfwd.cf
id=RATE01 ; action=rate($$recipient_domain/1/60/450 4.7.1 Message delivery request rate limit exceeded)
and
smtpd_recipient_restrictions =
permit_mynetworks,
check_policy_service inet:127.0.0.1:10040,
permit_sasl_authenticated,
127.0.0.1:10040_time_limit = 3600,
reject_unauth_destination
after 2 mails all the mails rejected and mailq empty. my requirment is send 2 mail and hold the mail for 1 minutes and send mail again.
Best Answer
Your current PostFWD rate limiting approach affects mail before it gets to queue, causing your Postfix to reject mail.
Take a look at these configuration parameters that controls behaviour of outbound connections: