Mark Dennis | 10 Jun 2011 23:11

vQregister not same as vadduser

When using vadduser from command line, it creates the user folders and copies everything from the skel folder (Maildir; mailfilter; .qmail) to the user folder; but when a user is created from the vqregister cgi only the Maildir is copied.

 

The vpopmail.c file includes the line:  ret = vadduser(user, domain, password, fname, USE_POP);

Which I was hoping implies that vqregister uses vpopmail’s vadduser to create users and would act the same.

 

Could someone explain the difference and/or how to get the same result from vqregister?

 

Vpopmail-5.4.30; vqregister-2.5 (and if pertinent: simscan-1.4.0; maildrop-2.5.0; qmail-1.03 with the jms1-7.10 patch; dovecot-1.2.16)

 

Thanks

Mark

!DSPAM:4df288a732711139326078!
Tren Blackburn | 10 Jun 2011 23:24
Favicon

Re: vQregister not same as vadduser

Try using vqadmin.
 
From: Mark Dennis [mailto:mark <at> denntech.net]
Sent: Friday, June 10, 2011 02:11 PM
To: vchkpw <at> inter7.com <vchkpw <at> inter7.com>
Subject: [vchkpw] vQregister not same as vadduser
 

When using vadduser from command line, it creates the user folders and copies everything from the skel folder (Maildir; mailfilter; .qmail) to the user folder; but when a user is created from the vqregister cgi only the Maildir is copied.

 

The vpopmail.c file includes the line:  ret = vadduser(user, domain, password, fname, USE_POP);

Which I was hoping implies that vqregister uses vpopmail’s vadduser to create users and would act the same.

 

Could someone explain the difference and/or how to get the same result from vqregister?

 

Vpopmail-5.4.30; vqregister-2.5 (and if pertinent: simscan-1.4.0; maildr op-2.5.0; qmail-1.03 with the jms1-7.10 patch; dovecot-1.2.16)

 

Thanks

Mark

!DSPAM:4df28b6432711384415593!
Matt Brookings | 10 Jun 2011 23:23
Favicon

Re: vQregister not same as vadduser

On 6/10/2011 4:11 PM, Mark Dennis wrote:
> When using vadduser from command line, it creates the user folders and
> copies everything from the skel folder (Maildir; mailfilter; .qmail) to
> the user folder; but when a user is created from the vqregister cgi only
> the Maildir is copied.
> 
>  
> 
> The vpopmail.c file includes the line:  ret = vadduser(user, domain,
> password, fname, USE_POP);
> 
> Which I was hoping implies that vqregister uses vpopmail’s vadduser to
> create users and would act the same.
> 
>  
> 
> Could someone explain the difference and/or how to get the same result
> from vqregister?

It's likely your vpopmail version is newer (including the onchange
functionality to implement a skel) than the version that was used to
compile vQregister.  vpopmail 5.4 and below produce only static
libraries.  If you upgrade vpopmail, you need to recompile any programs
that you want to benefit from the upgrade.

Try recompiling vQregister and see if that fixes the problem.
--

-- 
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/

Mark Dennis | 11 Jun 2011 00:14

RE: vQregister not same as vadduser

Vqadmin (2.3.6) works the same as vqregister, copying just the Maildir; although qmailadmin (1.2.14) also copies the .qmail file, but not mailfilter.

 

From: Tren Blackburn [mailto:tren <at> eotnetworks.com]
Sent: Friday, June 10, 2011 2:25 PM
To: 'vchkpw <at> inter7.com'
Subject: R e: [vchkpw] vQregister not same as vadduser

 

Try using vqadmin.
 

From: Mark Dennis [mailto:mark <at> denntech.net]
Sent: Friday, June 10, 2011 02:11 PM
To: vchkpw <at> inter7.com <vchkpw <at> inter7.com>
Subject: [vchkpw] vQregister not same as vadduser
 

When using vadduser from command line, it creates the user folders and copies everything from the skel folder (Maildir; mailfilter; .qmail) to the user folder; but when a user is created from the vqregister cgi only the Maildir is copied.

 

The vpopmail.c file includes the line:  ret = vadduser(user, domain, password, fname, USE_POP);

Which I was hoping implies that vqregister uses vpopmail’s vadduser to create users and would act the same.

 

Could someone explain the difference and/or how to get the same result from vqregister ?

 

Vpopmail-5.4.30; vqregister-2.5 (and if pertinent: simscan-1.4.0; maildr op-2.5.0; qmail-1.03 with the jms1-7.10 patch; dovecot-1.2.16)

 

Thanks

Mark

!DSPAM:4df2976532711224597122!
Mark Dennis | 11 Jun 2011 00:19

RE: vQregister not same as vadduser

