
qmlist at news
Sep 12, 2009, 9:15 AM
Post #2 of 3
(1106 views)
Permalink
|
|
Re: a small bit of confusion over virtualdomains
[In reply to]
|
|
At 6:21 AM 9/12/09, Payal wrote: >Say in control/virtualdomains I have, >example.org:payal > >In user/assign I have, >+payal-:payal:1003:1003:/home/payal::test: > >If I send a mail to r [at] example, in what order "dot-qmail" files will >be consulted for delivery instructions? Let's assume that's a typo above and you really meant users/assign, and also assume you've executed qmail-newu to update users/cdb from users/assign. The virtualdomains file will change r [at] example to payal-r [at] example So now it's time to parse the users/assign entry, and it's easy to get burned here. Especially when you have something in the last field like you do. That situation is not one of the examples in the manpage, so without careful parsing, the solution isn't obvious. (It's happened to me). >+payal-:payal:1003:1003:/home/payal::test: From the manpage =local:user:uid:gid:homedir:dash:ext: Here local is an address; user, uid, and gid are the account name, uid, and gid of the user in charge of local; and messages to local will be controlled by homedir/.qmaildashext. A wildcard assignment is a line of the form +loc:user:uid:gid:homedir:dash:pre: This assignment applies to any address beginning with loc, including loc itself. It means the same as =locext:user:uid:gid:homedir:dash:preext: for every string ext. So, for payal-r [at] example loc=payal- ext=r homedir=/home/payal dash= <null> pre=test So for ext=r, your wildcard would be equivalent to =payal-r:payal:1003:1003:/home/payal::testr in the non-wildcard syntax, which parses to dash=<null> ext=testr So homedir/.qmaildashext becomes /home/payal/.qmailtestr Probably not quite what you were expecting. You probably want to put this in users/assign (and run qmail-newu): +payal-:payal:1003:1003:/home/payal:-:test-: I have lines like that in my users/assign file, and it took a while to figure out that's what I needed. Not quite obvious, but if you parse it, you'll see that it results in looking for /home/payal/.qmail-test-r (or /home/payal/.qmail-test-default). I'm guessing that's what you were trying to accomplish.
|