]> git.proxmox.com Git - pmg-docs.git/blame - pmg-administration.adoc
run make update
[pmg-docs.git] / pmg-administration.adoc
CommitLineData
e3eaa56a
DM
1Administration
2==============
3
721ce1c0
DW
4The Administration GUI allows you to carry out common tasks
5such as updating software packages, managing quarantines, viewing the
6status of services, and managing mail queues. It also provides server
7statistics, in order to verify server health.
e3eaa56a
DM
8
9
10Server Administration
11---------------------
12
721ce1c0
DW
13Status
14~~~~~~
e3eaa56a 15
a695a527 16[thumbnail="pmg-gui-server-status.png", big=1]
e3eaa56a 17
721ce1c0
DW
18This page shows statistics about server CPU, memory, disk and network
19usage. You can select the displayed time span from the upper right.
e3eaa56a
DM
20
21Administrators can open a terminal window using the 'Console'
22button. It is also possible to trigger a server 'Restart' or
23'Shutdown'.
24
25
26Services
27~~~~~~~~
28
a695a527 29[thumbnail="pmg-gui-service-status.png", big=1]
e3eaa56a 30
721ce1c0 31This panel lists all the major services used for mail processing and
e3eaa56a 32cluster synchronization. If necessary, you can start, stop or restart
721ce1c0 33them. The 'Syslog' button shows the system log, filtered for the
e3eaa56a
DM
34selected service.
35
36Please note that {pmg} uses {systemd} to manage services, so you can
37also use the standard `systemctl` command line tool to manage or view
38service status, for example:
39
40-----
41systemctl status postfix
42-----
43
44
45Updates
46~~~~~~~
47
a695a527 48[thumbnail="pmg-gui-updates.png", big=1]
e3eaa56a
DM
49
50We release software updates on a regular basis, and it is recommended
51to always run the latest available version. This page shows the
70dc6dd1 52available updates, and administrators can run an upgrade by pressing
e3eaa56a
DM
53the 'Upgrade' button.
54
55See section xref:pmg_package_repositories[Package Repositories] for
721ce1c0 56details about the available package repositories.
e3eaa56a
DM
57
58
59Syslog and Tasks
60~~~~~~~~~~~~~~~~
61
a695a527 62[thumbnail="pmg-gui-syslog.png", big=1]
e3eaa56a 63
721ce1c0 64The Syslog page gives you a quick real-time log view. You can use the
80034065 65xref:pmg_tracking_center[Tracking Center] to search the logs.
e3eaa56a 66
721ce1c0
DW
67The Tasks page provides a history of the administration tasks that you
68carried out on the server, such as upgrading the system. Each task
69entry provides status information about the task, as well as the
70output.
e3eaa56a
DM
71
72Quarantine
73----------
74
fc11986a 75[[pmgadministration_spam_quarantine]]
e3eaa56a
DM
76Spam
77~~~~
78
a695a527 79[thumbnail="pmg-gui-spam-quarantine.png", big=1]
3f02fc6b
DM
80
81This panel lets you inspect the mail quarantine. Emails can be safely
82previewed and if desired, delivered to the original user.
83
721ce1c0 84The email preview on the web interface is very secure, as malicious
3f02fc6b 85code (attacking your operating system or email client) is removed by
70dc6dd1 86{pmg}.
3f02fc6b 87
fc11986a
DW
88Users can access their personalized quarantine via the daily spam report or by
89navigating to the URL configured for the quarantine (defaults to
90`https://<pmg-host>:8006/quarantine`) and logging in with their LDAP credentials
91(email address and password).
515eeac8 92
15c8d923
TL
93You can additionally enable user self-service for sending an access link from
94the Quarantine Login page.
721ce1c0 95To enable this on the Quarantine Login page, edit `/etc/pmg/pmg.conf`. See section
15c8d923
TL
96xref:pmgconfig_spamdetector_quarantine[Spam Detector Configuration - Quarantine]
97for more details about the available settings.
515eeac8 98
e3eaa56a
DM
99
100Virus
101~~~~~
102
3f02fc6b
DM
103Allows administrators to inspect quarantined virus mails.
104
e3eaa56a 105
f7d90c0a
DC
106Attachment
107~~~~~~~~~~
108
109Allows administrators to inspect quarantined mails and download their
110attachments or deliver/delete them.
111
112NOTE: Use the options of the 'Remove attachment' action to control the Attachment Quarantine.
113
114
4a08dffe 115[[pmg_userblackwhitelist]]
e3eaa56a
DM
116User White- and Blacklist
117~~~~~~~~~~~~~~~~~~~~~~~~~
118
3f02fc6b
DM
119This is mostly useful to debug or verify white- and blacklist user
120settings. The administrator should not change these values because
121users can manage this themselves.
122
e3eaa56a 123
80034065 124[[pmg_tracking_center]]
e3eaa56a
DM
125Tracking Center
126---------------
127
a695a527 128[thumbnail="pmg-gui-tracking-center.png", big=1]
b0a8e83b 129
e30d2fb3
DM
130Email processing is a complex task and involves several service
131daemons. Each daemon logs information to the syslog service. The
70dc6dd1 132problem is that a server analyzes many emails in parallel, so it is
e30d2fb3
DM
133usually very hard to find all logs corresponding to a specific mail.
134
70dc6dd1 135The Tracking Center simplifies the search for
395d1740
TL
136emails dramatically. We use highly optimized and safe Rust footnote:[A language
137empowering everyone to build reliable and efficient software.
138https://www.rust-lang.org/] code to search the available syslog data. This is
139very fast and powerful, and works for sites processing several million emails
140per day.
e30d2fb3
DM
141
142The result is a list of received mails, including the following data:
143
144[cols="s,5d"]
145|====
721ce1c0
DW
146|Time | Timestamp of first syslog entry found
147|From | Envelope 'From' address (the sender)
148|To | The email receiver address
149|Status | Delivery status
150|Syslog | The corresponding syslog entries are shown if you double
151click such an entry or if you press the '+' button on the left
e30d2fb3
DM
152|====
153
721ce1c0
DW
154To narrow the search down further, you can specify filters and set
155a 'Start' and 'End' time. By default, the start time is set to the
156last hour. If you still get too many entries, you can try to restrict
70dc6dd1 157the search to a specific sender or receiver address, or search for a
721ce1c0 158specific text string in the logs ('Filter' entry).
e3eaa56a 159
70dc6dd1 160NOTE: Search is faster if you use a shorter time interval.
268f309d 161
70dc6dd1 162The 'Status' field summarizes what happened with an email. {pmg} is a
f29824e9 163mail proxy, meaning that the proxy receives mails from outside,
70dc6dd1 164processes them and finally sends the result to the receiver.
f29824e9
DM
165
166The first phase is receiving the mail. The proxy may reject the mail
721ce1c0
DW
167early or accept the mail and feed it into the filter. The filter
168rules can then block or accept the mail.
f29824e9
DM
169
170In the second phase, accepted mails need to be delivered to the
70dc6dd1 171receiver. This action may also fail or succeed. 'Status'
721ce1c0 172combines the results from the first and second phase.
6abb9ee3 173
f29824e9
DM
174[options="header",cols="2s,1d,5d"]
175|====
176|Status |Phase |Description
721ce1c0 177|rejected |1 | Email rejected (for example, the sender IP is listed on an IP blacklist)
f29824e9 178|greylisted |1 | Email temporarily rejected by greylisting
721ce1c0
DW
179|queued/deferred |1 | Internal email was queued, still trying to deliver
180|queued/bounced |1 | Internal email was queued but not accepted by the target email server (for example, user unknown)
181|queued/delivered |1 | Internal email was queued and delivered
70dc6dd1 182|quarantine |1 | Email was moved to quarantine
f29824e9
DM
183|blocked |1 | Email was blocked by filter rules
184|accepted/deferred |2 | Email accepted, still trying to deliver
721ce1c0 185|accepted/bounced |2 | Email accepted, but not accepted by the target email server (for example, user unknown)
6abb9ee3 186|accepted/delivered |2 | Email accepted and delivered
f29824e9
DM
187|====
188
7b7e406b 189[[postfix_queue_administration]]
e3eaa56a
DM
190Postfix Queue Administration
191----------------------------
192
0972c942 193[thumbnail="pmg-gui-queue-admin-summary.png", big=1]
f2bd0439
SI
194
195Mail-queues are one of the central concepts of the SMTP protocol. Once a
721ce1c0 196mail server accepts a mail for further processing it saves it to a queue.
f2bd0439 197After the mail is either relayed to another system, stored locally
7b7e406b 198or discarded, it is deleted from the local mail-queue.
f2bd0439
SI
199
200If immediate processing is not possible, for example because a downstream
721ce1c0 201mail server is not reachable, the mail remains on the queue for later
f2bd0439
SI
202processing.
203
0972c942 204The 'Queue Administration' panel provides a summary about the current state
7b7e406b 205of the postfix mail-queue, similar to the 'qshape (1)' command-line utility.
7b7e406b 206It shows domains for which mails were not delivered, and how long they have
f2bd0439
SI
207been queued.
208
209The three Action Buttons on top provide the most common queue operations:
210
211'Flush Queue'::
212
213Attempt to deliver all currently queued mail, for example if a downstream
214server has become available again.
215
216'Delete All Messages'::
217
218Delete all currently queued mail, for example if the queue contains only spam.
f2bd0439
SI
219
220'Discard address verification database'::
221
222Clear the recipient verification cache.
223
721ce1c0
DW
224A sudden increase in queued mails should be closely inspected. This
225increase can indicate issues connecting to downstream servers or that
226one of the servers for which you relay emails sends spam itself.
f2bd0439 227
0972c942
TL
228Deferred Mail
229~~~~~~~~~~~~~
230[thumbnail="pmg-gui-queue-admin-deferred.png"]
231
721ce1c0
DW
232In the 'Deferred Mail' tab, you can examine each deferred email
233separately. In addition to providing contact information about the
234sender and receiver, you can also check the reason for which an email
235remains queued.
0972c942 236
721ce1c0
DW
237You can view the complete headers and filter by sender or receiver of
238queued emails.
0972c942 239
721ce1c0 240Here, you can also flush or delete each deferred email independently.