]> git.proxmox.com Git - pmg-docs.git/blobdiff - pmgconfig.adoc
bump version to 5.1-4
[pmg-docs.git] / pmgconfig.adoc
index fcf3d6a39f137c4cb212bae2331910f904675799..a8e55d0a83015375261e9788717e52c3b78e7b59 100644 (file)
@@ -89,6 +89,10 @@ List of local (trusted) networks.
 
 Stores your subscription key and status.
 
+`/etc/pmg/tls_policy`::
+
+TLS policy for outbound connections.
+
 `/etc/pmg/transports`::
 
 Message delivery transport setup.
@@ -171,6 +175,7 @@ NOTE: Modified templates from `/etc/pmg/templates/` are automatically
 synced from the master node to all cluster members.
 
 
+[[pmgconfig_systemconfig]]
 System Configuration
 --------------------
 
@@ -231,6 +236,7 @@ include::pmg.admin-conf-opts.adoc[]
 Mail Proxy Configuration
 ------------------------
 
+[[pmgconfig_mailproxy_relaying]]
 Relaying
 ~~~~~~~~
 
@@ -243,6 +249,7 @@ using the following configuration keys:
 
 include::pmg.mail-relaying-conf-opts.adoc[]
 
+[[pmgconfig_mailproxy_relay_domains]]
 Relay Domains
 ~~~~~~~~~~~~~
 
@@ -255,6 +262,7 @@ system will relay mail to. The system will reject incoming mails to
 other domains.
 
 
+[[pmgconfig_mailproxy_ports]]
 Ports
 ~~~~~
 
@@ -268,6 +276,7 @@ using the following configuration keys:
 include::pmg.mail-ports-conf-opts.adoc[]
 
 
+[[pmgconfig_mailproxy_options]]
 Options
 ~~~~~~~
 
@@ -281,6 +290,7 @@ using the following configuration keys:
 include::pmg.mail-options-conf-opts.adoc[]
 
 
+[[pmgconfig_mailproxy_transports]]
 Transports
 ~~~~~~~~~~
 
@@ -297,6 +307,7 @@ You can add the IP addresses, hostname and SMTP ports and mail domains (or
 just single email addresses) of your additional e-mail servers.
 
 
+[[pmgconfig_mailproxy_networks]]
 Networks
 ~~~~~~~~
 
@@ -311,6 +322,7 @@ NOTE: Hosts in the same subnet with Proxmox can relay by default and
 it’s not needed to add them in this list.
 
 
+[[pmgconfig_mailproxy_tls]]
 TLS
 ~~~
 
@@ -324,9 +336,13 @@ the information that is transmitted with SMTP mail. When you activate
 TLS, {pmg} automatically generates a new self signed
 certificate for you (`/etc/pmg/pmg-tls.pem`).
 
-{pmg} uses opportunistic TLS encryption. The SMTP transaction is
+{pmg} uses opportunistic TLS encryption by default. The SMTP transaction is
 encrypted if the 'STARTTLS' ESMTP feature is supported by the remote
-server. Otherwise, messages are sent in the clear.
+server.  Otherwise, messages are sent in the clear.
+You can set a different TLS policy per desitination domain, should you for
+example need to prevent e-mail delivery without encryption, or to work around
+a broken 'STARTTLS' ESMTP implementation. See {postfix_tls_readme} for details
+on the supported policies.
 
 Enable TLS logging::
 
@@ -360,9 +376,17 @@ NOTE: If you use a backup MX server (e.g. your ISP offers this service
 for you) you should always add those servers here.
 
 
+[[pmgconfig_spamdetector]]
 Spam Detector Configuration
 ---------------------------
 
+Options
+~~~~~~~
+
+ifndef::manvolnum[]
+image::images/screenshot/pmg-gui-spam-options.png[]
+endif::manvolnum[]
+
 {pmg} uses a wide variety of local and network tests to identify spam
 signatures. This makes it harder for spammers to identify one aspect
 which they can craft their messages to work around the spam filter.
@@ -375,8 +399,13 @@ false negatives.
 include::pmg.spam-conf-opts.adoc[]
 
 
-Spam Quarantine Configuration
------------------------------
+[[pmgconfig_spamdetector_quarantine]]
+Quarantine
+~~~~~~~~~~
+
+ifndef::manvolnum[]
+image::images/screenshot/pmg-gui-spamquar-options.png[]
+endif::manvolnum[]
 
 Proxmox analyses all incoming e-mail messages and decides for each
 e-mail if its ham or spam (or virus). Good e-mails are delivered to
@@ -386,12 +415,24 @@ The system can be configured to send daily reports to inform users
 about the personal spam messages received the last day. That report is
 only sent if there are new messages in the quarantine.
 
+Some options are only available in the config file `/etc/pmg/pmg.conf`,
+and not in the webinterface.
+
 include::pmg.spamquar-conf-opts.adoc[]
 
 
+[[pmgconfig_clamav]]
 Virus Detector Configuration
 ----------------------------
 
