Re: [vchkpw] vadddomain on NFS need qmail-send reload

2012-01-04 Thread Alessio Cecchi

Il 03/01/2012 12:27, Jonas Holm Bundgaard ha scritto:



Is there a trick to automate this task (svc -h /service/qmail-send) via
"vpopmail" on all servers in the cluster?



/home/vpopmail/etc/onchange perhaps?



This is a good idea.

I had also thought of a system that check 
/var/qmail/control/virtualdomains via md5sum and if it's chaged since 
last check reload qmail-send.


Other suggestions?
--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG -> Socio http://www.lolug.net

!DSPAM:4f04179f34241431710879!



Re: [vchkpw] vadddomain on NFS need qmail-send reload

2012-01-03 Thread Jonas Holm Bundgaard

> Is there a trick to automate this task (svc -h /service/qmail-send) via
> "vpopmail" on all servers in the cluster?


/home/vpopmail/etc/onchange perhaps?


Best regards
Jonas


!DSPAM:4f02e60b34242119019458!



Re: [vchkpw] vadddomain segs fault in another file

2006-07-13 Thread Ruben Cardenal

Problem doesn't appear in .17 :)

Ruben.


Re: [vchkpw] vadddomain -u issues

2006-04-16 Thread kengheng

Tom Collins wrote:

On Apr 14, 2006, at 9:57 AM, Ken Jones wrote:

kengheng wrote:
When I add a domain using vadddomain -u , I have to change 
the permission of /var/qmail/vpopmail/etc/vpopmail.mysql to o+r  ?

Thanks.


Yes. By default, and for security reasons,
the ~vpopmail/etc/vpopmail.mysql file is only readable
by the vpopmail user.

If you add any domain under a different user, that user
will need access to that file.

You could either grant access to all users, or you could
make sure the vchkpw group has access and include the new
user in the vchkpw group.


Note that making it world-readable opens up a dangerous security 
hole.  If someone can get access to the server, they can learn the 
username and password for the entire vpopmail database.  If that 
server just does email, and only admins have access/accounts, then 
it's less of a risk.  Doing it on a server that does web hosting and 
allows users to upload their own cgi scripts would be very dangerous.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/


I agree with Tom, it will lead to more threats available. I'm using 
vadddomain -u option is for system based quota control, if the -u is not 
suitable in this scenario, what else can be used to control the mail 
quota since the vpopmail is not plan to add the domain quota function.


Thanks.


Re: [vchkpw] vadddomain -u issues

2006-04-14 Thread Tom Collins

On Apr 14, 2006, at 9:57 AM, Ken Jones wrote:

kengheng wrote:
When I add a domain using vadddomain -u , I have to change 
the permission of /var/qmail/vpopmail/etc/vpopmail.mysql to o+r  ?

Thanks.


Yes. By default, and for security reasons,
the ~vpopmail/etc/vpopmail.mysql file is only readable
by the vpopmail user.

If you add any domain under a different user, that user
will need access to that file.

You could either grant access to all users, or you could
make sure the vchkpw group has access and include the new
user in the vchkpw group.


Note that making it world-readable opens up a dangerous security hole.  
If someone can get access to the server, they can learn the username 
and password for the entire vpopmail database.  If that server just 
does email, and only admins have access/accounts, then it's less of a 
risk.  Doing it on a server that does web hosting and allows users to 
upload their own cgi scripts would be very dangerous.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] vadddomain -u issues

2006-04-14 Thread Ken Jones

kengheng wrote:
When I add a domain using vadddomain -u , I have to change the 
permission of /var/qmail/vpopmail/etc/vpopmail.mysql to o+r  ?


Thanks.


Yes. By default, and for security reasons,
the ~vpopmail/etc/vpopmail.mysql file is only readable
by the vpopmail user.

If you add any domain under a different user, that user
will need access to that file.

You could either grant access to all users, or you could
make sure the vchkpw group has access and include the new
user in the vchkpw group.

--
Ken Jones
inter7


Re: [vchkpw] vadddomain -> Error: Could not open qmail default

2006-02-22 Thread Jeremy Kister

On 2/22/2006 5:51 PM, Stoyan Marinov wrote:

As far as I know --enable-domains-dir sets the domains directory,
relative to vpopmail's home dir. If you set vpopmail's home dir
to /export/home/vpopmail, /export/home/vpopmail/domains will be set by
default as DOMAINS_DIR.


Funny, I was just testing that as your message came in.

I changed the path to /export/home/vpopmail/./ in my passwd file, and 
recompiled.


sure enough, the error was referencing 
/export/home/vpopmail/./export/home/vpopmail/domains


so --enable-domains-dir is relative to the vpopmail user's path.  I 
think it's more intuitive to think that --enable-domains-dir overrides 
--prefix.  but that's fine.  it should be noted in ./configure --help.


recompiling and simply leaving out --enable-domains-dir fixed the problem.

Thanks,

--

Jeremy Kister
http://jeremy.kister.net./





Re: [vchkpw] vadddomain -> Error: Could not open qmail default

2006-02-22 Thread Stoyan Marinov




As far as I know --enable-domains-dir sets the domains directory, relative to vpopmail's home dir. If you set vpopmail's home dir to /export/home/vpopmail, /export/home/vpopmail/domains will be set by default as DOMAINS_DIR.

Stoyan

On Wed, 2006-02-22 at 16:09 -0500, Jeremy Kister wrote:


when i use vadddomain, i get an error:
Error: Could not open qmail default

vdeldomain, vadduser, and vdeluser all work correctly.

I made a small change to vpopmail.c to see what's going on:

--- ../vpopmail-5.4.13/vpopmail.c   2006-02-22 16:05:34.612401000 -0500
+++ vpopmail.c  2006-02-22 15:58:12.998402000 -0500
@@ -198,6 +198,7 @@
/* create the .qmail-default file */
snprintf(tmpbuf, sizeof(tmpbuf), "%s/%s/%s/.qmail-default", dir, 
DOMAINS_DIR,
  DomainSubDir);
