FAQ:Troubleshooting

From VHCP Support

Jump to: navigation, search

Contents

Apache

Could not determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx

Apache cannot find server's hostname, you have to manually configure that.

Edit /etc/apache2/httpd.conf and add following line:

ServerName servername.domain.tld

Courier

Lots of authdaemond.plain processes

Edit /etc/init.d/courier-authdaemon

change line:
  ${libexecdir}/authlib/authdaemon stop
to this line:
  killall authdaemond.plain

and run /etc/init.d/courier-authdaemon restart

Engine

saslpasswd2: user not found

Adding new mail user gives this error:

Use of uninitialized value in concatenation (.) or string at /var/www/webadmin/engine/vhcp-mbox-mngr line 2603.
sh: -c: line 1: syntax error near unexpected token `|'
sh: -c: line 1: `| /bin/grep 'temp@domain.com' &> /tmp/vhcp-mbox-check-sasl-user'
saslpasswd2: user not found

This line is missing from /etc/vhcp/vhcp.conf and it causes that error.

CMD_SASLDB_LISTUSERS2=/usr/sbin/sasldblistusers2

Installation

Missing Perl modules

CRITICAL ERROR: Module [DBI] WAS NOT FOUND !

This can be fixed by:

perl -MCPAN -e shell

cpan> install MIME::Entity MIME::Parser Crypt::CBC Crypt::Blowfish Term::ReadPassword (or whatever modules you're missing)

CPAN will then start installing the packages. Once it has done this you can continue with your VHCP setup.

Postfix

fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: {MTA_HOSTNAME}

Something went wront with installation. Edit your /etc/postfix/main.cf manually and change myhostname = to right one.

warning: /var/spool/postfix/etc/sasldb2 and /etc/sasldb2 differ

Patch is available: http://vhcs.net/new/modules/mantis/file_download.php?file_id=7&type=bug

(You have to login to vhcs.net website to get access to bug tracker)

Proftpd

Proftpd FAQ can be found from http://www.proftpd.org/docs/faq/linked/faq-ch4.html

Slow connecting

If connecting / moving around in directories is acting slowly, you should try to add this to /etc/proftpd.conf:

<IfModule mod_delay.c>
DelayEngine off
IdentLookups off
UseReverseDNS off

This removes ident & dns lookups.

VHCP Engine

Auto Responder not working

Could be that autoresponder can't read vhcp.conf file and causes errors, that can be fixed by:

chmod 0644 /etc/vhcp/vhcp.conf

Or, if you get this error when you try to use the autoresponder:

Command died with status 13:
    "/var/www/vhcp/engine/messager/vhcp-arpl-msgr". Command output: Can't
    call method "disconnect" on an undefined value at
    /var/www/vhcp/engine/messager/vhcp-arpl-msgr line 1631.

Try the following steps:

1- Make a backup of /var/www/vhcp/engine/messager/vhcp-db-keys.pl:

cp /var/www/vhcp/engine/messager/vhcp-db-keys.pl /var/www/webadmin/engine/messager/vhcp-db-keys.pl.bkp

2- Copy the vhcp-db-keys.pl from /var/www/webadmin/engine to /var/www/webadmin/engine/messager:

cp /var/www/webadmin/engine/vhcp-db-keys.pl /var/www/vhcp/engine/messager/vhcp-db-keys.pl

3- Change the owner of /var/www/vhcp/engine/messager/vhcp-db-keys.pl to user vmail, group mail:

chown vmail:mail /var/www/vhcp/engine/messager/vhcp-db-keys.pl

4 - Add this line po postfix's main.cf file at /etc/postfix/main.cf:

vhcp-arpl_destination_recipient_limit = 1

5 - Edit file /var/www/vhcp/engine/messager/vhcp-arpl-msgr, locate this part (somewhere around line 1782):

if($auto_message ne '_no_') {

      if($name) { $mail_to = "\"".$name."\" "."<".$to_ma->address.">"; }

      else{ $mail_to = $to_ma->address; }

my $out = new MIME::Entity;

And change it to (we are adding "next if $mail_to =~ /vhcp-arpl/;" line):

if($auto_message ne '_no_') {

      if($name) { $mail_to = "\"".$name."\" "."<".$to_ma->address.">"; }

      else{ $mail_to = $to_ma->address; }

      next if $mail_to =~ /vhcp-arpl/;

my $out = new MIME::Entity;

That should fix it.

Webmail

Permission denied errors

If you get "Permission denied" errors using webmail, you need to give proper permissions to tools folder.

chmod -R 766 /var/www/webadmin/gui/tools

chmod -R 755 /var/www/webadmin/gui/tools

Notice! 2.4.7.x added script which modifies permissions automatically, run /var/www/webadmin/engine/setup/set-gui-permissions.sh to correct all GUI permissions!

Webmail quota

Edit /var/www/webadmin/gui/tools/webmail/inc/config.php and find line:

$quota_limit = 4096;

This quota applies only to webmail, if you want global quota to your mail system, check Mail quota page.

Personal tools