How to limit user email sending for account to 1000 per day?

| SYSTEM INFORMATION||
|------------------------------|-------------------------------|
| OS type and version | Ubuntu 20.0.4 |
| Webmin version | 2.101 |
| Virtualmin version | 7.7 |

HELLO.

1 - We really want to know how to prevent our e-mails sent to be consider as Spam ?
2 - How to set up our Virtualmin so that to limit every user (Email account) to send a maximum of 1000 mails everyday (per day) ?

Thanks in advance for your answers.

You can try these settings, Rate limiting won’t stop that, the content of the email and whether the people you send to reports your system as spamming.
If I get a email from someone trying to sell me something or sending to me without me signing up to them I will report it as spam.

Thanks for your feedback. But, I want to know how (many) is the default sending emails limit on Virtualmin ???

There is no limit by default.

If you have spammers hosting on your server, the right solution is to cancel their account and send them packing. Maybe give them a warning…but, I’d just cancel them. Sending spam for a prolonged period (a few days or weeks without responding appropriately to reports to your abuse addresses) will get your IP blacklisted, which means nobody will be able to send mail through your server, not just the spamming account.

Try this in your Postfix main.cf

smtpd_client_message_rate_limit = 1000
anvil_rate_time_unit = 1d

You can test it if works with less email number in shorter time, than change the values as above.

smtpd_client_message_rate_limit = 2
anvil_rate_time_unit = 60s

Source: Rate Limiting with Postfix | Beamtic
Postfix settings (you can search “anvil_rate_time_unit”) to get the time settings: Postfix Configuration Parameters

Hope it helps.
Good luck.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.