+   fprintf(stderr, "%s/%s/%s/.qmail-default\n", dir, DOMAINS_DIR, 
DomainSubDir);
if ( (fs = fopen(tmpbuf, "w+"))==NULL) {
  /* back out of changes made so far */
  chdir(dir); chdir(DOMAINS_DIR);



this yields the following output:
/export/home/vpopmail//export/home/vpopmail/domains/ff.com/.qmail-default
Error: Could not open qmail default

my configure:

./configure \
--prefix=/export/home/vpopmail/arch/SunOS-5-sun4u \
--enable-domains-dir=/export/home/vpopmail/domains \
--disable-md5-passwords \
--disable-roaming-users \
--enable-logging=v \
--disable-rebuild-tcpserver-file \
--enable-learn-passwords \
--enable-qmail-ext \
--enable-ip-alias-domains


if I symlink /export/home/vpopmail/export/home/vpopmail/domains to 
/export/home/vpopmail/domains, all works fine.

Anyone know why this is happening ?








Re: [vchkpw] vadddomain/vdeliver issue

2005-02-09 Thread Rick Macdougall

[EMAIL PROTECTED] wrote:
Hiya,
I have a bog standard FC3 QMR install which is all working great in
standard form, but
im starting to use system quotas, and as a result i want to
include users mail in with this, so from looking at vadddomain i can
supply the -u flag as below and the resulting mail folders are owned
by the user rather than vpopmail; i.e.
vadddomain -u test test.com
gives;
/home/test/domains/test.com#>ls -al ./
-rw---  1 test test   34 Feb  9 03:05 .dir-control
drwx--  3 test test 4096 Feb  9 03:05 postmaster
-rw---  1 test test   63 Feb  9 03:05 .qmail-default
-rw---  1 test test  140 Feb  9 03:05 vpasswd
-rw---  1 test test 2210 Feb  9 03:05 vpasswd.cdb
-rw---  1 test test0 Feb  9 03:05 .vpasswd.lock
so now the mail will be included with the system quota, but now
vedlivermail cant seem to deliver to the users folders??
@4000420980081c32b254 starting delivery 16: msg 6178941 to local
[EMAIL PROTECTED]
@4000420980081c32c9c4 status: local 1/10 remote 0/255
@4000420980081c5d3524 delivery 16: deferral: /bin/sh:_/var/vpopmail
/bin/vdelivermail:_Permission_denied/
@4000420980081c5d507c status: local 0/10 remote 0/255
now ive spent the last few hours having a good browse around and a
damn good read, but i cant seem to find the right answer, any pointers
from you guys??
Hi,
How are you running qmail-smtpd ?
If running from tcpserver, please post your run file.  Mine is as 
follows (same setup but running Slackware)

#!/bin/sh
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ /usr/local/bin/multilog t s500 n10 \
 /var/log/qmail
Regards,
Rick


Re: [vchkpw] vadddomain/vdeliver issue

2005-02-09 Thread Jeremy Kitchen
On Wednesday 09 February 2005 04:16 pm, [EMAIL PROTECTED] wrote:
> @4000420980081c32b254 starting delivery 16: msg 6178941 to local
> [EMAIL PROTECTED]
> @4000420980081c5d3524 delivery 16: deferral: /bin/sh:_/var/vpopmail
> /bin/vdelivermail:_Permission_denied/

ls -ld /var/vpopmail

if it doesn't jump out and smack you, try posting your results ;)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpXdJMgW5reY.pgp
Description: PGP signature


Re: [vchkpw] vadddomain error!

2004-10-26 Thread Tom Collins
On Oct 26, 2004, at 3:44 AM, info wrote:
I'v got this message:
Error: (vadduser) Domain does not exist
The /usr/home/vpopmail/domains/domain.com/ folder is created but 
contains only the .qmail-default file.
The /var/qmail/control/virtualdomains is writen and the 
domain.com:domain.com string is added. Equal for the rcphosts.
Any Ideas?
Is domain.com getting added to /var/qmail/users/assign?  That's where 
adduser() looks up the domain's directory.  If it doesn't show up in 
there (and get rebuilt into users/cdb), then there's a problem.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vadddomain

2004-04-13 Thread Tom Collins
On Apr 13, 2004, at 7:56 AM, David Diaz wrote:
and the last thing check in your etc directory of vpopmail 
(home/vpopmail/etc) exists the file:
vpopmail.mysql with the correct permissions, something like that:

-rw-r--r--1 vpopmail vchkpw636 abr  6 00:53 vpopmail.mysql
Make sure your vpopmail.mysql file is NOT world readable.  If it is, 
anyone with access to your system can potentially read the 
username/password information and do bad things to your vpopmail 
database.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


RE: [vchkpw] vadddomain

2004-04-13 Thread Shane Chrisp



Whats in your ~vpopmail/etc/vpopmail.mysql 
file?
 
The format is meant to be like
 
192.168.0.1|3306|vpopmail|password|vpopmail
 
The password is plain text as well.
 
Sometimes there is a problem with connections using sockets 
so its worth trying to
connect with tcp instead.
 
Shane

  
  
  From: Jasmine 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, 13 April 
  2004 5:44 AMTo: [EMAIL PROTECTED]Subject: [vchkpw] 
  vadddomain
  
  Whenever i try to run vadddomain to add a virtual 
  domain, i get this error message:
   
  vmysql: sql error[3]: MySQL server has gone 
  awayvmysql: sql error[2]: MySQL server has gone awayFailed while 
  attempting to add user to auth backendError: (vadduser) no auth 
  connection
  Meanwhile mysql service runs;
   
  mail3# ps waux | grep 
  mysqlroot    8025  0.0  0.1   924  
  668  p0- I    Thu01PM   0:00.01 /bin/sh 
  bin/safe_mysqldmysql   8035  0.0  1.7 38028 
  18028  p0- S    Thu01PM   1:13.98  
  (mysqld)
  Please can someone tell me why i get this error 
  message?
   
  jasmine.
   
   


RE: [vchkpw] vadddomain

2004-04-13 Thread David Diaz
Maybe could be a differents things, try to check:

a) The user of vpopmail to access to mysql db exists and the user and 
passwords is correct
b) This user (vpopmail user) has the right permissions to db
c) Try to conect to db from your prompt, I mean:
#mysql --user=vpopmail --database=vpopmail --password=password

and the last thing check in your etc directory of vpopmail 
(home/vpopmail/etc) exists the file:
vpopmail.mysql with the correct permissions, something like that:

-rw-r--r--1 vpopmail vchkpw636 abr  6 00:53 vpopmail.mysql

and check this file (open it) and you need to have somthing similar:

localhost|0|vpopmail|password|database
localhost|0|root|password|database


From: "Jasmine" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: [vchkpw] vadddomain
Date: Mon, 12 Apr 2004 23:43:38 +0200
Whenever i try to run vadddomain to add a virtual domain, i get this error 
message:

vmysql: sql error[3]: MySQL server has gone away
vmysql: sql error[2]: MySQL server has gone away
Failed while attempting to add user to auth backend
Error: (vadduser) no auth connection
Meanwhile mysql service runs;

mail3# ps waux | grep mysql
root8025  0.0  0.1   924  668  p0- IThu01PM   0:00.01 /bin/sh 
bin/safe_mysqld
mysql   8035  0.0  1.7 38028 18028  p0- SThu01PM   1:13.98  (mysqld)

