----- Original Message -----
From: "Gabriel Ambuehl" <[EMAIL PROTECTED]>
To: "Bill Shupp" <[EMAIL PROTECTED]>
Cc: "Ken Jones" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 6:09 PM
Subject: vaddaliasdomain() patches....
> -----BEGIN PGP SIGNED MESSAGE-----
>
> Hello all,
<snip>
If handling of qmail/control and qmail/users where done correctly, I have a
suspicion that what you are doing now is kind of waste of time.
Correct scenario:
.../qmail/control/virtualdomains:
real.dom:real.dom
alias.dom:real.dom
another-real.dom:another-real.dom
another-alias.dom:another-real.dom
.../qmail/control/rcpthost or morercpthosts:
real.dom
alias.dom
another-real.dom
another-alias.dom
.../qmail/users/assign:
+real.dom:vpopmail:123:123:/home/vpopmail/domains/real.dom:-::
+another-real.dom:vpopmail:123:123:/home/vpopmail/domains/another-real.dom:-
::
I've started to push my C-programer in the direction of vpopmail, and he
will be taking a look on this problem.
With the above scenario, you already have a "domains/aliasdomain" in the
virtualdomainsfile, since a real domain would have the same value on the
right hand side of ":", while a aliasdomain would have the realdomain there.
Every time an alias domain is added, only virtualdomains and
rcpthosts/morercpthosts would be affected.
--
--------------------------------------------
IDG New Media Einar Bordewich
Development Manager Phone: +47 2336 1420
E-Mail: eibo(at)newmedia.no
Lat: 59.91144 N Lon: 10.76097 E
--------------------------------------------
----- Original Message -----
From: "Gabriel Ambuehl" <[EMAIL PROTECTED]>
To: "Bill Shupp" <[EMAIL PROTECTED]>
Cc: "Ken Jones" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 6:09 PM
Subject: vaddaliasdomain() patches....
> -----BEGIN PGP SIGNED MESSAGE-----
>
> Hello all,
> I now fixed all the warnings that gcc generated in the segments of
> code that were changed by me (including one grave error).
>
> Now vpopmail.c got only more two warnings during the build (gcc
> 2.95.2, FreeBSD 4.3):
> gcc -I. -Icdb -g -O2 -Wall -c vpopmail.c
> vpopmail.c: In function `vpasswd':
> vpopmail.c:1102: warning: unused variable `gid'
> vpopmail.c:1101: warning: unused variable `uid'
> which is a bit strange cause vpasswd() uses both of them.
>
> The updated patch is attached (to be applied like the last one).
>
> There's one further issue that needs to be addressed before
> it can go into production (despite eventually found bugs, of
> course ;-): it probably would be the best if there were a small app
> that converted the existing, symlink based aliasdomains to the new
> scheme. This is rather easy to do for domains in ~vpopmail/domains
> [1]
> [2] and I'm willing to supply the code that will do it BUT I ask Ken
> (or anyone else) to take care of the actual integration of it into
> the package as I haven't got any experiences with the configure
> stuff.
>
>
>
> Best regards,
> Gabriel
>
> [1] go through the list of entries in the domain directory, check
> whether a given entry is a symlink (which means it is an aliasdomain)
> call the old vdeldomain() on it and reinstall it using
> vaddaliasdomain
>
> [2] I don't know whether there are actually situations where the
> domains aren't located there but placed all over the filesystem, for
> which the [1] obviously approach won't work.
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5i
>
> iQEVAwUBO45XM8Za2WpymlDxAQHeJwf+Ip9Qv7aGD86D4sVYzyaeHZ8pSYYQz3M0
> 0z+02/fRMVcdYxcHuZ+muvQjrfp2GYhjk5GBDMGAqDzw2ddk4FAP1dKPKMZyLVEg
> elasLA2rGxi1+V1rxNbmlpHux9C7DVvSNC+ZTNF7hUWpFy3ceJ3haB+2lrpcSYXy
> /R1MmNpTRFVRiMeWX9GXRHRJWG75Q4GYWPNXkWaSf2fQ8sdmaDjgkvOwdLNoJNX3
> vpSwb0nW5OlUv8KTEQ1TQjDLVAU4+tc84ebPD20XX2Ax3HbA6sSnwcoKV7HTvb5J
> rGngKp42ha0Tp5sfT1lOtNdg4Lzag7DyKnVdA/8G0DWu/rgL1oUDKg==
> =dAcB
> -----END PGP SIGNATURE-----