From: Anil <rep...@gm...> - 2008-05-18 16:54:09
|
When creating a new virtual server in virtualmin, I get this: Creating aliases for administration user .. .. aliases failed : makemap failed : /usr/sbin/makemap hash /etc/mail/virtusertable /etc/mail/virtusertable at ../web-lib-funcs.pl line 980. Adding administration user to groups .. .. done Creating home directory .. .. done Creating mailbox for administration user .. .. done Adding to email domains list .. .. done Adding default mail aliases .. .. Mail for domain failed! : makemap failed : /usr/sbin/makemap hash /etc/mail/virtusertable /etc/mail/virtusertable at ../web-lib-funcs.pl line 980. Adding new virtual website .. .. Apache website failed! : Failed to open /home/ecomport/logs/access_log for writing : Bad file number at ../web-lib-funcs.pl line 980. I am not sure why it mentions aliases when it is actually mapping virtusertable. I had modified the sendmail function to print out the exact things its doing like this: sub run_makemap { local($out); $out = &backquote_logged("$config{'makemap_path'} $_[2] $_[1] <\"$_[0]\" 2>&1"); if ($?) { &error("makemap failed : <pre>$out $config{'makemap_path'} $_[2] $_[1] $_[0]</pre>"); } } When I run the command from a terminal window, it works fine: root@ecompo:/# /usr/sbin/makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable root@ecompo:/# What's causing the problem? |