2 image:./images/proxmox-logo.svg[] pass:[<br>] Proxmox Mail Gateway Administration Guide
3 =======================================================================================
6 Proxmox Mail Gateway Administration Guide
7 =========================================
10 :title: Proxmox Mail Gateway Administration Guide
19 // Push titles down one level.
22 include::pmg-intro.adoc[]
24 include::pmg-planning-deployment.adoc[]
26 include::pmg-installation.adoc[]
28 include::pmgconfig.adoc[]
30 include::pmg-mail-filter.adoc[]
32 include::pmgbackup.adoc[]
36 // Return to normal title levels.
40 Important Service Daemons
41 -------------------------
45 include::pmgdaemon.adoc[]
47 include::pmgproxy.adoc[]
49 include::pmg-smtp-filter.adoc[]
51 include::pmgpolicy.adoc[]
53 include::pmgtunnel.adoc[]
55 include::pmgmirror.adoc[]
60 Useful Command Line Tools
61 -------------------------
68 include::pmgversion.adoc[]
70 include::pmgsubscription.adoc[]
72 include::pmgperf.adoc[]
76 include::pmgreport.adoc[]
78 include::pmgupgrade.adoc[]
87 `nmap` is designed to allow system administrators to scan large
88 networks to determine which hosts are up and what services they are
89 offering. You can use nmap to test your firewall setting, for example
90 to see if the required ports are open.
92 .Test Razor port (tcp port 2703):
94 # nmap -P0 -sS -p 2703 c301.cloudmark.com
96 Starting Nmap 5.00 ( http://nmap.org ) at 2012-07-31 11:10 CEST
97 Interesting ports on c301.cloudmark.com (208.83.137.114):
101 Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
104 See the manual page (`man nmap`) for more information about nmap.
109 include::pmg-bibliography.adoc[]
117 Access to the administration web interface is always done via
118 `https`. The default certificate is never valid for your browser and
119 you get always warnings.
121 If you want to get rid of these warnings, you have to generate a valid
122 certificate for your server.
124 Login to your Proxmox via ssh or use the console:
127 openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem
130 Follow the instructions on the screen, see this example:
133 Country Name (2 letter code) [AU]: AT
134 State or Province Name (full name) [Some-State]:Vienna
135 Locality Name (eg, city) []:Vienna
136 Organization Name (eg, company) [Internet Widgits Pty Ltd]: Proxmox GmbH
137 Organizational Unit Name (eg, section) []:Proxmox Mail Gateway
138 Common Name (eg, YOUR name) []: yourproxmox.yourdomain.com
139 Email Address []:support@yourdomain.com
141 Please enter the following 'extra' attributes to be sent with your certificate request
142 A challenge password []: not necessary
143 An optional company name []: not necessary
146 After you finished this certificate request you have to send the file
147 `req.pem` to your Certification Authority (CA). The CA will issue the
148 certificate (BASE64 encoded) based on your request – save this file as
149 `cert.pem` to your Proxmox.
151 To activate the new certificate, do the following on your Proxmox:
154 cat key.pem cert.pem >/etc/pmg/pmg-api.pem
157 The restart the API servers
160 systemctl restart pmgproxy
163 Test your new certificate by using your browser.
165 NOTE: To transfer files from and to your Proxmox, you can use secure
166 copy: If you desktop is Linux, you can use the `scp` command line
167 tool. If your desktop PC is windows, please use a scp client like
168 WinSCP (see http://winscp.net/).
172 Command Line Interface
173 ----------------------
175 *pmgbackup* - Proxmox Mail Gateway Backup and Restore Utility
176 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
178 include::pmgbackup.1-synopsis.adoc[]
181 *pmgcm* - Proxmox Mail Gateway Cluster Management Toolkit
182 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
184 include::pmgcm.1-synopsis.adoc[]
190 include::pmgsh.1-synopsis.adoc[]
193 *pmgperf* - Proxmox Simple Performance Benchmark
194 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
196 include::pmgperf.1-synopsis.adoc[]
199 *pmgconfig* - Configuration Management Toolkit
200 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
202 include::pmgconfig.1-synopsis.adoc[]
205 *pmgdb* - Database Management Toolkit
206 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
208 include::pmgdb.1-synopsis.adoc[]
215 *pmgdaemon* - {pmg} API Daemon
216 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
218 include::pmgdaemon.8-synopsis.adoc[]
221 *pmgproxy* - {pmg} API Proxy Daemon
222 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
224 include::pmgproxy.8-synopsis.adoc[]
227 *pmg-smtp-filter* - Proxmox SMTP Filter Daemon
228 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 include::pmg-smtp-filter.8-synopsis.adoc[]
233 *pmgpolicy* - {pmg} Policy Daemon
234 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
236 include::pmgpolicy.8-synopsis.adoc[]
239 *pmgtunnel* - Cluster Tunnel Daemon
240 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
242 include::pmgtunnel.8-synopsis.adoc[]
245 *pmgmirror* - Database Mirror Daemon
246 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
248 include::pmgmirror.8-synopsis.adoc[]
252 include::pmg-rule-macros.adoc[]
260 include::pmg.conf.adoc[]
262 include::cluster.conf.adoc[]
264 include::user.conf.adoc[]
266 include::ldap.conf.adoc[]