Changes

Jump to: navigation, search

Proxmox Mail Gateway in container

43 bytes removed, 08:48, 2 June 2008
updated to version 2.2; better formatting
The Proxmox Mail Gateway 2.1 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.
== 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 with all other combinations. I used a Dual Xeon with 2 GB RamRAM.
== Installation ==
Download the Proxmox OpenVZ template:
<pre> wget http://www.proxmox.com/cms_proxmox/cms/upload/bittorrent/debian-4.0-proxmox-mailgateway-2.12.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 containers:<pre> vzsplit -n 5 -f default</pre>
== Create a container ==
Choose a free CT ID, we use 777 for this guide.
<pre>vzctl create 777 --ostemplate debian-4.0-proxmox-mailgateway-2.1 2 --config default</pre>
== Configure the container ==
Set IP Address address and DNS nameservers, start servers automatically at boot time: please adapt these settings to your environment.
<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>
Set guaranteed memory to 512MB, maximum disk space to 4GB.
<pre> vzctl set 777 --vmguarpages 512M:unlimited --privvmpages 1G:1100M --diskspace 4000M:4400M --save</pre>
== Start the container ==
<pre> vzctl start 777</pre>
And finally set the root password:
<pre> vzctl set 777 --userpasswd root:YOURPASSWORD</pre>
Now you have a running Proxmox! By typing vzlist you should have something like this.

Navigation menu