[vchkpw] Question about Dir Control (.dir-control)
First, is there a way to disable the Dir Control functionality of vpopmail? If not, is there any downside to just not using it? You may ask why I need to do this. We do our own hashing of directories and usernames here, using our own script systems. I like this because the paths that we are creating are predictable since we are determining them instead of dir control/vadduser. Brian -- Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
Re: [vchkpw] Question about Dir Control (.dir-control)
Ken, Thanks for answering. I did see that disable-users-big-dir option, so I configured with it. It seems to still do the following though: 1. create .dir-control in the domains directory. 2. complain when removing a domain that it can't delete the dir control. [EMAIL PROTECTED] bin]$ ./vadddomain test.com testcom [EMAIL PROTECTED] bin]$ ./vdeldomain test.com Warning: Failed to delete dir_control for test.com Even though /home/cust/vpopmail/domains/test.com is gone, there is a .dir-control file in /home/cust/vpopmail/domains. I manually deleted this file, but every time I add a new domain it creates this file again. Not sure why ./vdeldomain would be complaining when there wasnt a .dir-control in the first place associated with the domain I was deleting. Any ideas? Brian On Jun 30, 2004, at 5:27 PM, Ken Jones wrote: On Wednesday 30 June 2004 03:37 pm, Brian Feeny wrote: First, is there a way to disable the Dir Control functionality of vpopmail? Sure. Use this option --disable-users-big-dir If not, is there any downside to just not using it? Just the optimization for keeping the number of directories in a directory to a efficent level. You may ask why I need to do this. We do our own hashing of directories and usernames here, using our own script systems. I like this because the paths that we are creating are predictable since we are determining them instead of dir control/vadduser. Since you do your own hashing, no need to use vpopmail's. Cheers, Ken Jones Brian ------ Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
Re: [vchkpw] Question about Dir Control (.dir-control)
On Jun 30, 2004, at 6:18 PM, Tom Collins wrote: What version of vpopmail? I thought we took care of that error message ("Warning: Failed to delete dir_control for test.com") during the development cycle leading up to 5.4.0. It was due to the domain's directory getting deleted before the dir_control file (for user directories) inside of it. vpopmail-5.4.0.tar.gz Like Ken mentioned, its trying to delete .dir-control with out first checking if that feature is enabled or not. Perhaps someone could look into making a patch to add a --disable-domains-big-dir (or would that be enable?) to disable hashing when creating new domains. It shouldn't be too hard to ifdef out the code responsible for hashing. I think that feature would be a very welcome one. Brian -- 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/
[vchkpw] vpopmail and mailfilter
When you use vpopmail, does it still use an LDA like mailfilter to deliver the mail, or is that now handled by vpopmail up until the very end? I ask because I am migrating a bunch of users to vpopmail who now have .mailfilter files to sort mail etc, and want to know if vpopmail just does the final delivery lookup and hands off to an LDA or actually does the delivery itself? And if it does the delivery itself does it have any scripting mechinism like mailfilter does? Brian
Re: [vchkpw] vpopmail and mailfilter
Greg, Thanks for the information. Is it true though that if I have say /home/vpopmail/domains/test.com that I will have to make a .qmail-default in the test.com directory call the users .qmail's, or can I just simply put a .qmail in /home/vpopmail/domains/test.com/joe with: | /usr/local/bin/maildrop ./Maildir/mailfilter and have that work? My impression was that at the point we have entered the individual users directory, we are now in vdeliver and not qmail-local. I have seen scripts on the internet that show how to have a .qmail-default call maildir for each user, but it would be much more elegant if I can just have a .qmail in each users directory inside the virtual domain. brian On Jul 2, 2004, at 8:55 AM, Greg Kopp wrote: It CAN use maildrop (mailfilter), but doesn't out of the box. In the users home directory (or the directory where the Maildir is located), create a file called ".qmail" (that's DOT qmail) And put this inside of it: | /usr/local/bin/maildrop ./Maildir/mailfilter This will cause all mail for that user to be piped through the mailfilter. Keep in mind that any paths to maildirs, etc, in each mailfilter file will have to be modified. Greg On Thu, 1 Jul 2004 19:45:16 -0500, Brian Feeny <[EMAIL PROTECTED]> wrote: When you use vpopmail, does it still use an LDA like mailfilter to deliver the mail, or is that now handled by vpopmail up until the very end? I ask because I am migrating a bunch of users to vpopmail who now have .mailfilter files to sort mail etc, and want to know if vpopmail just does the final delivery lookup and hands off to an LDA or actually does the delivery itself? And if it does the delivery itself does it have any scripting mechinism like mailfilter does? Brian ------ Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
[vchkpw] Migrating from crypt /etc/shadow to md5 vpasswd
I am moving customers over from a non-vpopmail setup authenticating off /etc/shadow with crypt passwords, to a vpopmail setup (same box) which uses md5. Is there any way to do this easier than: 1. getting the cleartext passwords and re-encrypting into md5 2. or turning on a password learning mode of the pop/imap server Alternately is there anyway to tell vpopmail to use crypt instead of md5 "on a per domain basis". I realize I can build vpopmail to disable md5 support (in favor of crypt), but was wondering if this is possible on a per domain basis. Brian ------ Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
[vchkpw] vpopmail md5/crypt behavior
I have my vpopmail configured as default so that it uses md5 passwords. It seems to authenticate correctly whether I have the password in md5 or crypt format. Is this correct behavior? It seems it will take either format and work correctly. Brian -- Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
Re: [vchkpw] Migrating from crypt /etc/shadow to md5 vpasswd
Thanks Charles, These days instead of battling usr-tc's i am battling mail server stuff, but things are going smooth with vpopmail so far, this list is a great help. Brian On Jul 8, 2004, at 5:35 PM, Charles Sprickman wrote: On Thu, 8 Jul 2004, Brian Feeny wrote: I am moving customers over from a non-vpopmail setup authenticating off /etc/shadow with crypt passwords, to a vpopmail setup (same box) which uses md5. Brian, I haven't seen you since the usr-tch days... This should "just work"; vpopmail uses the system crypt library, so if you bring your existing passwords in, they should work. As people change their passwords on the new setup, they should end up as md5 (unless your crypt library is configured to do otherwise, not sure how that's handled on linux). Charles Is there any way to do this easier than: 1. getting the cleartext passwords and re-encrypting into md5 2. or turning on a password learning mode of the pop/imap server Alternately is there anyway to tell vpopmail to use crypt instead of md5 "on a per domain basis". I realize I can build vpopmail to disable md5 support (in favor of crypt), but was wondering if this is possible on a per domain basis. Brian ------ Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED] Network Engineerp: 318.213.4709 ShreveNet Inc. f: 318.221.6612
[vchkpw] external hooks for qmailadmin?
Is it possible so that when someone creates an account in qmailadmin, I can have an external program fired off to do some task? Brian - Brian Feeny, CCIE #8036, CISSP Network Engineer ShreveNet Inc. PGP.sig Description: This is a digitally signed message part
[vchkpw] Moving setup to dir_control style directories........is it possible?
I have about 800 domains, 15000 users total, and I was originally using my own tools/scripts to add and remove users. We did this so we could have a deterministic setup to where the users and domain directories were. We used simple 2 level alpha hashing on the domain and usernames. So for domain names we stored them like this: /home/cust/vpopmail/domains/f/o/foobar.com /home/cust/vpopmail/domains/j/e/jediknight.com /home/cust/vpopmail/domains/t/e/test.com and then within the domains we 2 level hashed the usernames like this: /home/cust/vpopmail/domains/f/o/foobar.com/p/o/postmaster /home/cust/vpopmail/domains/f/o/foobar.com/s/o/someuser /home/cust/vpopmail/domains/f/o/foobar.com/n/o/nobody Now I am wanting to move to tools such as qmailadmin and convert everything to the way it probably should have been from the beginning, using the dir_control method. Does anyone know of a way to move my stuff over? I did see a vreorg.c program in contrib that looks like it is suppose to move users over to this setup, but its missing "safestring.h" so it will not compile. Also I know of no tool that will do the same for domains. If the vpopmail utils, qmailadmin, etc supported the 2 level hashing I use, I would just stay with it, but I know of no way to tell it to use basic 2 level hashing. Also I know that --disable-users-big-dir controls turning on and off user level hashing. What is the flag that turns on and off domain level hashing? I appreciate any help you can give me. Brian ---- ------ Brian Feeny, CCIE #8036, CISSP e: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 PGP.sig Description: This is a digitally signed message part
[vchkpw] .dir-control - Please tell me this about it
Does the hashing that is used by .dir-control depend at all on the actual domain name? For example, if it came up with a hashed directory structure in which to put "foobar.com", would it matter if I went in to /var/qmail/users/assign, and changed the name of the domain to "somethingelse.com", and then of course changed the directory name from foobar.com to somethingelse.com. Would this be a problem? My problem is I am trying to migrate a bunch of domains (600+) from my own hash style, into vpopmails native .dir-control hash style. So my plan goes something like this: I create a dummy domain test.com I create all the accounts under test.com just like the domain I am trying to move over I then move all the Maildirs into test.com and then change the name from test.com to the domain I was moving I am thinking this should work, but not sure if .dir-control cares what the name is of the domain, or if the hash has nothing to do with the structure of the domain name. Brian ---- -- Brian Feeny, CCIE #8036, CISSP e: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 PGP.sig Description: This is a digitally signed message part
Re: [vchkpw] .dir-control - Please tell me this about it
On Sep 23, 2004, at 10:18 AM, Dave Goodrich wrote: Brian Feeny wrote: Does the hashing that is used by .dir-control depend at all on the actual domain name? For example, if it came up with a hashed directory structure in which to put "foobar.com", would it matter if I went in to /var/qmail/users/assign, and changed the name of the domain to "somethingelse.com", and then of course changed the directory name from foobar.com to somethingelse.com. Would this be a problem? My problem is I am trying to migrate a bunch of domains (600+) from my own hash style, into vpopmails native .dir-control hash style. So my plan goes something like this: I create a dummy domain test.com I create all the accounts under test.com just like the domain I am trying to move over I then move all the Maildirs into test.com and then change the name from test.com to the domain I was moving I am thinking this should work, but not sure if .dir-control cares what the name is of the domain, or if the hash has nothing to do with the structure of the domain name. If you use MySQL it will matter as the dir hash info is stored under the domain name. If you do not use MySQL, I would think that you would be ok. The new .dir-control will be correct for the number of users/hashing. The .dir-control file does not have any domain information inside. vpopmail cares not one wit about the name of the domain it is hashing. .dir control doesn't just hash users though right? Doesn't dir-control begin to hash domains too once you hit a certain number? That is all the same mechinism right, .dir-control, that does both the domain hashing and then username hashing? Brian DAve Brian ------ -- -- Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 -- Systems Administrator http://www.tls.net Get rid of Unwanted Emails...get TLS Spam Blocker! -------- -- Brian Feeny, CCIE #8036, CISSP e: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 PGP.sig Description: This is a digitally signed message part
Re: [vchkpw] .dir-control - Please tell me this about it
I under stand that, but I guess what I am asking is, the hashing algorithm that vpopmail uses, to decide how to name its directories, is it linked to the name of the username/name of the domain, to the extent that if I change the domain name (or username) but keep the hashing the same, is that going to make bad things happen? Brian On Sep 23, 2004, at 10:57 AM, Dave Goodrich wrote: Brian Feeny wrote: On Sep 23, 2004, at 10:18 AM, Dave Goodrich wrote: Brian Feeny wrote: Does the hashing that is used by .dir-control depend at all on the actual domain name? For example, if it came up with a hashed directory structure in which to put "foobar.com", would it matter if I went in to /var/qmail/users/assign, and changed the name of the domain to "somethingelse.com", and then of course changed the directory name from foobar.com to somethingelse.com. Would this be a problem? My problem is I am trying to migrate a bunch of domains (600+) from my own hash style, into vpopmails native .dir-control hash style. So my plan goes something like this: I create a dummy domain test.com I create all the accounts under test.com just like the domain I am trying to move over I then move all the Maildirs into test.com and then change the name from test.com to the domain I was moving I am thinking this should work, but not sure if .dir-control cares what the name is of the domain, or if the hash has nothing to do with the structure of the domain name. If you use MySQL it will matter as the dir hash info is stored under the domain name. If you do not use MySQL, I would think that you would be ok. The new .dir-control will be correct for the number of users/hashing. The .dir-control file does not have any domain information inside. vpopmail cares not one wit about the name of the domain it is hashing. .dir control doesn't just hash users though right? Doesn't dir-control begin to hash domains too once you hit a certain number? That is all the same mechinism right, .dir-control, that does both the domain hashing and then username hashing? Correct, but the .dir-control file still doesn't keep track of which domain is hashed where, only how many hash dir are created, how deep they are, and what dir is currently in use. It doesn't seem to matter hashing users or domains. It seems to me it works exactly the same what and stores exactly the same information. Think of the .dir-control file more as a tally of what hash dirs have been created, and which one is currently is use. It doesn't seem to do much more. DAve Brian DAve Brian -------- -- -- -- Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 -- Systems Administrator http://www.tls.net Get rid of Unwanted Emails...get TLS Spam Blocker! ------ -- -- Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 -- Systems Administrator http://www.tls.net Get rid of Unwanted Emails...get TLS Spam Blocker! ---- -- Brian Feeny, CCIE #8036, CISSP e: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 PGP.sig Description: This is a digitally signed message part
[vchkpw] hashing of domain directories
Doesnt vpopmail by default start putting domains into a hashed structure after 100 or so domains? My usernames are hashing, but my domains under /home/cust/vpopmail/domains are all being put into that directory, vadddomain is not branching out into other dirs. Any idea what that could be? Brian -- Brian Feeny, CCIE #8036, CISSP e: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 PGP.sig Description: This is a digitally signed message part
[vchkpw] .dir-control format
Can someone post the .dir-control format (the format of the file, and what each value represents)? also if you have a hosed .dir-control structure, how can you rebuild it, so that the .dir-control files are correct? if a .dir-control got deleted, how would that be fixed? Brian -- Brian Feeny, CCIE #8036, CISSP e: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 PGP.sig Description: This is a digitally signed message part
Re: [vchkpw] .dir-control format
Dave, First thanks alot for posting that link, I appreciate it. I am not in fact using Mysql, perhaps you confused me with someone else. I do plane on moving to a mysql setup, but I need to do so with as little downtime as possible. It seems like there are many different steps, like putting .dir-control in mysql, then putting the vpasswd's in mysql...isn't there something else that is usually put in mysql, like maildir quota files? Brian On Sep 24, 2004, at 3:44 PM, Dave Goodrich wrote: Brian Feeny wrote: Can someone post the .dir-control format (the format of the file, and what each value represents)? This is a close as I have gotten, though I have not updated any further, it seems to be working fine. http://www.mail-archive.com/[EMAIL PROTECTED]/msg19052.html You might want to read all the thread for context. Once I get some other work done I intend to get back to it and write up all I have discovered. also if you have a hosed .dir-control structure, how can you rebuild it, so that the .dir-control files are correct? If you use sql, your dir-control is in there, not in files. I have a perl script that will repair your sql table, for those domains that have an accurate .dir-control file. I did as I converted my domains into MySQL. if a .dir-control got deleted, how would that be fixed? In your earlier post you said you used MySQL, if so you do not need a .dir control file, and vpopmail will not create one. All dir-control info will be in a sql table "dir_control". DAve Brian ------ -- -- Brian Feeny, CCIE #8036, CISSPe: [EMAIL PROTECTED] Network Engineer p: 318.213.4709 ShreveNet Inc. f: 318.221.6612 -- Systems Administrator http://www.tls.net Get rid of Unwanted Emails...get TLS Spam Blocker! PGP.sig Description: This is a digitally signed message part
[vchkpw] How are you all using maildrop with qmailadmin etc?
We use maildrop so that we can do some fancy mail routing for our customers. For all of our domains we put a .qmail-default file that references a .mailfilter file. I know alot of you seem to use maildrop, but if you do, how do you have it play nice with qmailadmin? qmailadmin wants to clobber .qmail-default file when the domain admin changes catchall values for example. I wanted it so that if they selected "normal" (rather than catchall bounce or catchall delete, or catchall forward), then it puts my .qmail-default in place. How is this accomplished? Brian ----- Brian Feeny, CCIE #8036, CISSP Network Engineer ShreveNet Inc. PGP.sig Description: This is a digitally signed message part
[vchkpw] Do "hooks" exist for vpopmail or its lib?
Does vpopmail have any hooks available so that when someone adds a domain or removes a domain, I can fire off an external script? qmailadmin had some hooks and they are nice, but I need to take some actions whenever a domain is added. I am going to have techs adding domains via vqadmin. Since I didn't know of any hooks, I have cron just looking in each domains directory (every 15 min) and if it doesn't see the files I want to be there, then it adds them. But I would rather have a mechinism that worked more like a trigger/hook. Brian ----- Brian Feeny, CCIE #8036, CISSP Network Engineer ShreveNet Inc. PGP.sig Description: This is a digitally signed message part