Please can someone tell me why i get this error message?

jasmine.


_
MSN Fotos: la forma más fácil de compartir e imprimir fotos.  
http://photos.msn.es/support/worldwide.aspx



Re: [vchkpw] vadddomain hangs up. (qmail/vpopmail over NFS cluster)

2004-02-19 Thread Charles Sprickman
On Wed, 18 Feb 2004 [EMAIL PROTECTED] wrote:

> #strace '/usr/local/vpopmail/bin/vadddomain sdfsdfsdfsdf.it'
> strace: /usr/local/vpopmail/bin/vadddomain sdfsdfsdfsdf.it: command not found

If you are running freebsd, you want "ktrace"; strace is a linux-ism.
Peek at the manpages for ktrace and kdump.

Charles

> I mounted procfs, installed strace.. but somehow it's broken.
>
> strace uptime
>
> just freeze :)
>
> Best Regards
> --
>


Re: [vchkpw] vadddomain hangs up. (qmail/vpopmail over NFS cluster)

2004-02-18 Thread madsen999
> onsdagen den 18 februari 2004 11.39 skrev [EMAIL PROTECTED]:
>> Hey.. im trying to setup vpopmail in a small cluster on a FreeBSD5.2 box
>> with Netapp back-end.
>>
>> I've mounted vpopmail domains folders and /qmail/control + /qmail/users
>> folder on NFS.
>>
>> when i try
>>
>> # /usr/local/vpopmail/bin/vadddomain abc123.com
>>
>> It just stops (hangs up) without finishing.
>
> strace it?

Can't really...

#strace '/usr/local/vpopmail/bin/vadddomain sdfsdfsdfsdf.it'
strace: /usr/local/vpopmail/bin/vadddomain sdfsdfsdfsdf.it: command not found

I mounted procfs, installed strace.. but somehow it's broken.

strace uptime

just freeze :)

Best Regards
--


Re: [vchkpw] vadddomain hangs up. (qmail/vpopmail over NFS cluster)

2004-02-18 Thread Oden Eriksson
onsdagen den 18 februari 2004 11.39 skrev [EMAIL PROTECTED]:
> Hey.. im trying to setup vpopmail in a small cluster on a FreeBSD5.2 box
> with Netapp back-end.
>
> I've mounted vpopmail domains folders and /qmail/control + /qmail/users
> folder on NFS.
>
> when i try
>
> # /usr/local/vpopmail/bin/vadddomain abc123.com
>
> It just stops (hangs up) without finishing.

strace it?




Re: [vchkpw] vadddomain + mysql replication segfault

2004-02-11 Thread Jeremy Kitchen
On Wed, 2004-02-11 at 20:38, Jeremy Kitchen wrote:
> I'm going to post this, as well as the problem I found the other day to
> the vpopmail sourceforge page in just a little bit.

done:

vadduser -s bug:
https://sourceforge.net/tracker/index.php?func=detail&aid=895375&group_id=85937&atid=577798

vadddomain + mysql replication segfault:
https://sourceforge.net/tracker/index.php?func=detail&aid=895376&group_id=85937&atid=577798

(sorry for long urls)

If I get a chance I'll try to set up a test bed and get some strace
output, but I don't know exactly when I'll have the chance to set up 
-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE
-- 
Jeremy Kitchen <[EMAIL PROTECTED]>



Re: [vchkpw] vadddomain -O is broken in 5.4.0-pre1

2003-12-14 Thread Casey Zacek
Tom Collins wrote (at Sun, Dec 14, 2003 at 02:28:36PM -0700):
> There's an open bug report for it on SourceForge now.

I suppose I should get used to using that thing... sorry.

