Is there some good way to limit outbound mail in postfix? I want to limit number of sent messages by domain per some time interval.
Imaginary example:
I have email accounts in 3 different domains: tld1, tld2 and tld3. It is not relevant how many accounts in what domain.
- All accounts in tld1 can send at most 20 messages per hour.
- All accounts in tld2 can send at most 10 messages per hour.
- All accounts in tld3 can send at most 25 messages per hour.
Can this be done? And how?
Best Answer
I suspect you want policyd -- it appears to do what you want.