Limit outgoing mail
Global configuration::
vi /etc/postfix/main.cf |
smtp_destination_concurrency_limit = 2 smtp_destination_rate_delay = 1s smtp_extra_recipient_limit = 10 |
- default_destination_concurrency_limit: This means that postfix will up to two concurrent connections per receiving domains. The default value is 20.
- default_destination_rate_delay: Postfix will add a delay between each message to the same receiving domain. It overrides the previous rule and in this example, it will send one email after another with a delay of 1 second. If you want to disable this rule, either delete it or set to 0.
- default_extra_recipient_limit: Limit the number of recipients of each message. If a message had 20 recipients on the same domain, postfix will break it out to two different email messages instead of one.
Then restart your Postfix.
Limit outgoing mail by domain
You can limit per domain if you want like this:
Then add domains with the wished policy:
![]() |
gmail.com polite: yahoo.com polite: hotmail.com turtle: live.com turtle: outlook.com turtle: |
Edit master configuration to inform postfix of those config. Add those lines:
![]() |
polite unix - - n - - smtp turtle unix - - n - - smtp |
Postmap and reload:
![]() |
postmap /etc/postfix/transport service postfix reload Now Send mail check log |
No comments:
Post a Comment