Re: [vchkpw] nasty bug: vpopmail 5.4.10 vdeldomain on alias destroys original domain

2006-03-26 Thread Rick Widmer

Tom Collins wrote:

On Mar 23, 2006, at 7:09 PM, Kurt Bigler wrote:


on 10/18/05 10:35 PM, Tom Collins [EMAIL PROTECTED] wrote:


On Oct 18, 2005, at 6:45 PM, Jeff Salisbury wrote:


FYI, I am using version 5.3.5 of the vpopmail tools...



Try upgrading to something in the 5.4 series.  vdeldomain in 5.4 will
correctly delete just the alias, and won't touch the real domain behind
it.



Incorrect.  Very nasty bug:

I'm using vpopmail 5.4.10 and just did vdeldomain to delete an alias 
domain.

It deleted the original domain and left the alias domain untouched (but
useless).

Lost everything in that domain, I guess, including all users emails.
Fortunately there weren't many users on that domain, and possibly no mail
since most users are forwarded elsewhere.



Are you sure you were deleting the alias?  I deleted an alias domain 
last week and it was fine.  I just tried on a development server, and it 
was fine as well.


I definitely remember finding this bug and fixing it in 5.5.


I think that Rick had been working on changed to vdeldomain where it 
would warn you if you were deleting a domain that still had aliases, but 
I'm not sure where that code is...


It should be in 5.5's vdeldomain somewhere.  I just finished the death 
march, and will be working on vpopmail/qmailadmin next.  I'm just now 
going through 300 or so messages I've ignored for the last few days...


What should I do?

Should we move to vpopmail-devel?


Re: [vchkpw] List aliases of domain

2006-03-26 Thread Rick Widmer

Tom Collins wrote:


On Mar 20, 2006, at 4:27 PM, Benjamin Owens wrote:


I'm trying to find a way to list all the aliases that a domain has.. for
example, I have both oldeportfish.com and oldportfish.com, with the 
latter

being an alias of oldeportfish.com.

If I run vdominfo on oldportfish.com it shows that it is an alias of
oldeportfish.com, but how do I find all the aliases of 
oldeportfish.com (if

there are possibly more that I don't know about.)



I don't think there's a simple way to do it. 


I think 5.5 vdominfo displays the name of the parent domain if it is 
showing a virtual domain, or a list of all virtual domains if it is 
showing a parent domain.


I should go through 5.5 looking for things like this and see how many 
are compatible with 5.4.



Rick



[vchkpw] 5.4.15 onchange patch

2006-03-26 Thread John Simpson

howdy-

i have written a few patches for qmail, one of which implements a  
RCPT TO check to verify whether or not the recipient address exists  
or not (like the chkuser patch, but which reads a cdb file and can  
therefore run on a machine which is not the same machine where  
vpopmail is running... and which doesn't require vpopmail in order to  
compile qmail.) this web page describes the patch:


http://qmail.jms1.net/patches/validrcptto.cdb.shtml

the biggest issue with implementing this functionality is determining  
when to rebuild the cdb file. the best thing i've been able to come  
up with so far is a cron job which builds a new list, and then if the  
list has changed since the last time the cron job was run, turns that  
list into the cdb file. this approach has two problems- (1) it's a  
lot more CPU-intensive than it needs to be, and (2) it introduces an  
artificial delay between the time a mailbox is created and the time  
it shows up in the validrcptto.cdb file.


the solution to this would be to have vpopmail trigger the updating  
of the cdb file whenever certain events happen- a domain, mailbox, or  
alias is added or deleted, for example.


since different people may want to do different things with this  
trigger functionality, i figured the best way to implement it would  
be to have vpopmail call a specific executable, which the  
administrator could set up as a shell script to do whatever they need  
done- rebuild a cdb file, replicate new data to external servers,  
whatever.


i have written a patch against vpopmail-5.4.15 which causes any  
changes to trigger ~vpopmail/etc/onchange, if it exists and if it  
is executable to the userid which is running the vpopmail program.  
the patch can be downloaded, and simple directions found, at the  
bottom of this page:


http://qmail.jms1.net/patches/

i am running this on my own server as we speak- it seems to work well  
so far, and i will be writing the scripting to have it build a new  
validrcptto.cdb over the next day or two.


my hope is that there is enough interest in this functionality that  
it can be integrated into a future verison of vpopmail.


--
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/   [EMAIL PROTECTED] |
--
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.  |
--




PGP.sig
Description: This is a digitally signed message part