-----BEGIN PGP SIGNED MESSAGE-----
Tuesday, August 28, 2001, 6:24:03 PM, you wrote:
> When I get the time to do it, I'll come up with a solution to
> delete the aliasdomains... I assume patching vdeldomain (it
> currently
> complains that the aliases don't exist which makes not too much
> sense too me as vaddaliasdomain correctly stops if the alias is
> already
> existing!)
This appears to be some strange behavior of vget_assign() as
tmpstr = vget_assign(domain, Dir, 156, &uid, &gid )
doesn't seem to see the aliases whereas
tmpstr = vget_assign(domain, NULL, 156, NULL, NULL )
works for me.
> so that it only deletes the directory hierarchy when
> the last part of the directory is equal to the domain should work.
> Thoughts?
Actually, this isn't the best idea as it could prevent us from having
bigdir style domain directory layout (especially if it ain't based on
numbers
but the first x chars of the domain, an approach which I personally
favor) which I think would make sense in many hosting environments
where
there aren't many users per domains but instead huge numbers of
domains on a
machine. At the moment, I favor the following solution: change
vdeluser() that
it doesn't accept to delete postmaster accounts which I think would
be the correct
and RFC compliant behavior (IIRC qmailadmin is already acting like
this)
and let vdeldomain do a vauth_getpw() call on postmaster@domain, if
that is
empty, it then has to be an alias domain which accordingly doesn't
need to have any directories deleted. I know that this could cause
problems for people that forward postmaster accounts but that ain't a
very good idea anyway as it can cause massive problems with bounces.
The next issue concerning vdeldomain() is whether it should delete
all
aliasdomains to a domain when the "master"domain gets deleted as
those
aren't valid any longer. IMHO it would be better to do it and let
qmail
just bounce mails to the aliases with the normal message stating it
isn't
mailserver in charge for the domain than to have some message stating
that vpopmail couldn't chdir to the appropriate maildir or do you
like to be ditched for being a sloppy administrator?
The implementation isn't very hard as following the above scheme,
every line in users/assign containing the same directory as the
masterdomain has to be an alias of it and thus should be deleted
too.
Best regards,
Gabriel
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
iQEVAwUBO4vj8MZa2WpymlDxAQHgrQf/efcUM3gWoPCdJ6IAcZV3sVnzhDPnflc1
eqTY1t22yxGfZE/Fd/VL2X0A6VQqUFoUrz2uVYBFQr5n/XipmA+3MJJLFcFmtc+R
siHmKGc7Cs+/SIc0/oX0fERdIbyZW5mje+bQoF/Tiwxt7s/tVstJ1GdRosIIJoQ6
6YecW9wQyGHe95ePWHClKYiMz3UPUUfGPstgx+3ps8TSz2SXU1cFa2gO1Vz/u/sz
UahNakAL8e7xfJDfvAYG0QmpA81BWmczaaltPrMSTgvP1dmGSI0AxalotakycD/r
Lv7NR8OadktrPiUb7zFpL6DZHEnm2aXTWzmPBybxN7fzDJrbyV3I2A==
=is5f
-----END PGP SIGNATURE-----