> In the long run, the 
> solution is to cache the information on the newly-added domain so 
> vget_assign can pull from the cache instead of trying to read the 
> users/cdb file (which hasn't been rebuilt yet).

Of course!  In the meantime, I just added a '-p' flag to the
vadddomain command to not add a postmaster account (I use
forwards/aliases for it), and that fixed my problem.  Patches are
forthcoming, but it may be a few days.

-- 
Casey Zacek
Senior Engineer
NeoSpire, Inc.



Re: [vchkpw] vadddomain -O is broken in 5.4.0-pre1

2003-12-14 Thread Tom Collins
On Sunday, December 14, 2003, at 06:44  AM, X-Istence wrote:
Submit a patch on sourceforge or put it on the list if possible, as 
you know why the problem happens.

If not, let me know where to look exactly, and ill take a look.
There's an open bug report for it on SourceForge now.

It may have worked at one time, but it doesn't now.  For the 5.4 
release, we may have to disable the flag.  In the long run, the 
solution is to cache the information on the newly-added domain so 
vget_assign can pull from the cache instead of trying to read the 
users/cdb file (which hasn't been rebuilt yet).

We're on top of it.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] vadddomain -O is broken in 5.4.0-pre1

2003-12-14 Thread Casey Zacek
X-Istence wrote (at Sun, Dec 14, 2003 at 08:44:53AM -0500):
> Casey Zacek wrote:
> 
> >'vadddomain -O' is broken in 5.4.0-pre1, and probably others.
> >
> >The problem is that vget_assign() looks in [/var/qmail/]users/cdb for
> >the domain, and it's not there yet for the vadduser(postmaster) call.
> >
> >vsetuserquota(), after vadduser(), also uses vget_assign(), as does
> >vadddomain's main() directly if a catchall has been chosen.
> >
> >It's not a big deal to me, but I thought I'd point it out because it
> >probably shouldn't be broken in 5.4.0.
> 
> Submit a patch on sourceforge or put it on the list if possible, as you 
> know why the problem happens.
> 
> If not, let me know where to look exactly, and ill take a look.

The problem is that I don't see how this ever worked.  The -O causes
vadddomain to skip steps that are used by vget_assign().  The solution
is to not use the -O option.  Either that, or make the -O option take
domain names on standard input, read from a file, or take multiple
domain names on the command-line, perhaps.  That would be cool.  Right
now, though, I don't think I have time to patch it; I'm under
time-crunch (which is why I was using -O to begin with). :)

Actually, reading domain names from a file or stdin should be pretty
easy.  Maybe I'll do that.

-- 
Casey Zacek
Senior Engineer
NeoSpire, Inc.



Re: [vchkpw] vadddomain -O is broken in 5.4.0-pre1

2003-12-14 Thread X-Istence
Casey Zacek wrote:

'vadddomain -O' is broken in 5.4.0-pre1, and probably others.

The problem is that vget_assign() looks in [/var/qmail/]users/cdb for
the domain, and it's not there yet for the vadduser(postmaster) call.
vsetuserquota(), after vadduser(), also uses vget_assign(), as does
vadddomain's main() directly if a catchall has been chosen.
It's not a big deal to me, but I thought I'd point it out because it
probably shouldn't be broken in 5.4.0.
 

Submit a patch on sourceforge or put it on the list if possible, as you 
know why the problem happens.

If not, let me know where to look exactly, and ill take a look.

X



Re: [vchkpw] vadddomain doest create postmaster account

2003-12-07 Thread Michael Bowe



OK good
 
Thanks for letting us know
 
I have closed the bug report I had open on 
sourceforge.
Michael.
 
 

  - Original Message - 
  From: 
  Andras Kende 
  
  To: 'Michael Bowe' ; [EMAIL PROTECTED] 
  
  Sent: Monday, December 08, 2003 5:23 
  PM
  Subject: RE: [vchkpw] vadddomain doest 
  create postmaster account
  
  
  Dear 
  Michael,
   
  Thanks for the 
  help
  Didn’t have luck with 
  strace (no /proc first, enabled at fstab then didn’t see any 
  output…)
   
  Anyway, I just 
  rebooted my server and everything works perfectly 
  !!
   
  ns1# 
  /usr/local/vpopmail/bin/vadddomain abcd.com abcd
  ns1#
   
  Probably there was 
  something small glitch with my system (maybe low 
  memory)…
   
   
  Best 
  regards,
   
  Andras 
  Kende
  http://www.kende.com
   
   
   
   
   
   
   
   
   
   
   
  
  
  
  
  From: Michael 
  Bowe [mailto:[EMAIL PROTECTED] Sent: Sunday, December 07, 2003 5:47 
  AMTo: 
  [EMAIL PROTECTED]Subject: 
  Re: [vchkpw] vadddomain doest create postmaster 
  account
   
  
  Can you attach the last 50 lines 
  of an strace of the commands that cause the hangup?  Just do 
  something like:strace vadddomain abc.com 
  abc
  
   
  
  Thanks,
  
  Michael.
  
   
  
  - Original Message - 
  
  

From: Andras Kende 


To: [EMAIL PROTECTED] 


Sent: Monday, 
December 01, 2003 2:42 AM

Subject: 
[vchkpw] vadddomain doest create postmaster 
account

 
I have this problem on a freebsd 
5.1 box since upgraded to 5.3.29 and 5.3.30
vadddomain doest create 
postmaster account, only the directory with a .qmail-default 
file…
 
It’s a plain install of vpopmail 
with cdb and no roaming user…
 
 
ns1# ./vadddomain aaabbbccc.com 
password
Hangup
ns1#
 
ns1# cd 
../domains/aaabbbccc.com/
ns1# ls 
-la
total 
6
drwx--   2 
vpopmail  vchkpw  512 Nov 30 09:34 .
drwx--  21 
vpopmail  vchkpw  512 Nov 30 09:34 ..
-rw---   1 
vpopmail  vchkpw   60 Nov 30 09:34 
.qmail-default
ns1#
 
If I do 
./vadduser [EMAIL PROTECTED] 
password
Everything works great, all files are 
created…
 
ns1# cd aaabbbccc.com/
ns1# ls -la
total 16
drwx--   3 vpopmail  
vchkpw   512 Nov 30 09:37 .
drwx--  21 vpopmail  
vchkpw   512 Nov 30 09:34 ..
-rw---   1 vpopmail  
vchkpw    34 Nov 30 09:37 
.dir-control
-rw---   1 vpopmail  
vchkpw    60 Nov 30 09:34 
.qmail-default
-rw---   1 vpopmail  
vchkpw 0 Nov 30 09:37 
.vpasswd.lock
drwx--   3 vpopmail  
vchkpw   512 Nov 30 09:37 postmaster
-rw---   1 vpopmail  
vchkpw   122 Nov 30 09:37 vpasswd
-rw---   1 vpopmail  vchkpw  
2192 Nov 30 09:37 vpasswd.cdb
 
 
Thanks
 
Andras 
  Kende


RE: [vchkpw] vadddomain doest create postmaster account

2003-12-07 Thread Andras Kende








Dear Michael,

 

Thanks for the help

Didn’t have luck with strace (no
/proc first, enabled at fstab then didn’t see any output…)

 

Anyway, I just rebooted my server and everything
works perfectly !!

 

ns1# /usr/local/vpopmail/bin/vadddomain
abcd.com abcd

ns1#

 

Probably there was something small glitch with
my system (maybe low memory)…

 

 

Best regards,

 

Andras Kende

http://www.kende.com

 

 

 

 

 

 

 

 

 

 

 









From: Michael Bowe
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 07, 2003
5:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] vadddomain
doest create postmaster account



 



Can you attach the last 50 lines of an strace of the
commands 
that cause the hangup?  Just do something like:

strace vadddomain abc.com abc





 





Thanks,





Michael.





 





- Original Message - 







From: Andras Kende 





To: [EMAIL PROTECTED]






Sent: Monday, December
01, 2003 2:42 AM





Subject: [vchkpw]
vadddomain doest create postmaster account





 



I have this problem on a freebsd 5.1 box since upgraded to
5.3.29 and 5.3.30

vadddomain doest create postmaster account, only the
directory with a .qmail-default file…

 

It’s a plain install of vpopmail with cdb and no
roaming user…

 

 

ns1# ./vadddomain aaabbbccc.com password

Hangup

ns1#

 

ns1# cd ../domains/aaabbbccc.com/

ns1# ls -la

total 6

drwx--   2 vpopmail  vchkpw  512 Nov
30 09:34 .

drwx--  21 vpopmail  vchkpw  512 Nov 30
09:34 ..

-rw---   1 vpopmail  vchkpw  
60 Nov 30 09:34 .qmail-default

ns1#

 

If I do 

./vadduser [EMAIL PROTECTED] password

Everything works great, all files are created…

 

ns1# cd aaabbbccc.com/

ns1# ls -la

total 16

drwx--   3 vpopmail  vchkpw   512 Nov 30
09:37 .

drwx--  21 vpopmail  vchkpw   512 Nov 30 09:34
..

-rw---   1 vpopmail  vchkpw    34 Nov
30 09:37 .dir-control

-rw---   1 vpopmail  vchkpw    60 Nov
30 09:34 .qmail-default

-rw---   1 vpopmail  vchkpw
0 Nov 30 09:37 .vpasswd.lock

drwx--   3 vpopmail  vchkpw   512 Nov 30
09:37 postmaster

-rw---   1 vpopmail  vchkpw   122 Nov 30
09:37 vpasswd

-rw---   1 vpopmail  vchkpw  2192 Nov 30 09:37
vpasswd.cdb

 

 

Thanks

 

Andras Kende










Re: [vchkpw] vadddomain doest create postmaster account

2003-12-07 Thread X-Istence




Michael Bowe wrote:

  
  
  
  Can you attach the last 50 lines of
an strace of the commands 
that cause the hangup?  Just do something like:
  
strace vadddomain abc.com abc
   
  Thanks,
  Michael.
   
  

Hey Micheal

This hangup doesnt happen with the latest version anymore:

Breached# cd /usr/local/vpopmail/bin
Breached# ./vadddomain test.domain.com test
Breached#

It would seem he is still using vpopmail 5.3.29 as that is the only
version where that "hangup" message gets produced.

X-Istence




Re: [vchkpw] vadddomain doest create postmaster account

2003-12-07 Thread Michael Bowe



Can you attach the last 50 lines of an strace of 
the commands that cause the hangup?  Just do something 
like:strace vadddomain abc.com abc
 
Thanks,
Michael.
 
- Original Message - 

  From: 
  Andras Kende 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 01, 2003 2:42 
  AM
  Subject: [vchkpw] vadddomain doest create 
  postmaster account
  
  
  I have this problem on a freebsd 
  5.1 box since upgraded to 5.3.29 and 5.3.30
  vadddomain doest create postmaster 
  account, only the directory with a .qmail-default 
  file…
   
  It’s a plain install of vpopmail 
  with cdb and no roaming user…
   
   
  ns1# ./vadddomain aaabbbccc.com 
  password
  Hangup
  ns1#
   
  ns1# cd 
  ../domains/aaabbbccc.com/
  ns1# ls 
  -la
  total 
  6
  drwx--   2 
  vpopmail  vchkpw  512 Nov 30 09:34 .
  drwx--  21 vpopmail  
  vchkpw  512 Nov 30 09:34 ..
  -rw---   1 
  vpopmail  vchkpw   60 Nov 30 09:34 
  .qmail-default
  ns1#
   
  If I do 
  ./vadduser [EMAIL PROTECTED] 
  password
  Everything works great, all files are 
  created…
   
  ns1# cd aaabbbccc.com/
  ns1# ls -la
  total 16
  drwx--   3 vpopmail  
  vchkpw   512 Nov 30 09:37 .
  drwx--  21 vpopmail  vchkpw   
  512 Nov 30 09:34 ..
  -rw---   1 vpopmail  
  vchkpw    34 Nov 30 09:37 
  .dir-control
  -rw---   1 vpopmail  
  vchkpw    60 Nov 30 09:34 
  .qmail-default
  -rw---   1 vpopmail  
  vchkpw 0 Nov 30 09:37 
  .vpasswd.lock
  drwx--   3 vpopmail  
  vchkpw   512 Nov 30 09:37 postmaster
  -rw---   1 vpopmail  
  vchkpw   122 Nov 30 09:37 vpasswd
  -rw---   1 vpopmail  vchkpw  
  2192 Nov 30 09:37 vpasswd.cdb
   
   
  Thanks
   
  Andras 
Kende


RE: [vchkpw] vadddomain doest create postmaster account

2003-11-30 Thread Andras Kende








Dear Michael,

 

 

* create the domain directory (completed)

* create the .qmail-default file (completed)

* add the domain to /var/qmail/users/assign file  (completed)

* add the domain to /var/qmail/control/rcpthosts (or
morerctphosts)   (completed)

* add the domain to /var/qmail/control/virtualdomains file  
(completed)

 

* add the domain to the auth system    ?

* create the postmaster account   (NOT completed)

 

The problem is definitely at the
postmaster creation, checked the files.

If I do  ./vadduser
[EMAIL PROTECTED]  password

Everything works great, all files are created…

 

Also I have a problem at deleting the
domain…

 

ns1# /usr/local/vpopmail/bin/vdeldomain
851754.com

Failed to delete dir_control for
851754.com

Hangup

ns1#

ns1# /usr/local/vpopmail/bin/vdeldomain
851754.com

Error: Domain does not exist

ns1#

 

 

I installed 5.3.28 at first with roaming
users + cdb + qmail smtp auth patch

Upgraded 5.3.29 with same config 

Then again 5.3.29 without roaming users
since I have smtp auth… J

Upgraded 5.3.30 with same config 

 

 

I know it must be some small glitch,

if I install again on a new box it would
be ok….

 

 

Thank you,

 

Andras Kende

 

 

 









From: Michael Bowe
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 30, 2003
4:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] vadddomain
doest create postmaster account



 





