Editing Proxmox Mail Gateway in container
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 | + | The Proxmox Mail Gateway 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 virtualization solutions from the market leader - due to the minimal overhead in OpenVZ. |
− | + | = Prerequisites = | |
− | I assume you have already a running OpenVZ server. This | + | 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 work also with all other combinations. I used a Dual Xeon with 2 GB Ram. |
− | + | = Installation = | |
− | Download the Proxmox OpenVZ template | + | Download the Proxmox OpenVZ template |
− | + | <pre>wget http://www.proxmox.com/cms_proxmox/cms/upload/bittorrent/debian-3.1-proxmox-mailgateway.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 reasonable default config if you don’t have one. The following command creates the file | + | 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: |
− | + | <pre>vzsplit -n 5 -f default</pre> | |
− | + | = Create the VPS = | |
− | Choose a free | + | Choose a free VPS ID, we use 777 inside this guide and |
+ | <pre>vzctl create 777 --ostemplate debian-3.1-proxmox-mailgateway --config default</pre> | ||
− | + | = Configure the VPS = | |
− | + | 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> | ||
− | Set | + | Set guaranteed memory to 512MB, maximum disk space to 4GB |
+ | <pre>vzctl set 777 --vmguarpages 131072:2147483647 --diskspace 4000000:4400000 --save</pre> | ||
− | + | And finally set the root password: | |
− | + | <pre>vzctl set 777 --userpasswd root:YOURPASSWORT</pre> | |
− | |||
− | + | = Start the VPS = | |
− | + | <pre>vzctl start 777</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 | ||
− | + | 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> | ||
− | + | = Proxmox configuration = | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
For the Proxmox configuration point your web browser to the given IP address. | For the Proxmox configuration point your web browser to the given IP address. | ||
− | More information on http://www.proxmox.com | + | More information on http://www.proxmox.com |
[[Category: HOWTO]] | [[Category: HOWTO]] | ||
[[Category: Templates]] | [[Category: Templates]] |