]> git.proxmox.com Git - pmg-docs.git/blame - pmg-admin-guide.adoc
add SSL ceriticate generation doc
[pmg-docs.git] / pmg-admin-guide.adoc
CommitLineData
410dc2c9
DM
1ifdef::pmglogo[]
2image:./images/proxmox-logo.svg[] pass:[<br>] Proxmox Mail Gateway Administration Guide
3=======================================================================================
4endif::pmglogo[]
5ifndef::pmglogo[]
6Proxmox Mail Gateway Administration Guide
7=========================================
8endif::pmglogo[]
9:doctype: book
10:title: Proxmox Mail Gateway Administration Guide
11:toc:
12:numbered:
13:data-uri:
14:icons:
15ifndef::wiki[]
16ifndef::manvolnum[]
17:pmg-toplevel:
18
19// Push titles down one level.
20:leveloffset: 1
21
22include::pmg-intro.adoc[]
23
5c735ebd
DM
24include::pmg-planning-deployment.adoc[]
25
03c03402
DM
26include::pmg-installation.adoc[]
27
e62ceaf0 28include::pmgconfig.adoc[]
410dc2c9 29
62e86eb6
DM
30include::pmg-mail-filter.adoc[]
31
00a7fa74
DM
32include::pmgbackup.adoc[]
33
3ea67bfe 34include::pmgcm.adoc[]
00a7fa74 35
410dc2c9
DM
36// Return to normal title levels.
37:leveloffset: 0
38
90facef4
DM
39TODO
40----
41// FIXME
42
43[[nmap]]
44nmap
45
46[[create_bootable_usb]]
47create_bootable_usb
48
49[[mail_server_config]]
50mail_server_config
51
52[[fitering_outgoing_mail]]
53fitering_outgoing_mail
54
55
410dc2c9
DM
56Important Service Daemons
57-------------------------
58
410dc2c9 59:leveloffset: 2
fa49ddc5
DM
60
61include::pmgdaemon.adoc[]
62
63include::pmgproxy.adoc[]
410dc2c9 64
43a49777
DM
65include::pmg-smtp-filter.adoc[]
66
17f66284
DM
67include::pmgpolicy.adoc[]
68
b2e39000
DM
69include::pmgtunnel.adoc[]
70
784c81c8
DM
71include::pmgmirror.adoc[]
72
410dc2c9
DM
73:leveloffset: 0
74
75
76Useful Command Line Tools
77-------------------------
78
410dc2c9 79:leveloffset: 2
93f5feff
DM
80include::pmgdb.adoc[]
81
82include::pmgsh.adoc[]
410dc2c9 83
ead20c24
DM
84include::pmgversion.adoc[]
85
b86ab490
DM
86include::pmgsubscription.adoc[]
87
bcd3ebca
DM
88include::pmgperf.adoc[]
89
d7cd791b
DM
90include::pmgqm.adoc[]
91
92include::pmgreport.adoc[]
93
f2016304
DM
94include::pmgupgrade.adoc[]
95
1803c6bd
DM
96
97:leveloffset: 1
98
99include::pmg-bibliography.adoc[]
100
410dc2c9
DM
101:leveloffset: 0
102
ae62f1b7
DM
103[appendix]
104SSL certificate
105---------------
106
107Access to the administration web interface is always done via
108`https`. The default certificate is never valid for your browser and
109you get always warnings.
110
111If you want to get rid of these warnings, you have to generate a valid
112certificate for your server.
113
114Login to your Proxmox via ssh or use the console:
115
116----
117openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem
118----
119
120Follow the instructions on the screen, see this example:
121
122----
123Country Name (2 letter code) [AU]: AT
124State or Province Name (full name) [Some-State]:Vienna
125Locality Name (eg, city) []:Vienna
126Organization Name (eg, company) [Internet Widgits Pty Ltd]: Proxmox GmbH
127Organizational Unit Name (eg, section) []:Proxmox Mail Gateway
128Common Name (eg, YOUR name) []: yourproxmox.yourdomain.com
129Email Address []:support@yourdomain.com
130
131Please enter the following 'extra' attributes to be sent with your certificate request
132A challenge password []: not necessary
133An optional company name []: not necessary
134----
135
136After you finished this certificate request you have to send the file
137`req.pem` to your Certification Authority (CA). The CA will issue the
138certificate (BASE64 encoded) based on your request – save this file as
139`cert.pem` to your Proxmox.
140
141To activate the new certificate, do the following on your Proxmox:
142
143----
144cat key.pem cert.pem >/etc/pmg/pmg-api.pem
145----
146
147The restart the API servers
148
149----
150systemctl restart pmgproxy
151----
152
153Test your new certificate by using your browser.
154
155NOTE: To transfer files from and to your Proxmox, you can use secure
156copy: If you desktop is Linux, you can use the `scp` command line
157tool. If your desktop PC is windows, please use a scp client like
158WinSCP (see http://winscp.net/).
159
aa227838 160
410dc2c9
DM
161[appendix]
162Command Line Interface
163----------------------
164
00a7fa74
DM
165*pmgbackup* - Proxmox Mail Gateway Backup and Restore Utility
166~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167
168include::pmgbackup.1-synopsis.adoc[]
169
170
3ea67bfe
DM
171*pmgcm* - Proxmox Mail Gateway Cluster Management Toolkit
172~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173
174include::pmgcm.1-synopsis.adoc[]
175
176
e62ceaf0
DM
177*pmgsh* - API Shell
178~~~~~~~~~~~~~~~~~~~
410dc2c9 179
93f5feff 180include::pmgsh.1-synopsis.adoc[]
bcd3ebca
DM
181
182
183*pmgperf* - Proxmox Simple Performance Benchmark
184~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
185
186include::pmgperf.1-synopsis.adoc[]
93f5feff 187
410dc2c9 188
e62ceaf0
DM
189*pmgconfig* - Configuration Management Toolkit
190~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191
e62ceaf0 192include::pmgconfig.1-synopsis.adoc[]
410dc2c9 193
410dc2c9 194
f07c4baf
DM
195*pmgdb* - Database Management Toolkit
196~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
197
f07c4baf
DM
198include::pmgdb.1-synopsis.adoc[]
199
410dc2c9
DM
200
201[appendix]
202Service Daemons
203---------------
204
fa49ddc5
DM
205*pmgdaemon* - {pmg} API Daemon
206~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
207
fa49ddc5
DM
208include::pmgdaemon.8-synopsis.adoc[]
209
43a49777 210
fa49ddc5
DM
211*pmgproxy* - {pmg} API Proxy Daemon
212~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
213
fa49ddc5
DM
214include::pmgproxy.8-synopsis.adoc[]
215
43a49777
DM
216
217*pmg-smtp-filter* - Proxmox SMTP Filter Daemon
218~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219
43a49777
DM
220include::pmg-smtp-filter.8-synopsis.adoc[]
221
43a49777 222
17f66284
DM
223*pmgpolicy* - {pmg} Policy Daemon
224~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
410dc2c9 225
17f66284 226include::pmgpolicy.8-synopsis.adoc[]
410dc2c9 227
17f66284 228
b2e39000
DM
229*pmgtunnel* - Cluster Tunnel Daemon
230~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
231
232include::pmgtunnel.8-synopsis.adoc[]
233
234
784c81c8
DM
235*pmgmirror* - Database Mirror Daemon
236~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
237
238include::pmgmirror.8-synopsis.adoc[]
239
240
6dea08b0
DM
241[appendix]
242include::pmg-rule-macros.adoc[]
410dc2c9
DM
243
244[appendix]
245Configuration Files
246-------------------
247
410dc2c9 248:leveloffset: 2
f872534d
DM
249
250include::pmg.conf.adoc[]
410dc2c9 251
0802e594
DM
252include::cluster.conf.adoc[]
253
72af0c84
DM
254include::user.conf.adoc[]
255
51ac9592
DM
256include::ldap.conf.adoc[]
257
410dc2c9
DM
258:leveloffset: 0
259
260:leveloffset: 1
261
262[appendix]
263include::GFDL.adoc[]
264
265:leveloffset: 0
266
267endif::manvolnum[]
268endif::wiki[]