- Original Message - 





From: Andras Kende 





To: [EMAIL PROTECTED]






Sent: Monday, December
01, 2003 2:42 AM





Subject: [vchkpw]
vadddomain doest create postmaster account





 



I have this problem on a freebsd 5.1 box since upgraded to
5.3.29 and 5.3.30

vadddomain doest create postmaster account, only the
directory with a .qmail-default file…

 

It’s a plain install of vpopmail with cdb and no
roaming user…

 

 

ns1# ./vadddomain aaabbbccc.com password

Hangup

ns1#



That "Hangup" output above is not expected

I would assume it indicates some sort of crash of the
vadddomain program

I have opened a bug report on sourceforge so we can try and
fix this problem for you [851754]

 

To find out exactly what part of vadddomain has crashed, I
need you to lookup some more information for me.

Here the sequence of steps that vaddomain follows to create
a new domain. Can you look through the list until you find the first step which
did not successfully complete. Report your findings back to the list. This will
help us identify the source of the problem.

 

* create the domain directory (completed)

* create the .qmail-default file (completed)

* add the domain to /var/qmail/control/assign file

* add the domain to /var/qmail/control/rcpthosts (or
morerctphosts)

* add the domain to /var/qmail/control/virtualdomains file

* add the domain to the auth system

* create the postmaster account

 

Michael.








Re: [vchkpw] vadddomain doest create postmaster account

2003-11-30 Thread Michael Bowe




  - Original Message - 
  From: 
  Andras Kende 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 01, 2003 2:42 
  AM
  Subject: [vchkpw] vadddomain doest create 
  postmaster account
  
  
  I have this problem on a freebsd 
  5.1 box since upgraded to 5.3.29 and 5.3.30
  vadddomain doest create postmaster 
  account, only the directory with a .qmail-default 
  file…
   
  It’s a plain install of vpopmail 
  with cdb and no roaming user…
   
   
  ns1# ./vadddomain aaabbbccc.com 
  password
  Hangup
  ns1#
