Changes

Jump to: navigation, search

Proxmox Mail Gateway in container

2 bytes added, 11:12, 15 March 2014
m
Backup considerations, live migration, and HA Cluster: updated dead link
The Proxmox Mail Gateway 2.0 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 on the with full virtualization solutions from the market leader - due to the minimal overhead in OpenVZ. Proxmox offers free and commercial licenses.
== Prerequisites ==I assume you have already a running OpenVZ server. This HowTo howto is based on an fresh Centos CentOS 4.4 installation with OpenVZ kernel 2.6.9 but should also work also with all other combinations. I used a Dual Xeon with 2 GB RamRAM.
== Installation ==Download the Proxmox OpenVZ template:<pre> wget http://wwwdownload.proxmox.com/cms_proxmoxappliances/cms/upload/bittorrentmail/debian-46.0-proxmox-mailgatewaymailgateway_3.1-2.02_amd64.tar.gz</pre>
Copy the template into the template cache, usually to /vz/templates/cache/
== 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 VEscontainers:<pre> vzsplit -n 5 -f default</pre>
== Create the VPS a container ==
Choose a free VPS CT ID, we use 777 inside for this guide and<pre>vzctl create 777 --ostemplate debian-4.0-proxmox-mailgateway-2.0 --config default</pre>
= Configure the VPS =<pre>vzctl create 777 --ostemplate debian-6.0-proxmox-mailgateway_3.1 --config default</pre>
Set IP Address and DNS nameservers, start servers automatically at boot time: please adapt these settings to your enviroment<pre>vzctl set 777 --onboot yes --ipadd 192.168.2.110 --nameserver 192.168.2.100 --nameserver 192.168.2.101 --hostname proxmox --searchdomain yourdomain.tld --save</pre>== Configure the container ==
Set guaranteed memory to 512MBIP address and DNS nameservers, maximum disk space start servers automatically at boot time: please adapt these settings to 4GB<pre>vzctl set 777 --vmguarpages 512M --privvmpages 1G --diskspace 4000M:4400M --save</pre>your environment.
= Start the VPS = vzctl set 777 --onboot yes --ipadd 192.168.2.110 \ --nameserver 192.168.2.100 --nameserver 192.168.2.101 \ --hostname proxmox --searchdomain yourdomain.tld --save
<pre>Set guaranteed memory to 1024MB, maximum disk space to 4GB.  vzctl set 777 --vmguarpages 1024M:unlimited --privvmpages 1G:1100M --diskspace 4000M:4400M --save == Start the container ==  vzctl start 777</pre>
And finally set the root password:
<pre> vzctl set 777 --userpasswd root:YOURPASSWORT</pre>YOURPASSWORD
Now you have a running Proxmox! By typing vzlist you should have something like this.
<pre>[root@vz1 ~]# vzlist
VEID CTID NPROC STATUS IP_ADDR HOSTNAME
777 56 running 192.168.2.110 proxmox
[root@vz1 ~]#</pre>
== Backup considerations, live migration, and HA Cluster ==The Proxmox HA Cluster consists of a master and several nodes (minimum one node) - All You can be run the mail gateway on different any OpenVZ servers within platform and on the same subnet[http://pve. Configuration is done on the master, all configuration proxmox.com/wiki/Proxmox_VE_2.0_Cluster Proxmox VE Cluster]. This include live-migration and data is synchronized to all cluster nodes over a VPN tunnelonline backups.
For online backups: , see [[Backup_of_a_running_VE_with_vzdumpbackup of a running container with vzdump]].
Live For live migration: , see [[Checkpointing_and_live_migrationcheckpointing and live migration]].
For HA Cluster: , see [[HA cluster with DRBD and Heartbeat]] and [http://www.proxmox.com/cms_proxmox/en/technology/proxmox-hamail-clustergateway/features feature page on Proxmox].
== Proxmox configuration ==
For the Proxmox configuration point your web browser to the given IP address.
More information on http://www.proxmox.com/
[[Category: HOWTO]]
[[Category: Templates]]
31
edits

Navigation menu