+[[pmgconfig_clamav_options]]
+Options
+~~~~~~~
+
+ifndef::manvolnum[]
+image::images/screenshot/pmg-gui-virus-options.png[]
+endif::manvolnum[]
+
 All mails are automatically passed to the included virus detector
 ({clamav}). The default setting are considered safe, so it is usually
 not required to change them.
@@ -401,9 +442,22 @@ using the following configuration keys:
 
 include::pmg.clamav-conf-opts.adoc[]
 
+ifndef::manvolnum[]
+image::images/screenshot/pmg-gui-clamav-database.png[]
+endif::manvolnum[]
+
+Please note that the virus signature database it automatically
+updated. But you can see the database status on the GUI, and you can
+trigger manual updates there.
 
-Virus Quarantine Configuration
-------------------------------
+
+[[pmgconfig_clamav_quarantine]]
+Quarantine
+~~~~~~~~~~
+
+ifndef::manvolnum[]
+image::images/screenshot/pmg-gui-virusquar-options.png[]
+endif::manvolnum[]
 
 Indentified virus mails are automatically moved to the virus
 quarantine. The administartor can view those mails using the GUI, or
@@ -416,10 +470,131 @@ in `/etc/pmg/pmg.conf`, using the following configuration keys:
 include::pmg.virusquar-conf-opts.adoc[]
 
 
+Custom SpamAssassin configuration
+---------------------------------
+
+This is only for advanced users. To add or change the Proxmox
+{spamassassin} configuration please login to the console via SSH. Go
+to directory `/etc/mail/spamassasin/`. In this directory there are several
+files (`init.pre`, `local.cf`, ...) – do not change them.
+
+To add your special configuration, you have to create a new file and
+name it `custom.cf` (in this directory), then add your
+configuration there. Be aware to use the {spamassassin}
+syntax, and test with
+
+----
+# spamassassin -D --lint
+----
+
+If you run a cluster, the `custom.cf` file is synchronized from the
+master node to all cluster members.
+
+
 User Management
 ---------------
 
-TODO
+User management in {pmg} consists of three types of users/accounts:
+
+
+[[pmgconfig_localuser]]
+Local Users
+~~~~~~~~~~~
+
+image::images/screenshot/pmg-gui-local-user-config.png[]
+
+Local users are used to manage and audit {pmg}. Those users can login on the
+management web interface.
+
+There are three roles:
+
+* Administrator
++
+Is allowed to manage settings of {pmg}, except some tasks like
+network configuration and upgrading.
+
+* Quarantine manager
++
+Is allowed to manage quarantines, blacklists and whitelists, but not other
+settings. Has no right to view any other data.
+
+* Auditor
++
+With this role, the user is only allowed to view data and configuration, but
+not to edit it.
+
+In addition there is always the 'root' user, which is used to perform special
+system administrator tasks, such as updgrading a host or changing the
+network configuration.
+
+NOTE: Only pam users are able to login via the webconsole and ssh, which the
+users created with the web interface are not. Those users are created for
+{pmg} administration only.
+
+Local user related settings are saved in `/etc/pmg/user.conf`.
+
+For details of the fields see xref:pmg_user_configuration_file[user.conf]
+
+[[pmgconfig_ldap]]
+LDAP/Active Directory
+~~~~~~~~~~~~~~~~~~~~~
+
+image::images/screenshot/pmg-gui-ldap-user-config.png[]
+
+You can specify multiple LDAP/Active Directory profiles, so that you can
+create rules matching those users and groups.
+
+Creating a profile requires (at least) the following:
+
+* profile name
+* protocol (LDAP or LDAPS; LDAPS is recommended)
+* at least one server
+* a user and password (if your server does not support anonymous binds)
+
+All other fields should work with the defaults for most setups, but can be
+used to customize the queries.
+
+The settings are saved to `/etc/pmg/ldap.conf`. Details for the options
+can be found here: xref:pmg_ldap_configuration_file[ldap.conf]
+
+Bind user
+^^^^^^^^^
+
+It is highly recommended that the user which you use for connecting to the
+LDAP server only has the permission to query the server. For LDAP servers
+(for example OpenLDAP or FreeIPA), the username has to be of a format like
+'uid=username,cn=users,cn=accounts,dc=domain' , where the specific fields are
+depending on your setup. For Active Directory servers, the format should be
+like 'username@domain' or 'domain\username'.
+
+Sync
+^^^^
+
+{pmg} synchronizes the relevant user and group info periodically, so that
+that information is available in a fast manner, even when the LDAP/AD server
+is temporarily not accessible.
+
+After a successfull sync, the groups and users should be visible on the web
+interface. After that, you can create rules targeting LDAP users and groups.
+
+
+[[pmgconfig_fetchmail]]
+Fetchmail
+~~~~~~~~~
+
+image::images/screenshot/pmg-gui-fetchmail-config.png[]
+
+Fetchmail is utility for polling and forwarding e-mails. You can define
+e-mail accounts, which will then be fetched and forwarded to the e-mail
+address you defined.
+
+You have to add an entry for each account/target combination you want to
+fetch and forward. Those will then be regularly polled and forwarded,
+according to your configuration.
+
+The API and web interface offer following configuration options:
+
+include::fetchmail.conf.5-opts.adoc[]
 
 
 ifdef::manvolnum[]