That "Hangup" output above is not 
expected
I would assume it indicates some sort of crash of 
the vadddomain program
I have opened a bug report on sourceforge so we can 
try and fix this problem for you [851754]
 
To find out exactly what part of vadddomain has 
crashed, I need you to lookup some more information for 
me.
Here the sequence of steps that vaddomain follows 
to create a new domain. Can you look through the list until you find the first 
step which did not successfully complete. Report your findings back to the list. 
This will help us identify the source of the problem.
 
* create the domain directory 
(completed)
* create the .qmail-default file 
(completed)
* add the domain to /var/qmail/control/assign 
file
* add the domain to /var/qmail/control/rcpthosts 
(or morerctphosts)
* add the domain to 
/var/qmail/control/virtualdomains file
* add the domain to the auth 
system
* create the postmaster 
account
 
Michael.


Re: [vchkpw] vadddomain failure

2003-10-22 Thread Justin Heesemann
On Wednesday 22 October 2003 23:38, Thomas Ledet wrote:
> > 
> > /home/vpopmail/bin  (or where ever your vpopmail home dir is) and
> > do 
 ./vadddomain..so like below...
> the vpopmail homedir is /var/vpopmail
> > 
> > #./vadddmomain testdmomain.com 123test
>
> 
> I get the exact same result and I don't really see what diffence it 
> should make

You're right, and it shouldn't.
Have you tried running strace ?
# strace ./vadddomain testdomain.com 123test

this might give us a little more information about what is going wrong.
the error message, which you get, only occurs when vpopmail has trouble 
accessing /var/qmail/control/locals   (or whereever your qmail 
directory may be), so maybe this file doesn't exist, or vpopmail can't 
access it for some reason.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] vadddomain failure

2003-10-22 Thread Thomas Ledet
X-Istence wrote:
I really suggest you get up to date. vpopmail development is at 5.3.28, 
and the problem you are having could allready have been fixed.
That is true. I'll forward your comment to the package maintainer.

Regards,
Thomas Ledet



Re: [vchkpw] vadddomain failure

2003-10-22 Thread Thomas Ledet
martin wrote:
is this a new install?   please excuse me as I am not trying to 
offend...but just want to make sure we are in the right place and such.
No, this is not a new install and I've had no problems before

/home/vpopmail/bin  (or where ever your vpopmail home dir is) and do 
./vadddomain..so like below...
the vpopmail homedir is /var/vpopmail

#./vadddmomain testdmomain.com 123test
I get the exact same result and I don't really see what diffence it 
should make

Regards,
Thomas Ledet



Re: [vchkpw] vadddomain failure

2003-10-22 Thread X-Istence
Thomas Ledet wrote:

Hi,

I'm having trouble with the vadddomain command. It gives me this 
error, when i try to add a domain

# vadddomain testdomain.com 123test
Failure while attempting to remove_line() the locals file
Error. Failed to add domain to assign file
Error: Could not update file
I'm using the debian packages from http://linux.myspinach.org/debian , 
which of course means that I'm not really sure, where the problem is.

I have installed the following versions

vpopmail-bin   5.3.26-1
libvpopmail-dev 5.3.26-1
libvpopmail1   5.3.26-1
libvpopmail-freecdb 5.3.26-1
qmail  1.03-27
I hope that either someone else found a solutions to this problem or 
that this is simply a bug, that hopefully will be solved :)

Regards,
Thomas Ledet




I really suggest you get up to date. vpopmail development is at 5.3.28, 
and the problem you are having could allready have been fixed.





Re: [vchkpw] vadddomain failure

2003-10-22 Thread martin
is this a new install?   please excuse me as I am not trying to 
offend...but just want to make sure we are in the right place and such.

/home/vpopmail/bin  (or where ever your vpopmail home dir is) and do 
./vadddomain..so like below...

#./vadddmomain testdmomain.com 123test

Reagards,
Martin
Thomas Ledet wrote:

Hi,

I'm having trouble with the vadddomain command. It gives me this 
error, when i try to add a domain

# vadddomain testdomain.com 123test
Failure while attempting to remove_line() the locals file
Error. Failed to add domain to assign file
Error: Could not update file
I'm using the debian packages from http://linux.myspinach.org/debian , 
which of course means that I'm not really sure, where the problem is.

I have installed the following versions

vpopmail-bin   5.3.26-1
libvpopmail-dev 5.3.26-1
libvpopmail1   5.3.26-1
libvpopmail-freecdb 5.3.26-1
qmail  1.03-27
I hope that either someone else found a solutions to this problem or 
that this is simply a bug, that hopefully will be solved :)

Regards,
Thomas Ledet


.






Re: [vchkpw] ./vadddomain & ./vadduser

2003-10-16 Thread martin
thank you very much...that fixed the issue!!!  Hopefully all will go 
well from here

thanks again,
Martin


Tom Collins wrote:

On Thursday, October 16, 2003, at 11:46  AM, martin wrote:

[EMAIL PROTECTED] users]# more assign
+example.com-:example.com:89:89:/home/vpopmail/domains/example.com:-::
+test1.com-:test1.com:89:89:/home/vpopmail/domains/test1.com:-::
since I am not able to get rid of this error..I am not able to add 
the users with their PW's eitherany thoughts?  Is this a qmail 
issue?


Add a blank line to the end of the file with a single ".".

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


.






Re: [vchkpw] ./vadddomain & ./vadduser

2003-10-16 Thread Tom Collins
On Thursday, October 16, 2003, at 11:46  AM, martin wrote:
[EMAIL PROTECTED] users]# more assign
+example.com-:example.com:89:89:/home/vpopmail/domains/example.com:-::
+test1.com-:test1.com:89:89:/home/vpopmail/domains/test1.com:-::
since I am not able to get rid of this error..I am not able to add the 
users with their PW's eitherany thoughts?  Is this a qmail issue?
Add a blank line to the end of the file with a single ".".

--
Tom Collins  -  [EMAIL PROTECTED]
Note: The Tom Logic offices will be closed October 23 to November 18.
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] Vadddomain should create limits entry in MySQL

2003-10-07 Thread Justin Heesemann
On Tuesday 07 October 2003 01:51, Jonathan Viney wrote:
> Hi,
>
> This is easily fixed manually, just run 'INSERT INTO limits (domain)
> VALUES ('example.net')' to create an entry and vmoddomlimits works
> fine. It is just that this should be done automatically at some
> point.
> > "Failed to vget_limits".
> >
> > when i use vpopmail with enable-mysql-limits and try to read them
> > via vmoddomlimits.
> > I also noticed that the mysql table "limits" has no entries when i
> > add a domain via e.g. qmailadmin.
> >
> > looks like a bug! :-)
>
> Cheers,
> Jonathan

