Editing Proxmox Mail Gateway in container

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
The Proxmox Mail Gateway 2.2 template is an OpenVZ OS template that allows you to run the Antispam & Antivirus Mail Gateway. Proxmox runs in different virtualization environments but in OpenVZ it is almost twice as fast as with full virtualization - due to the minimal overhead. Proxmox offers free and commercial licenses.  
+
The Proxmox Mail Gateway 2.1 template is an OpenVZ OS template that allows you to run the Antispam & Antivirus Mail Gateway. Proxmox runs in different virtualization environments but in OpenVZ it is almost twice as fast as with full virtualization - due to the minimal overhead. Proxmox offers free and commercial licenses.  
  
 
== Prerequisites ==
 
== Prerequisites ==
I assume you have already a running OpenVZ server. This howto is based on an fresh CentOS 4.4 installation with OpenVZ kernel 2.6.9 but should also work with all other combinations. I used a Dual Xeon with 2 GB RAM.
+
I assume you have already a running OpenVZ server. This HowTo is based on an fresh Centos 4.4 installation with OpenVZ kernel 2.6.9 but should also work with all other combinations. I used a Dual Xeon with 2 GB Ram.
  
 
== Installation ==
 
== Installation ==
 
Download the Proxmox OpenVZ template:
 
Download the Proxmox OpenVZ template:
wget http://download.proxmox.com/appliances/mail/debian-6.0-proxmox-mailgateway_3.1-2_amd64.tar.gz
+
<pre>wget http://www.proxmox.com/cms_proxmox/cms/upload/bittorrent/debian-4.0-proxmox-mailgateway-2.1.tar.gz</pre>
  
 
Copy the template into the template cache, usually to /vz/templates/cache/
 
Copy the template into the template cache, usually to /vz/templates/cache/
  
 
== Create a default config ==
 
== Create a default config ==
Create a reasonable default config if you don’t have one. The following command creates the file <code>/etc/vz/conf/ve-default.conf-sample</code> which contains reasonable defaults if you plan to run 5 containers:
+
Create a reasonable default config if you don’t have one. The following command creates the file /etc/vz/conf/ve-default.conf-sample which contains reasonable defaults if you plan to run 5 VEs:
vzsplit -n 5 -f default
+
<pre>vzsplit -n 5 -f default</pre>
  
== Create a container ==
+
== Create a VE ==
  
Choose a free CT ID, we use 777 for this guide.
+
Choose a free VE ID, we use 777 for this guide.
  
<pre>vzctl create 777 --ostemplate debian-6.0-proxmox-mailgateway_3.1 --config default</pre>
+
<pre>vzctl create 777 --ostemplate debian-4.0-proxmox-mailgateway-2.1 --config default</pre>
  
== Configure the container ==
+
== Configure the VE ==
  
Set IP address and DNS nameservers, start servers automatically at boot time: please adapt these settings to your environment.
+
Set IP Address and DNS nameservers, start servers automatically at boot time: please adapt these settings to your environment.
  
vzctl set 777 --onboot yes --ipadd 192.168.2.110 \
+
<pre>vzctl set 777 --onboot yes --ipadd 192.168.2.110 \
  --nameserver 192.168.2.100 --nameserver 192.168.2.101 \
+
--nameserver 192.168.2.100 --nameserver 192.168.2.101 \
  --hostname proxmox --searchdomain yourdomain.tld --save
+
--hostname proxmox --searchdomain yourdomain.tld --save</pre>
  
Set guaranteed memory to 1024MB, maximum disk space to 4GB.
+
Set guaranteed memory to 512MB, maximum disk space to 4GB.
  
vzctl set 777 --vmguarpages 1024M:unlimited --privvmpages 1G:1100M --diskspace 4000M:4400M --save
+
<pre>vzctl set 777 --vmguarpages 512M:unlimited --privvmpages 1G:1100M --diskspace 4000M:4400M --save</pre>
  
== Start the container ==
+
== Start the VE ==
  
vzctl start 777
+
<pre>vzctl start 777</pre>
  
 
And finally set the root password:
 
And finally set the root password:
vzctl set 777 --userpasswd root:YOURPASSWORD
+
<pre>vzctl set 777 --userpasswd root:YOURPASSWORD</pre>
  
 
Now you have a running Proxmox! By typing vzlist you should have something like this.
 
Now you have a running Proxmox! By typing vzlist you should have something like this.
 
<pre>[root@vz1 ~]# vzlist
 
<pre>[root@vz1 ~]# vzlist
       CTID     NPROC STATUS  IP_ADDR        HOSTNAME
+
       VEID     NPROC STATUS  IP_ADDR        HOSTNAME
 
       777        56 running 192.168.2.110  proxmox
 
       777        56 running 192.168.2.110  proxmox
 
[root@vz1 ~]#</pre>
 
[root@vz1 ~]#</pre>
  
 
== Backup considerations, live migration, and HA Cluster ==
 
== Backup considerations, live migration, and HA Cluster ==
You can run the mail gateway on any OpenVZ platform and on the [http://pve.proxmox.com/wiki/Proxmox_VE_2.0_Cluster Proxmox VE Cluster]. This include live-migration and online backups.
+
The Proxmox HA Cluster consists of a master and several nodes (minimum one node) — all can be run on different OpenVZ servers within the same subnet. Configuration is done on the master, all configuration and data is synchronized to all cluster nodes over a VPN tunnel.  
  
For online backups, see [[backup of a running container with vzdump]].
+
For online backups, see [[backup of a running VE with vzdump]].
  
For live migration, see [[checkpointing and live migration]].
+
For live migration, see [[checkpointing_and_live_migration]].
  
For HA Cluster, see [[HA cluster with DRBD and Heartbeat]] and [http://www.proxmox.com/proxmox-mail-gateway/features feature page on Proxmox].
+
For HA Cluster, see [[HA cluster with DRBD and Heartbeat]] and [http://www.proxmox.com/cms_proxmox/en/technology/proxmox-ha-cluster/ proxmox.com].
  
 
== Proxmox configuration ==
 
== Proxmox configuration ==

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)