Hello, I am trying to come up with a way to have individual quotas per user for the submission service. Similar to what I could achieve with Postfix and policyd. More specifically, the quota I am most interested in, is limiting the number of messages a single account can send within a given timeframe. Ideally, I'd also like to limit the number of total recipients within a given timeframe, to mitigate the loophole of adding multiple recipients to a single message. Example: account Y is allowed to send 500 messages per 60 minutes, with a maximum of 2000 recipients overall. What would be the best path to take? Thanks! Gerry
Am 20.08.2020 um 08:29 schrieb Gerry:> Hello, > > I am trying to come up with a way to have individual quotas per user for > the submission service. Similar to what I could achieve with Postfix and > policyd. > > More specifically, the quota I am most interested in, is limiting the > number of messages a single account can send within a given timeframe. > Ideally, I'd also like to limit the number of total recipients within a > given timeframe, to mitigate the loophole of adding multiple recipients > to a single message. > > Example: account Y is allowed to send 500 messages per 60 minutes, with > a maximum of 2000 recipients overall. > > What would be the best path to take? > > Thanks! > > GerryIf postfix is handling your submission service you can have a look at postfwd https://www.postfwd.org/ I use it to limit sending of emails, recipients, etc, etc Greetings Becki
mailfromd should also be able to do this. Going to apply this soon myself -----Original Message----- To: dovecot at dovecot.org Subject: Re: submission message quota Am 20.08.2020 um 08:29 schrieb Gerry:> Hello, > > I am trying to come up with a way to have individual quotas per user > for the submission service. Similar to what I could achieve with > Postfix and policyd. > > More specifically, the quota I am most interested in, is limiting the > number of messages a single account can send within a given timeframe. > Ideally, I'd also like to limit the number of total recipients within > a given timeframe, to mitigate the loophole of adding multiple > recipients to a single message. > > Example: account Y is allowed to send 500 messages per 60 minutes, > with a maximum of 2000 recipients overall. > > What would be the best path to take? > > Thanks! > > GerryIf postfix is handling your submission service you can have a look at postfwd https://www.postfwd.org/ I use it to limit sending of emails, recipients, etc, etc Greetings Becki
On 8/20/20 2:56 PM, Admin Beckspaced wrote:> If postfix is handling your submission service you can have a look at > postfwd > > https://www.postfwd.org/ > > I use it to limit sending of emails, recipients, etc, etcThanks for the suggestion! I am using Postfix as the relay host behind dovecot-submissiond. Unfortunately, unless I'm missing something, submissiond does not seem to be able to add the SASL username to the message headers, so I don't have a good way to distinguish sending users on the relay server. Cheers, Gerry