the vmoddomlimits bug is fixed in cvs.
vget_limits did returned -1 even if default limits existed.

i wouldn't add an empty set of limits automatically with vadddomain, 
since, when there are some limits for domain abc.com, they are used 
instead of the default limits.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] Vadddomain should create limits entry in MySQL

2003-10-06 Thread Jonathan Viney
Hi,

This is easily fixed manually, just run 'INSERT INTO limits (domain)
VALUES ('example.net')' to create an entry and vmoddomlimits works fine.
It is just that this should be done automatically at some point.

> "Failed to vget_limits".
> 
> when i use vpopmail with enable-mysql-limits and try to read them via 
> vmoddomlimits.
> I also noticed that the mysql table "limits" has no entries when i add a 
> domain via e.g. qmailadmin.
> 
> looks like a bug! :-)

Cheers,
Jonathan




Re: [vchkpw] Vadddomain should create limits entry in MySQL

2003-10-06 Thread Alexander Gruber
Hello,

same to me. I also get the message

"Failed to vget_limits".

when i use vpopmail with enable-mysql-limits and try to read them via 
vmoddomlimits.
I also noticed that the mysql table "limits" has no entries when i add a 
domain via e.g. qmailadmin.

looks like a bug! :-)

greetings

alex

Jonathan Viney wrote:

Hi,

I have just checked with 5.3.28 and when creating a new domain with
vadddomain, an entry is not added for the domain in the limits table.
This means that the vmoddomlimits command doesn't work and fails with
"Failed to vget_limits".
I suggest that either a) an entry is created with the domain or b)
vmoddomlimits creates one if necessary.
Thanks,

Jonathan

 





Re: [vchkpw] vadddomain issues

2003-08-14 Thread Evren Yurtesen
try to figure out what does the files in /var/qmail/control
say, the users file etc. where is the domain directory there? considering
vadddomain could add something to there

On Wed, 13 Aug 2003, David Gibbons wrote:

