submission message quota
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
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 If postfix is handling your submission service you can have a look at
Am 20.08.2020 um 08:29 schrieb Gerry: postfwd
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@dovecot.org Subject: Re: submission message quota
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 If postfix is handling your submission service you can have a look at
Am 20.08.2020 um 08:29 schrieb Gerry: postfwd
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
I use it to limit sending of emails, recipients, etc, etc
Thanks 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
On 8/20/20 2:56 PM, Admin Beckspaced wrote:
If postfix is handling your submission service you can have a look at postfwd
I use it to limit sending of emails, recipients, etc, etc Thanks 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
I don't use dovecot-submissiond
I use standard postfix submission and postfix recognizes the dovecot SASL username
Perhaps this helps?
Greetings Becki
On 20/08/2020 09:20, Gerry wrote:
On 8/20/20 2:56 PM, Admin Beckspaced wrote:
If postfix is handling your submission service you can have a look at postfwd
I use it to limit sending of emails, recipients, etc, etc Thanks 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.
Add the SASL username to the message headers? The standard way of doing this is passing it through the AUTH parameter to the MAIL command. The Dovecot submission service supports this if Postfix announces the AUTH capability. I think the Postfix XCLIENT login field could achieve something similar, also provided that the XCLIENT capability with the LOGIN field is announced.
I haven't seen it being passed in a header so far.
Regards,
Stephan.
participants (4)
-
Admin Beckspaced
-
Gerry
-
Marc Roos
-
Stephan Bosch