Univention Bugzilla – Bug 38024
Use postfix-policyd for sender limitations
Last modified: 2019-01-03 07:23:18 CET
postfix-policyd provides the ability to restrict users from sending mails. The following limitations are possible: - limit the number of recipients per time interval (e.g. 20 recipients per 90mins) - limit the number of mails per time interval (e.g. 15 mails pro hour) - limit the mail sizes It is possible to define global defaults and to define user specific limits. A (my)SQL server is required for postfix-policyd. Untested installation steps: 1) univention-install postfix-policyd 2) vim /etc/postfix-policyd.conf SENDERTHROTTLE=1 SENDER_THROTTLE_SASL=1 SENDER_THROTTLE_HOST=0 SENDERMSGLIMIT=50 SENDERRCPTLIMIT=40 SENDERTIMELIMIT=1h 3) invoke postfix-policyd restart 4) ucr set mail/postfix/smtpd/restrictions/recipient/05=\ "check_policy_service inet:127.0.0.1:10031" 5) invoke postfix restart WARNING: step 4) has to be checked carefully; probably the limitation is also applied to usual incoming mails from other mail systems or incoming mails via fetchmail!
(In reply to Sönke Schwardt-Krummrich from comment #0) > WARNING: > step 4) has to be checked carefully; probably the limitation is also applied > to usual incoming mails from other mail systems or incoming mails via > fetchmail! Maybe the restriction could be set upon 587 only (in master.cf).
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.