Re: [vchkpw] vdelivermail stdout to Dovecot deliver

2009-03-31 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick Romero wrote:
 vdelivermail already has a 'run_command' function for running .qmail
 commands, I'm going to try using that next to call deliver.  That should
 solve the chained pipe issue.

I'll admit that I'm not very familiar with the issues involved in getting
vdelivermail to deliver to Dovecot directly, but I would like to see more
support for Dovecot in vpopmail.

As soon as there's some preliminary idea of how to get this part working,
or some sample code, please let me know so I can look over it.
- --
/*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknSJM4ACgkQ6QgvSNlBT3AMSQCfRgRJKWFkAZBWF5yVG8OIupF9
kqYAoITu0i1zvDJfstERjcU2HrviTZqm
=3ImN
-END PGP SIGNATURE-


Re: [vchkpw] Deleting primary domain; keeping alias domains

2009-03-31 Thread John Simpson

On 2009-03-18, at 1151, Charlie Garrison wrote:

On 18/03/09 at 9:31 AM -0500, Matt Brookings m...@inter7.com wrote:

Charlie Garrison wrote:
Is there a proper way to delete a domain which is currently  
configured

as the primary domain for an account? And I want one of the current
domain aliases to become the primary domain.
 I can't find any comprehensive documentation for vdeldomain.  
Maybe it

will do what I want; I don't have a test system to try it on though.


An alias is just that, an alias.  It is not an actual domain.  If  
you delete
the primary, the alias will not function because there is no  
primary domain

data for it to alias.


I guessed that, which is why I was asking how to delete the primary  
domain. I want one of the domain aliases to become the primary  
domain. Is there any way to do that short of completely recreating  
the setup for that domain/directory? The primary domain is no longer  
in use (has expired) and I would like to completely remove all  
references to it.


My thought was to 'mv' the domain directory to the name of the  
domain alias, and manually edit the qmail/users/assign file  
accordingly. But I don't know if there are other locations where the  
primary domain name is stored that would also need to be updated.  
(I'm ignoring rcpthosts, etc for now since they seem to be easy  
changes.)


i had a case like this a few years back. when the client started  
hosting, they used one domain name. they then added two others as  
aliases, and printed all of their business cards with one of the alias  
domains. a year later they decided to give up the original domain  
name, and wanted the alias on their business cards to become the  
primary.


from what i remember, the process looked like this:

- shut down qmail-send and all POP3/IMAP services

- delete the alias domain which is about to become primary (using  
vdeldomain)


- create the new primary as a physical domain (using vadddomain)

- use mv to move the contents of domains/olddomain.xyz into domains/ 
newdomain.xyz


*** edit the vpasswd file so the directory names accurately reflect  
their new names (i used sed for this.)


*** run vmkpasswd newdomain.xyz

- delete the old domain (using vdeldomain)

- start up qmail-send and the POP3/IMAP services

so it looks like the only non-trivial thing which hasn't been covered  
already is updating the vpasswd file and running vmkpasswd to  
rebuild the vpasswd.cdb file.



| John M. Simpson---   KG4ZOW   ---Programmer At Large |
| http://www.jms1.net/ j...@jms1.net |

| http://video.google.com/videoplay?docid=-1656880303867390173 |








PGP.sig
Description: This is a digitally signed message part
!DSPAM:49d22c7732681224718157!