> [EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain frenchclasses.com
> Please enter password for postmaster:
> enter password again:
> Error: Unable to chdir to vpopmail/domains/domain directory
> 
> 
> I've no idea where to trouble shoot this.. google is comming up empty of 
> solutions/reasons.. i've triede reinstalling anyone have any ideas? 
> i can provide more information obvious but i don't know else would be 
> helpful
> 
> 
> 
> 




Re: [vchkpw] vadddomain issues

2003-08-14 Thread David Gibbons
Evren Yurtesen wrote:

try to figure out what does the files in /var/qmail/control
say, the users file etc. where is the domain directory there? considering
vadddomain could add something to there
On Wed, 13 Aug 2003, David Gibbons wrote:

 

[EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain frenchclasses.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains/domain directory
I've no idea where to trouble shoot this.. google is comming up empty of 
solutions/reasons.. i've triede reinstalling anyone have any ideas? 
i can provide more information obvious but i don't know else would be 
helpful



   





 

Okay i removed qmail and reinstalled and n
ow that problem went away (sigh magic?) and now i'm faced with this fun 
error when i try to check pop3

-ERR this user has no $HOME/Maildir
Connection closed by foreign host.
any ideas or suggestions would be much apperciated.. again this is 
vpopmail 5.2.1
installed in /var/qmail/vpop





Re: [vchkpw] vadddomain issues

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 03:19  PM, David Gibbons wrote:
[EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain 
frenchclasses.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains/domain directory

I've no idea where to trouble shoot this.. google is comming up empty 
of solutions/reasons.. i've triede reinstalling anyone have any 
ideas? i can provide more information obvious but i don't know else 
would be helpful
What version of vpopmail?  What were your configuration options?

What is the home directory of the vpopmail user on your server?  (grep 
vpopmail /etc/passwd)

vadddomain, on a default install, will try to create the domain as

~vpopmail/domains/frenchclasses.com

It appears that the home directory entry in /etc/passwd is incorrect.  
It hsould probably be something like "/home/vpopmail" or, in your case, 
"/var/qmail/vpop".

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] vadddomain path problem

2003-03-27 Thread Ken Jones
On Wednesday 26 March 2003 08:53 pm, Moshe Jacobson wrote:
> On 27 Mar 2003, Jonas Pasche wrote:
> > That's not a bug, but the first occurence of the "balanced tree" feature
> > of vpopmail that applies both to the number of domains and to the number
> > of users in a given domain.
>
> I have a little beef with the "balanced tree" thing.  I started out by
> adding about 120 domains to my mail server, and it of course put about
> 20 into the "0/" subdirectory. The problem is, I deleted about 20 of
> them (which mostly all came out of the base directory)... and now,
> when I create new ones, it doesn't put them in the base dir even
> though there is still room there for more, but it just continues
> creating them in the 0/ subdirectory.  Is this intended? 
Yes.
I called it cutting corners or opertunitist programming.
By the time I had the "add a new user/directory" code 
working I didn't have time to update the "delete a user/directory"
feature to support backing up in the balenced tree. This leads to
"domain rot" if you will. The code also does not support
filling in holes or rebalencing. A safe rebalence batch
program might be more useful. It would be easier to
write wouldn't break the current code.

Feel free to crack open the code and add in the features you want. 

You can also use the --enable-users-big-dir=n configure option
to put all the domains/users in the same dir.

Ken Jones

> Why doesn't
> it create new domains in the highest possible directory?
>
> Thanks,
> Moshe




Re: [vchkpw] vadddomain path problem

2003-03-26 Thread Moshe Jacobson
On 27 Mar 2003, Jonas Pasche wrote:
> That's not a bug, but the first occurence of the "balanced tree" feature
> of vpopmail that applies both to the number of domains and to the number
> of users in a given domain. 

I have a little beef with the "balanced tree" thing.  I started out by
adding about 120 domains to my mail server, and it of course put about
20 into the "0/" subdirectory. The problem is, I deleted about 20 of
them (which mostly all came out of the base directory)... and now,
when I create new ones, it doesn't put them in the base dir even
though there is still room there for more, but it just continues
creating them in the 0/ subdirectory.  Is this intended? Why doesn't
it create new domains in the highest possible directory?

Thanks,
Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom




Re: [vchkpw] vadddomain path problem

2003-03-26 Thread Jonas Pasche
Hi Ryan,

> I am having a peculiar problem with the vadddomain command.

Are you really having a _problem_, meaning, the domain doesn't work?

> When i run this to add a domain: (vadddomain testing.com), it goes
> through the password prompt and when complete returns no errors.
> However, it seems to be adding a 0 (zero) to the end of the path.  For
> example, when adding domain testing.com, the path is
> /vpopmail/domains/0/testing.com, where it normally is
> /vpopmail/domains/testing.com.

That's not a bug, but the first occurence of the "balanced tree" feature
of vpopmail that applies both to the number of domains and to the number
of users in a given domain. As the feature page tells you, vpopmail
supports up to 23 million domains. At some point, it simply starts to
organize its domains into subdirectories for faster access. It shouldn't
lead to any actual problems.

Jonas




Re: [vchkpw] vadddomain errors when using LDAP

2002-10-22 Thread Benjamin Smith
Matteo, thanks for the help. 

Haven't changed versions. Here's what I note: 

When I run the adddomain program for "testq.com", a directory 
/var/qmail/vpopmail/domains/testq.com is created, with subdirs like 
postmaster/Maildir. Yet qmail as currently configured will auto-create a directory 
structure for the user when an email gets sent to them as 
/var/qmail/vpopmail/maildirs/{uid}. 

Here's what I did: 

touch /tmp/reference 
sleep 60 
find /var -newer /tmp/reference 

and I got this result: 
/var/qmail/control
/var/qmail/control/locals
/var/qmail/control/rcpthosts
/var/qmail/control/rcpthosts.lock
/var/qmail/control/virtualdomains.lock
/var/qmail/control/locals.lock
/var/qmail/control/virtualdomains
/var/qmail/users
/var/qmail/users/assign
/var/qmail/users/assign.lock
/var/qmail/users/cdb
/var/qmail/vpopmail/domains
/var/qmail/vpopmail/domains/testq.com
/var/qmail/vpopmail/domains/testq.com/.qmail-default
/var/qmail/vpopmail/domains/testq.com/postmaster
/var/qmail/vpopmail/domains/testq.com/postmaster/Maildir
/var/qmail/vpopmail/domains/testq.com/postmaster/Maildir/cur
/var/qmail/vpopmail/domains/testq.com/postmaster/Maildir/new
/var/qmail/vpopmail/domains/testq.com/postmaster/Maildir/tmp


>From what I understand, these files should have been modified: 
/var/qmail/control/locals
/var/qmail/control/rcpthosts

And everything else should have been left alone, though virtualdomains is probably ok. 
From what I understand, having the rcpthosts, locals entry, and a corresponding ldap 
record is all that's needed for qmail-ldap to pick up an email. Why all these changed 
files? 

-Ben 

Matteo Ridolfi <[EMAIL PROTECTED]> wrote :

> Scrive Benjamin Smith :&lang=en">[EMAIL PROTECTED]>:
> 
> > Over the past several days, I've painstakingly installed QMail 1.03,
> OpenLDAP
> > 2.0.x, qmail-scanner, SpamAssassin, and f-prot onto a mail server. It's
> all
> > working as it sits. I'm using ldap only for authentication. (either
> plaintext
> > or MD5 passwords in the LDAP DB)  
> > 
> > Now the game is to get vpopmail and sqwebmail to work, and this project
> will
> > be DONE. =) 
> > 
> > However, installing vpopmail with the ldap option fails on the first test,
> > that of vadddomain, as per the instructions README.ldap, fails. =( 
> > 
> > Doing some searching resulted in this page that indicates the problem is
> an
> > incorrect qmail.schema: 
> > 
> > http://www.mail-archive.com/vchkpw@;inter7.com/msg07584.html
> but he doesn't
> > give the qmail schema that works! Also, this guy indicates that he's close
> to
> > the solution, but it doesn't work. 
> > http://www.mail-archive.com/vchkpw@;inter7.com/msg07587.html
> > 
> > Has anybody come up with a fix for this? Am I just stuck? 
> > 
> 
> Mmm, you don't have to use the qmail.schema if you use vpopmail, but the
> qmailUser.schema, if I well remember you can find it into the vpopmail
> sources.
> If you can't find it I'll paste it in ml...
> Then, you don't have to use the latest stable release of vpopmail, but the
> 5.3.9
> version, that works great.
> Remember to put the line
> schemacheck off
> in your slapd.conf file
> 
> Think that's quite all...
> 
> 
>  /speza
> 
> 
> home:  http://speza.com 
>icq#: 11471656
> home2: http://porzia.esoul.it/~speza
> 
> 
> 
> --
> This mail sent trough IMP from http://segfault.notebook.locale

- The best way to predict the future is to invent it. -








Re: [vchkpw] vadddomain errors when using LDAP

2002-10-22 Thread Benjamin Smith
OK, so I'm to use qmailUser.schema, NOT qmail.schema? Well, I tried loading both, and 
openLDAP would not start. =/ so I guess so! 

I don't quite understand. Do you think I should NOT use the latest "stable"? 

You feel I should be using vpopmail 5.3.9 ("unstable"?) 

-Ben 

Matteo Ridolfi <[EMAIL PROTECTED]> wrote :

> Scrive Benjamin Smith :&lang=en">[EMAIL PROTECTED]>:
> 
> > Over the past several days, I've painstakingly installed QMail 1.03,
> OpenLDAP
> > 2.0.x, qmail-scanner, SpamAssassin, and f-prot onto a mail server. It's
> all
> > working as it sits. I'm using ldap only for authentication. (either
> plaintext
> > or MD5 passwords in the LDAP DB)  
> > 
> > Now the game is to get vpopmail and sqwebmail to work, and this project
> will
> > be DONE. =) 
> > 
> > However, installing vpopmail with the ldap option fails on the first test,
> > that of vadddomain, as per the instructions README.ldap, fails. =( 
> > 
> > Doing some searching resulted in this page that indicates the problem is
> an
> > incorrect qmail.schema: 
> > 
> > http://www.mail-archive.com/vchkpw@;inter7.com/msg07584.html
> but he doesn't
> > give the qmail schema that works! Also, this guy indicates that he's close
> to
> > the solution, but it doesn't work. 
> > http://www.mail-archive.com/vchkpw@;inter7.com/msg07587.html
> > 
> > Has anybody come up with a fix for this? Am I just stuck? 
> > 
> 
> Mmm, you don't have to use the qmail.schema if you use vpopmail, but the
> qmailUser.schema, if I well remember you can find it into the vpopmail
> sources.
> If you can't find it I'll paste it in ml...
> Then, you don't have to use the latest stable release of vpopmail, but the
> 5.3.9
> version, that works great.
> Remember to put the line
> schemacheck off
> in your slapd.conf file
> 
> Think that's quite all...
> 
> 
>  /speza
> 
> 
> home:  http://speza.com 
>icq#: 11471656
> home2: http://porzia.esoul.it/~speza
> 
> 
> 
> --
> This mail sent trough IMP from http://segfault.notebook.locale

- The best way to predict the future is to invent it. -