HowTo: Install Proxmox Mail Gateway on OpenVZ

Hi atasever,

Did you ever get this sorted? I've tried both 2.2 and 2.3 openVZ downloads with exactly the same problem as yourself.

System is all installed, can ssh into vm, but cannot log into the web interface.
 
more info:

Apr 6 16:46:01 gateway apache2: (pam_unix) authentication failure; logname= uid=33 euid=33 tty= ruser= rhost= user=root
 
Turning on debug in 000-default gives this in the apache error_log

[Mon Apr 06 16:56:49 2009] [error] auth_type Proxmox::AuthCookieHandler
[Mon Apr 06 16:56:49 2009] [error] authorize() for /LOGIN
[Mon Apr 06 16:56:49 2009] [error] Converting POST -> GET
[Mon Apr 06 16:56:49 2009] [error] credential_0 root
[Mon Apr 06 16:56:49 2009] [error] credential_1 password
[Mon Apr 06 16:56:51 2009] [error] Bad credentials
[Mon Apr 06 16:56:51 2009] [error] auth_type Proxmox::AuthCookieHandler
[Mon Apr 06 16:56:51 2009] [error] authorize() for /login.pl
[Mon Apr 06 16:56:52 2009] [error] auth_type Proxmox::AuthCookieHandler
[Mon Apr 06 16:56:52 2009] [error] r=Apache2::RequestRec=SCALAR(0x8a7fd94) authtype=Proxmox::AuthCookieHandler
[Mon Apr 06 16:56:52 2009] [error] auth_name Proxmox
[Mon Apr 06 16:56:52 2009] [error] ses_key_cookie
[Mon Apr 06 16:56:52 2009] [error] uri /
[Mon Apr 06 16:56:53 2009] [error] auth_type Proxmox::AuthCookieHandler
[Mon Apr 06 16:56:53 2009] [error] authorize() for /login.pl
 
root@host# vzdump --compress 8
ERROR: strange VPS ID '8'

It looks like vzdump insists that VPSID not less than 100. WHY? All my VEs has ID<100. How can I use vzdump?
 
root@host# vzdump --compress 8
ERROR: strange VPS ID '8'

It looks like vzdump insists that VPSID not less than 100. WHY? All my VEs has ID<100. How can I use vzdump?

you should not use container with CTID < 100.

see OpenVZ docu: 'man vzctl'

Code:
Containers can be referred to by either numeric CTID or  by  name  (see
       --name option). Note that CT ID <= 100 are reserved for OpenVZ internal purposes.
 
Same problem here!
can login using ssh but web login fails
New 1.1 install with appliance template debian-4.0-proxmox-mailgateway_2.2-1_i386.tar.gz
also I tried the CYAN secure web and no reponse through port 9992
not off to a good start! :rolleyes:
HELP!!!!:confused:
 
Same problem here!
can login using ssh but web login fails
New 1.1 install with appliance template debian-4.0-proxmox-mailgateway_2.2-1_i386.tar.gz
also I tried the CYAN secure web and no reponse through port 9992
not off to a good start! :rolleyes:
HELP!!!!:confused:

pls do not use non-asci character for passwords.

Proxmox Mail Gateway: pls use the 2.3 version!

CYAN: pls check the log, do you got enough memory (512 + 512)?
btw, a new cyan appliance is on the way to release soon.
 
tried 2.3 - still same problem - password is 12345
logs show

auth failed: Authentication failure at /usr/share/perl5/Proxmox/Utils.pm line 344, <GEN0> line71.

I had to manually type the above as it won't let me cut and paste from the log window!!!?? :mad:

PS ssh works ok!!!
 
tried 2.3 - still same problem - password is 12345
logs show

auth failed: Authentication failure at /usr/share/perl5/Proxmox/Utils.pm line 344, <GEN0> line71.

I had to manually type the above as it won't let me cut and paste from the log window!!!?? :mad:

PS ssh works ok!!!

just to make sure: you use 'root' as user and '12345' as password?

and this combination works on ssh, but not on the web interface? very strange. take a look on the complete syslog of the mail gateway (see /var/log/syslog).
 
