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