This is a new install of qmail; vpopmail etc.  vQregister was installed
after vpopmail; and has been recompiled a couple of times.

Other ideas?

-----Original Message-----
From: Matt Brookings [mailto:matt <at> inter7.com] 
Sent: Friday, June 10, 2011 2:24 PM
To: vchkpw <at> inter7.com
Subject: Re: [vchkpw] vQregister not same as vadduser

On 6/10/2011 4:11 PM, Mark Dennis wrote:
> When using vadduser from command line, it creates the user folders and
> copies everything from the skel folder (Maildir; mailfilter; .qmail) to
> the user folder; but when a user is created from the vqregister cgi only
> the Maildir is copied.
> 
>  
> 
> The vpopmail.c file includes the line:  ret = vadduser(user, domain,
> password, fname, USE_POP);
> 
> Which I was hoping implies that vqregister uses vpopmail's vadduser to
> create users and would act the same.
> 
>  
> 
> Could someone explain the difference and/or how to get the same result
> from vqregister?

It's likely your vpopmail version is newer (including the onchange
functionality to implement a skel) than the version that was used to
compile vQregister.  vpopmail 5.4 and below produce only static
libraries.  If you upgrade vpopmail, you need to recompile any programs
that you want to benefit from the upgrade.

Try recompiling vQregister and see if that fixes the problem.
--

-- 
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/

!DSPAM:4df2986532711956159963!

Matt Brookings | 11 Jun 2011 00:23
Favicon

Re: vQregister not same as vadduser


On 06/10/2011 05:19 PM, Mark Dennis wrote:
> This is a new install of qmail; vpopmail etc.  vQregister was installed
> after vpopmail; and has been recompiled a couple of times.
> 
> Other ideas?

Permissions on the onchange scripts and skel dir maybe?  Check the
Apache error log.  vpopmail outputs onchange errors to stderr.
--

-- 
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
Mark Dennis | 11 Jun 2011 00:51

RE: vQregister not same as vadduser

Everything under /home/vpopmail has owner.group: vpopmail.vchkpw
...as is everything under cgi-bin/vqregister and the resulting user
directory.

onchange permissions: 751
skel: 700
skel/Maildir: 700
skel/mailfilter: 600
skel/.qmail: 600

But you were right:
httpd/error_log shows "Permission denied" for vqregister.cgi

That doesn't make sense to me with the above settings.  What am I missing?

-----Original Message-----
From: Matt Brookings [mailto:matt <at> inter7.com] 
Sent: Friday, June 10, 2011 3:24 PM
To: vchkpw <at> inter7.com
Subject: Re: [vchkpw] vQregister not same as vadduser

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/10/2011 05:19 PM, Mark Dennis wrote:
> This is a new install of qmail; vpopmail etc.  vQregister was installed
> after vpopmail; and has been recompiled a couple of times.
> 
> Other ideas?

Permissions on the onchange scripts and skel dir maybe?  Check the
Apache error log.  vpopmail outputs onchange errors to stderr.
- -- 
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/

!DSPAM:4df2a01732711090416749!

Matt Brookings | 11 Jun 2011 00:54
Favicon

Re: vQregister not same as vadduser


On 06/10/2011 05:51 PM, Mark Dennis wrote:
> But you were right:
> httpd/error_log shows "Permission denied" for vqregister.cgi
> 
> That doesn't make sense to me with the above settings.  What am I missing?

I'd need to see the actual log line to have any idea.
--

-- 
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
Mark Dennis | 11 Jun 2011 00:57

RE: vQregister not same as vadduser

[Fri Jun 10 15:28:29 2011] [error] [client 71.83.80.18] /bin/sh:
/home/vpopmail/etc/onchange: Permission denied, referer:
http://ems.emailrd.com/cgi-bin/vqregister/vqregister.cgi

-----Original Message-----

I'd need to see the actual log line to have any idea.

!DSPAM:4df2a17132719592421395!

Matt Brookings | 11 Jun 2011 01:03
Favicon

Re: vQregister not same as vadduser


On 06/10/2011 05:57 PM, Mark Dennis wrote:
> [Fri Jun 10 15:28:29 2011] [error] [client 71.83.80.18] /bin/sh:
> /home/vpopmail/etc/onchange: Permission denied, referer:
> http://ems.emailrd.com/cgi-bin/vqregister/vqregister.cgi

Is vQregister running SUID and SGID, and is Apache allowing the suExec?
 Since you know it's a permissions problem now, you should be able to
trace the path.

I'm heading out of the office now.  If you still can't figure it out,
look for a second set of eyes, or, we're on-call 24/7 at the number in
my signature.

Good luck!
--

-- 
/*
    Matt Brookings <matt <at> inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/

Gmane