YES, YES AND YES!!!!
syslog
Apr 30 18:11:09 mailgate syslogd 1.4.1#18: restart.
Apr 30 18:11:09 mailgate named[415]: starting BIND 9.3.4-P1.1 -u bind
Apr 30 18:11:09 mailgate named[415]: found 2 CPUs, using 2 worker threads
Apr 30 18:11:09 mailgate named[415]: loading configuration from '/etc/bind/named.conf'
Apr 30 18:11:09 mailgate named[415]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 30 18:11:09 mailgate named[415]: command channel listening on 127.0.0.1#953
Apr 30 18:11:09 mailgate named[415]: command channel listening on ::1#953
Apr 30 18:11:09 mailgate named[415]: zone 0.in-addr.arpa/IN: loaded serial 1
Apr 30 18:11:09 mailgate named[415]: zone 127.in-addr.arpa/IN: loaded serial 1
Apr 30 18:11:09 mailgate named[415]: zone 255.in-addr.arpa/IN: loaded serial 1
Apr 30 18:11:09 mailgate named[415]: zone localhost/IN: loaded serial 1
Apr 30 18:11:09 mailgate named[415]: running
Apr 30 18:11:12 mailgate proxconfig[425]: ERROR: unable to read smtp whitelist: DBI connect('dbname=Proxmox_ruledb','postgres',...) failed: could not connect to server: No such file or directory ^IIs the server running locally and accepting ^Iconnections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? at /usr/share/perl5/Proxmox/Utils.pm line 488
Apr 30 18:11:15 mailgate proxconfig[425]: registering razor failed: Unable to register without a valid razorhome or identity: at /usr/share/perl5/Proxmox/Utils.pm line 2775.
Apr 30 18:11:18 mailgate clamd[693]: clamd daemon 0.94.2 (OS: linux-gnu, ARCH: i386, CPU: i486)
Apr 30 18:11:18 mailgate clamd[693]: Log file size limit disabled.
Apr 30 18:11:18 mailgate clamd[693]: Reading databases from /var/lib/clamav/
Apr 30 18:11:18 mailgate clamd[693]: Not loading PUA signatures.
Apr 30 18:11:21 mailgate clamd[693]: Loaded 545993 signatures.
Apr 30 18:11:21 mailgate clamd[693]: LOCAL: Unix socket file /var/run/clamav/clamd.ctl
Apr 30 18:11:21 mailgate clamd[693]: LOCAL: Setting connection queue length to 15
Apr 30 18:11:21 mailgate clamd[694]: Limits: Global size limit set to 100000000 bytes.
Apr 30 18:11:21 mailgate clamd[694]: Limits: File size limit set to 25000000 bytes.
Apr 30 18:11:21 mailgate clamd[694]: Limits: Recursion level limit set to 5.
Apr 30 18:11:21 mailgate clamd[694]: Limits: Files limit set to 1000.
Apr 30 18:11:21 mailgate clamd[694]: Archive support enabled.
Apr 30 18:11:21 mailgate clamd[694]: Algorithmic detection enabled.
Apr 30 18:11:21 mailgate clamd[694]: Portable Executable support enabled.
Apr 30 18:11:21 mailgate clamd[694]: ELF support enabled.
Apr 30 18:11:21 mailgate clamd[694]: Detection of broken executables enabled.
Apr 30 18:11:21 mailgate clamd[694]: Mail files support enabled.
Apr 30 18:11:21 mailgate clamd[694]: OLE2 support enabled.
Apr 30 18:11:21 mailgate clamd[694]: PDF support enabled.
Apr 30 18:11:21 mailgate clamd[694]: HTML support enabled.
Apr 30 18:11:21 mailgate clamd[694]: Self checking every 3600 seconds.
Apr 30 18:11:21 mailgate freshclam[783]: freshclam daemon 0.94.2 (OS: linux-gnu, ARCH: i386, CPU: i486)
Apr 30 18:11:21 mailgate freshclam[783]: ClamAV update process started at Thu Apr 30 18:11:21 2009
Apr 30 18:11:21 mailgate freshclam[783]: Your ClamAV installation is OUTDATED!
Apr 30 18:11:21 mailgate freshclam[783]: Local version: 0.94.2 Recommended version: 0.95.1
Apr 30 18:11:21 mailgate freshclam[783]: DON'T PANIC! Read http://www.clamav.net/support/faq
Apr 30 18:11:21 mailgate freshclam[783]: main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
Apr 30 18:11:21 mailgate freshclam[783]: daily.cvd is up to date (version: 9307, sigs: 46147, f-level: 42, builder: ccordes)
Apr 30 18:11:21 mailgate freshclam[783]: --------------------------------------
Apr 30 18:11:21 mailgate postfix/master[844]: daemon started -- version 2.3.8, configuration /etc/postfix
Apr 30 18:11:23 mailgate proxdaemon[892]: starting server
Apr 30 18:11:23 mailgate proxdaemon[892]: starting 1 worker(s)
Apr 30 18:11:23 mailgate proxdaemon[892]: worker 893 started
Apr 30 18:11:23 mailgate proxtunnel[899]: not starting server - not part of cluster
Apr 30 18:11:24 mailgate proxmirror[915]: not starting server - not part of cluster
Apr 30 18:11:25 mailgate proxpolicy[931]: Process Backgrounded
Apr 30 18:11:25 mailgate proxpolicy[931]: 2009/04/30-18:11:25 main (type Net::Server::preForkSimple) starting! pid(931)
Apr 30 18:11:25 mailgate proxpolicy[931]: Binding to TCP port 10022 on host 127.0.0.1
Apr 30 18:11:25 mailgate proxpolicy[931]: Group Not Defined. Defaulting to EGID '0'
Apr 30 18:11:25 mailgate proxpolicy[931]: User Not Defined. Defaulting to EUID '0'
Apr 30 18:11:25 mailgate proxpolicy[931]: Setting up serialization via flock
Apr 30 18:11:25 mailgate proxpolicy[931]: Policy daemon (re)started
Apr 30 18:11:25 mailgate proxpolicy[931]: Beginning prefork (5 processes)
Apr 30 18:11:25 mailgate proxpolicy[931]: Starting "5" children
Apr 30 18:11:25 mailgate proxprox[952]: Process Backgrounded
Apr 30 18:11:25 mailgate proxprox[952]: 2009/04/30-18:11:25 main (type Net::Server::preFork) starting! pid(952)
Apr 30 18:11:25 mailgate proxprox[952]: Binding to TCP port 10023 on host 127.0.0.1
Apr 30 18:11:25 mailgate proxprox[952]: Binding to TCP port 10024 on host 127.0.0.1
Apr 30 18:11:25 mailgate proxprox[952]: Group Not Defined. Defaulting to EGID '0'
Apr 30 18:11:25 mailgate proxprox[952]: User Not Defined. Defaulting to EUID '0'
Apr 30 18:11:25 mailgate proxprox[952]: Setting up serialization via flock
Apr 30 18:11:25 mailgate proxprox[952]: Filter daemon (re)started (max. 22 processes)
Apr 30 18:11:26 mailgate aveserver[967]: Kaspersky Anti-Virus server version 5.5.10/RELEASE build #166, using configuration file /etc/kav/kav4mailservers.conf
Apr 30 18:11:26 mailgate aveserver[967]: No valid keys were loaded
Apr 30 18:11:26 mailgate /usr/sbin/cron[972]: (CRON) INFO (pidfile fd = 3)
Apr 30 18:11:26 mailgate /usr/sbin/cron[973]: (CRON) STARTUP (fork ok)
Apr 30 18:11:26 mailgate /usr/sbin/cron[973]: (CRON) INFO (Running @reboot jobs)
Apr 30 18:11:26 mailgate /USR/SBIN/CRON[975]: (root) CMD (test -x /usr/lib/atsar/atsadc && (LOGDIR=/var/log/atsar; CURDAY=`date +%d`; find $LOGDIR/atsa$CURDAY -mtime +2 -type f -exec rm {} \; 2> /dev/null; /usr/lib/atsar/atsadc $LOGDIR/atsa$CURDAY))
Apr 30 18:11:28 mailgate init: no more processes left in this runlevel
Apr 30 18:11:28 mailgate proxprox[952]: Beginning prefork (2 processes)
Apr 30 18:11:28 mailgate proxprox[952]: Starting "2" children
Apr 30 18:12:25 mailgate proxwww[1052]: auth failed: Authentication failure at /usr/share/perl5/Proxmox/Utils.pm line 344, <GEN0> line 71.
Apr 30 18:13:35 mailgate proxpolicy[931]: starting greylist database maintainance
Apr 30 18:13:35 mailgate proxpolicy[931]: end greylist database maintainance (18 ms)
Apr 30 18:13:38 mailgate proxprox[952]: starting database maintainance
Apr 30 18:13:38 mailgate proxprox[952]: end database maintainance (24 ms)
 
tried chrome, firefox and ie
never messed with the page encoding!?
 
hi
i'm in the uk - unfortunately ;)
I use an English(United Kingdom) keyboard layout
cheers
 
I just installed the latest Proxmox Mail Gateway from the template and have the same problem: no matter what password I choose I can login through SSH but not through the web access. I have tried both IE and Firerfox. Really this is a very annoying bug. Please advice.
 
Same kind of error in my syslog also:

May 13 05:21:19 pxmox1 proxwww[1050]: auth failed: Authentication failure at /usr/share/perl5/Proxmox/Utils.pm line 344, <GEN0> line 71.
May 13 05:21:49 pxmox1 proxwww[1051]: auth failed: Authentication failure at /usr/share/perl5/Proxmox/Utils.pm line 344, <GEN0> line 71.


This must be a bug with the template. I believe we have enough people reporting the same comon issue here. What is the resolution then?

Thanks,

M
 
This must be a bug with the template. I believe we have enough people reporting the same comon issue here. What is the resolution then?

We can't reproduced the bug here. Unfortunately, so far nobody gives use ssh access to debug it.

Please contact support@proxmox.com directly if you are willing to debug (and give use ssh access).

- Dietmar
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!