Difference between revisions of "Cool Solution - Mtpolicyd"
From Univention Wiki
Revision as of 15:02, 30 November 2017
The modular policy daemon for postfix, mtpolicyd, allows an Administrator to restrict the access to your mail server. The current package implements restrictions for a user within your domain, so that a user, whose account has been compromised, cannot turn your server into a spam machine.
The software is designed to operate on the Postfix Based Mailserver on UCS, including the UCS Mailstack and Open-Xchange. To install the packages, you need to enable the Cool Solution repository at first.
Next, you must install the package univention-mtpolicyd on the Mailserver. This can be achieved by using either the UMC module Package management or invoke the following command:
During the installation, new UCR variables will be created (see below).
To activate the policy service, you will have to tell your postfix to utilize it by setting the following UCR Variable
to access the policy service at
You can either configure it using the UMC or on the command line with the following command:
ucr set mail/postfix/smtpd/restrictions/recipient/79='check_policy_service inet:127.0.0.1:12345'
UCR variables and their functionality
The system can run with the default values right from the start. However, you can finetune it to match your needs with the following UCR Variables:
|UCR variable||Default value||Description|
|mtpolicyd/allowedcountries||DE||List of 2-Letter-ISO-Codes of countries from which to accept E-Mails. Separate multiple entries with a comma ','|
|mtpolicyd/debug||1||Debug level for which the policy daemon. Valid values are 0 to 4|
|mtpolicyd/host||127.0.0.1||Host IP or Hostname on which the daemon should run. If you want to access the policy daemon over the network, change this to a valid name or IP. If not, leave it at the localhost.|
|mtpolicyd/port||12345||Port on which the policy daemon is running. If you change this, please ensure that you change the UCR variable mentioned in the installation section as well.|
|mtpolicyd/threshold||1000||Number of E-Mails a user is allowed to send per day. Please note, that depending on the email client, every address, no matter whether TO:, CC: or BCC: might count as an individual E-Mail|