Ok, I forgot the strace and the vpopmail configure line, excuse me. The
problem got inside my brain and I don't act clearly now.
The configure line for vpopmail was:
./configure --enable-roaming-users=y
--enable-tcpserver-file=/etc/tcp.smtp --enable-md5-passwords=y
--enable-auth-logging=y --enable-mysql-logging=y --enable-clear-passwd=y
--enable-libdir=/usr/lib --enable-mysql=y --enable-valias=y
--enable-vpopuser=gea --enable-vpopgroup=dev
Directory permissions
daredevil ~# ls -l /var/qmail/
total 40
drwxr-sr-x2 aliasqmail4096 Jul 9 15:01 alias/
drwxr-xr-x2 root qmail4096 Jul 9 17:46 bin/
drwxr-xr-x2 root qmail4096 Jul 9 17:58 boot/
drwxr-xr-x2 gea qmail4096 Jul 9 18:53 control/
drwxr-xr-x2 root qmail4096 Jul 9 15:01 doc/
drwxr-xr-x 10 root qmail4096 Jul 9 15:01 man/
drwxr-x--- 11 qmailq qmail4096 Jul 9 15:01 queue/
-rwxr-xr-x1 root root 204 Jul 9 12:59 rc
drwxr-xr-x5 root root 4096 Jul 9 13:01 supervise/
drwxr-xr-x2 gea qmail4096 Jul 9 18:53 users/
daredevil ~# su - gea
daredevil ~$ echo $HOME
/var/gea/services/mail
daredevil ~$ ls -l /var/gea/services/mail/
total 24
drwxr-xr-x2 gea dev 4096 Jul 9 18:43 bin
drwxr-xr-x4 gea dev 4096 Jul 9 16:32 doc
drwx-- 19 gea dev 4096 Jul 9 19:00 domains
drwxr-xr-x2 gea dev 4096 Jul 9 16:32 etc
drwxr-xr-x2 gea dev 4096 Jul 9 16:32 include
drwx--2 gea dev 4096 Jul 9 16:32 lib
Also here are the last lines of /var/log/mysql.log
030709 19:00:00 159 Connect [EMAIL PROTECTED] on vpopmail
159 Query select cur_users, level_cur,
level_max, level_start0, level_start1, level_start2, level_end0,
level_end1, level_end2, level_mod0, level_mod1, level_mod2,
level_index0, level_index1, level_index2, the_dir from dir_control where
domain = "dom_1002"
159 Query replace into dir_control ( domain,
cur_users, level_cur, level_max, level_start0, level_start1,
level_start2, level_end0, level_end1, level_end2, level_mod0,
level_mod1, level_mod2, level_index0, level_index1, level_index2,
the_dir ) values ( "dom_1002", 23, 0, 3, 0, 0, 0, 61, 61, 61, 0, 2, 4,
0, 0, 0, "")
159 Query create table vpopmail ( pw_name
char(32) not null, pw_domain char(64) not NULL, pw_passwd char(40),
pw_uid int, pw_gid int, pw_gecos char(48), pw_dir char(160), pw_shell
char(20), pw_clear_passwd char(16), primary key (pw_name, pw_domain ) )
159 Quit
All the directory structure for the new domain is created.
Regards,
Juan Alonso wrote:
Hello List,
I have got a problem with Vpopmail 5.3.20 and adding domains as the
vpopuser.
Ive got a half-working installation of qmail + vpopmail (with mysql auth
and custom user&group). I can send & receive emails but I can only add
domains as root. Whenever I try to add one as user "gea" (the user I
configured vpopmail as) I get the following error:
Error: Domain does not exist
I have investigated in the source code and I think the problem lies here:
The last thing vadddomain does before aborting is checking if the table
vpopmail exists no the db. Next thing (as I see from the attached
strace) which throws an error is unknown to me.
Thank you in advance for any help,
PS: I have attached an strace done with
"strace /var/gea/services/mail/bin/vadddomain mydomain5.com lalala"
execve("/var/gea/services/mail/bin/vadddomain",
["/var/gea/services/mail/bin/vadddomain", "mydomain5.com", "lalala", "2"], [/* 14 vars
*/]) = 0
uname({sys="Linux", node="daredevil", ...}) = 0
brk(0) = 0x805ab68
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/usr/local/postgres/lib/i686/mmx/cmov/libmysqlclient.so.12", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/postgres/lib/i686/mmx/cmov", 0xb0d0) = -1 ENOENT (No such file
or directory)
open("/usr/local/postgres/lib/i686/mmx/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/postgres/lib/i686/mmx", 0xb0d0) = -1 ENOENT (No such file or
directory)
open("/usr/local/postgres/lib/i686/cmov/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/postgres/lib/i686/cmov", 0xb0d0) = -1 ENOENT (No such file or
directory)
open("/usr/local/postgres/lib/i686/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/local/postgres/lib/i686", 0xb0d0) = -1 ENOENT (No such file or
directory)
open("/usr/local/postgres/lib/mmx/cmov/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/postgres/lib/mmx/cmov", 0xb0d0) = -1 ENOENT (No such file or
directory)
open("/usr/local/postgres/lib