]> git.proxmox.com Git - pmg-docs.git/blame - pmg-admin-guide.adoc
pmg-usbstick.adoc: new file
[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
90facef4 43
90facef4
DM
44[[mail_server_config]]
45mail_server_config
46
47[[fitering_outgoing_mail]]
48fitering_outgoing_mail
49
50
410dc2c9
DM
51Important Service Daemons
52-------------------------
53
410dc2c9 54:leveloffset: 2
fa49ddc5
DM
55
56include::pmgdaemon.adoc[]
57
58include::pmgproxy.adoc[]
410dc2c9 59
43a49777
DM
60include::pmg-smtp-filter.adoc[]
61
17f66284
DM
62include::pmgpolicy.adoc[]
63
b2e39000
DM
64include::pmgtunnel.adoc[]
65
784c81c8
DM
66include::pmgmirror.adoc[]
67
410dc2c9
DM
68:leveloffset: 0
69
70
71Useful Command Line Tools
72-------------------------
73
410dc2c9 74:leveloffset: 2
93f5feff
DM
75include::pmgdb.adoc[]
76
77include::pmgsh.adoc[]
410dc2c9 78
ead20c24
DM
79include::pmgversion.adoc[]
80
b86ab490
DM
81include::pmgsubscription.adoc[]
82
bcd3ebca
DM
83include::pmgperf.adoc[]
84
d7cd791b
DM
85include::pmgqm.adoc[]
86
87include::pmgreport.adoc[]
88
f2016304
DM
89include::pmgupgrade.adoc[]
90
9d334946
DM
91:leveloffset: 0
92
93
e43acef1 94[[nmap]]
9d334946 95`nmap` - Port Scans
e43acef1 96-------------------
9d334946
DM
97
98`nmap` is designed to allow system administrators to scan large
99networks to determine which hosts are up and what services they are
100offering. You can use nmap to test your firewall setting, for example
101to see if the required ports are open.
102
103.Test Razor port (tcp port 2703):
104----
105# nmap -P0 -sS -p 2703 c301.cloudmark.com
106
107Starting Nmap 5.00 ( http://nmap.org ) at 2012-07-31 11:10 CEST
108Interesting ports on c301.cloudmark.com (208.83.137.114):
109PORT STATE SERVICE
1102703/tcp open unknown
111
112Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
113----
114
115See the manual page (`man nmap`) for more information about nmap.
116
1803c6bd
DM
117
118:leveloffset: 1
119
120include::pmg-bibliography.adoc[]
121
410dc2c9
DM
122:leveloffset: 0
123
ae62f1b7
DM
124[appendix]
125SSL certificate
126---------------
127
128Access to the administration web interface is always done via
129`https`. The default certificate is never valid for your browser and
130you get always warnings.
131
132If you want to get rid of these warnings, you have to generate a valid
133certificate for your server.
134
135Login to your Proxmox via ssh or use the console:
136
137----
138openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem
139----
140
141Follow the instructions on the screen, see this example:
142
143----
144Country Name (2 letter code) [AU]: AT
145State or Province Name (full name) [Some-State]:Vienna
146Locality Name (eg, city) []:Vienna
147Organization Name (eg, company) [Internet Widgits Pty Ltd]: Proxmox GmbH
148Organizational Unit Name (eg, section) []:Proxmox Mail Gateway
149Common Name (eg, YOUR name) []: yourproxmox.yourdomain.com
150Email Address []:support@yourdomain.com
151
152Please enter the following 'extra' attributes to be sent with your certificate request
153A challenge password []: not necessary
154An optional company name []: not necessary
155----
156
157After you finished this certificate request you have to send the file
158`req.pem` to your Certification Authority (CA). The CA will issue the
159certificate (BASE64 encoded) based on your request – save this file as
160`cert.pem` to your Proxmox.
161
162To activate the new certificate, do the following on your Proxmox:
163
164----
165cat key.pem cert.pem >/etc/pmg/pmg-api.pem
166----
167
168The restart the API servers
169
170----
171systemctl restart pmgproxy
172----
173
174Test your new certificate by using your browser.
175
176NOTE: To transfer files from and to your Proxmox, you can use secure
177copy: If you desktop is Linux, you can use the `scp` command line
178tool. If your desktop PC is windows, please use a scp client like
179WinSCP (see http://winscp.net/).
180
aa227838 181
410dc2c9
DM
182[appendix]
183Command Line Interface
184----------------------
185
00a7fa74
DM
186*pmgbackup* - Proxmox Mail Gateway Backup and Restore Utility
187~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188
189include::pmgbackup.1-synopsis.adoc[]
190
191
3ea67bfe
DM
192*pmgcm* - Proxmox Mail Gateway Cluster Management Toolkit
193~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
194
195include::pmgcm.1-synopsis.adoc[]
196
197
e62ceaf0
DM
198*pmgsh* - API Shell
199~~~~~~~~~~~~~~~~~~~
410dc2c9 200
93f5feff 201include::pmgsh.1-synopsis.adoc[]
bcd3ebca
DM
202
203
204*pmgperf* - Proxmox Simple Performance Benchmark
205~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
206
207include::pmgperf.1-synopsis.adoc[]
93f5feff 208
410dc2c9 209
e62ceaf0
DM
210*pmgconfig* - Configuration Management Toolkit
211~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
212
e62ceaf0 213include::pmgconfig.1-synopsis.adoc[]
410dc2c9 214
410dc2c9 215
f07c4baf
DM
216*pmgdb* - Database Management Toolkit
217~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218
f07c4baf
DM
219include::pmgdb.1-synopsis.adoc[]
220
410dc2c9
DM
221
222[appendix]
223Service Daemons
224---------------
225
fa49ddc5
DM
226*pmgdaemon* - {pmg} API Daemon
227~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
228
fa49ddc5
DM
229include::pmgdaemon.8-synopsis.adoc[]
230
43a49777 231
fa49ddc5
DM
232*pmgproxy* - {pmg} API Proxy Daemon
233~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
234
fa49ddc5
DM
235include::pmgproxy.8-synopsis.adoc[]
236
43a49777
DM
237
238*pmg-smtp-filter* - Proxmox SMTP Filter Daemon
239~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
240
43a49777
DM
241include::pmg-smtp-filter.8-synopsis.adoc[]
242
43a49777 243
17f66284
DM
244*pmgpolicy* - {pmg} Policy Daemon
245~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
410dc2c9 246
17f66284 247include::pmgpolicy.8-synopsis.adoc[]
410dc2c9 248
17f66284 249
b2e39000
DM
250*pmgtunnel* - Cluster Tunnel Daemon
251~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
252
253include::pmgtunnel.8-synopsis.adoc[]
254
255
784c81c8
DM
256*pmgmirror* - Database Mirror Daemon
257~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
258
259include::pmgmirror.8-synopsis.adoc[]
260
261
6dea08b0
DM
262[appendix]
263include::pmg-rule-macros.adoc[]
410dc2c9
DM
264
265[appendix]
266Configuration Files
267-------------------
268
410dc2c9 269:leveloffset: 2
f872534d
DM
270
271include::pmg.conf.adoc[]
410dc2c9 272
0802e594
DM
273include::cluster.conf.adoc[]
274
72af0c84
DM
275include::user.conf.adoc[]
276
51ac9592
DM
277include::ldap.conf.adoc[]
278
410dc2c9
DM
279:leveloffset: 0
280
281:leveloffset: 1
282
283[appendix]
284include::GFDL.adoc[]
285
286:leveloffset: 0
287
288endif::manvolnum[]
289endif::wiki[]