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.
44 [[mail_server_config]]
47 [[fitering_outgoing_mail]]
48 fitering_outgoing_mail
51 Important Service Daemons
52 -------------------------
56 include::pmgdaemon.adoc[]
58 include::pmgproxy.adoc[]
60 include::pmg-smtp-filter.adoc[]
62 include::pmgpolicy.adoc[]
64 include::pmgtunnel.adoc[]
66 include::pmgmirror.adoc[]
71 Useful Command Line Tools
72 -------------------------
79 include::pmgversion.adoc[]
81 include::pmgsubscription.adoc[]
83 include::pmgperf.adoc[]
87 include::pmgreport.adoc[]
89 include::pmgupgrade.adoc[]
98 `nmap` is designed to allow system administrators to scan large
99 networks to determine which hosts are up and what services they are
100 offering. You can use nmap to test your firewall setting, for example
101 to see if the required ports are open.
103 .Test Razor port (tcp port 2703):
105 # nmap -P0 -sS -p 2703 c301.cloudmark.com
107 Starting Nmap 5.00 ( http://nmap.org ) at 2012-07-31 11:10 CEST
108 Interesting ports on c301.cloudmark.com (208.83.137.114):
110 2703/tcp open unknown
112 Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
115 See the manual page (`man nmap`) for more information about nmap.
120 include::pmg-bibliography.adoc[]
128 Access to the administration web interface is always done via
129 `https`. The default certificate is never valid for your browser and
130 you get always warnings.
132 If you want to get rid of these warnings, you have to generate a valid
133 certificate for your server.
135 Login to your Proxmox via ssh or use the console:
138 openssl req -newkey rsa:2048 -nodes -keyout key.pem -out req.pem
141 Follow the instructions on the screen, see this example:
144 Country Name (2 letter code) [AU]: AT
145 State or Province Name (full name) [Some-State]:Vienna
146 Locality Name (eg, city) []:Vienna
147 Organization Name (eg, company) [Internet Widgits Pty Ltd]: Proxmox GmbH
148 Organizational Unit Name (eg, section) []:Proxmox Mail Gateway
149 Common Name (eg, YOUR name) []: yourproxmox.yourdomain.com
150 Email Address []:support@yourdomain.com
152 Please enter the following 'extra' attributes to be sent with your certificate request
153 A challenge password []: not necessary
154 An optional company name []: not necessary
157 After you finished this certificate request you have to send the file
158 `req.pem` to your Certification Authority (CA). The CA will issue the
159 certificate (BASE64 encoded) based on your request – save this file as
160 `cert.pem` to your Proxmox.
162 To activate the new certificate, do the following on your Proxmox:
165 cat key.pem cert.pem >/etc/pmg/pmg-api.pem
168 The restart the API servers
171 systemctl restart pmgproxy
174 Test your new certificate by using your browser.
176 NOTE: To transfer files from and to your Proxmox, you can use secure
177 copy: If you desktop is Linux, you can use the `scp` command line
178 tool. If your desktop PC is windows, please use a scp client like
179 WinSCP (see http://winscp.net/).
183 Command Line Interface
184 ----------------------
186 *pmgbackup* - Proxmox Mail Gateway Backup and Restore Utility
187 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
189 include::pmgbackup.1-synopsis.adoc[]
192 *pmgcm* - Proxmox Mail Gateway Cluster Management Toolkit
193 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
195 include::pmgcm.1-synopsis.adoc[]
201 include::pmgsh.1-synopsis.adoc[]
204 *pmgperf* - Proxmox Simple Performance Benchmark
205 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
207 include::pmgperf.1-synopsis.adoc[]
210 *pmgconfig* - Configuration Management Toolkit
211 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
213 include::pmgconfig.1-synopsis.adoc[]
216 *pmgdb* - Database Management Toolkit
217 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219 include::pmgdb.1-synopsis.adoc[]
226 *pmgdaemon* - {pmg} API Daemon
227 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
229 include::pmgdaemon.8-synopsis.adoc[]
232 *pmgproxy* - {pmg} API Proxy Daemon
233 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235 include::pmgproxy.8-synopsis.adoc[]
238 *pmg-smtp-filter* - Proxmox SMTP Filter Daemon
239 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
241 include::pmg-smtp-filter.8-synopsis.adoc[]
244 *pmgpolicy* - {pmg} Policy Daemon
245 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247 include::pmgpolicy.8-synopsis.adoc[]
250 *pmgtunnel* - Cluster Tunnel Daemon
251 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
253 include::pmgtunnel.8-synopsis.adoc[]
256 *pmgmirror* - Database Mirror Daemon
257 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
259 include::pmgmirror.8-synopsis.adoc[]
263 include::pmg-rule-macros.adoc[]
271 include::pmg.conf.adoc[]
273 include::cluster.conf.adoc[]
275 include::user.conf.adoc[]
277 include::ldap.conf.adoc[]