By local users I assume you are talking about users in /etc/passwd.

For pop authentication, vchkpw will authenticate against /etc/passwd

For email delivery, vpopmail is not involved. qmail will look up
the user in /etc/passwd

Ken Jones

[EMAIL PROTECTED] wrote:
> 
> Anyone here help me?
> 
> How does qmail+vpopmail looks for localusers?
> 
> --------------------------------------------------------------------
> Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
> GCSNet                                    http://www.gcsnet.com.br/
> --------------------------------------------------------------------
>                      Se você não encontra
>                      o sentido das coisas
>                      é porque este não
>                      se encontra, se cria.
>                                    Antoine Saint-Exupéry
> 
>   ------------------------------------------------------------------------
> 
> Subject: Re: qmail-lspawn looks for local user?
> Date: Fri, 01 Sep 2000 15:28:51 -0300
> From: Daniel Augusto Fernandes <[EMAIL PROTECTED]>
> Organization: GCSNet
> To: [EMAIL PROTECTED]
> References: <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> 
> I don't know if it will help but I'm sending my strace -f on qmail-send
> and qmail-lspawn!
> 
> --------------------------------------------------------------------
> Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
> GCSNet                                    http://www.gcsnet.com.br/
> --------------------------------------------------------------------
>                      Se você não encontra
>                      o sentido das coisas
>                      é porque este não
>                      se encontra, se cria.
>                                    Antoine Saint-Exupéry
> 
> Daniel Augusto Fernandes wrote:
> >
> > Daniel Augusto Fernandes wrote:
> > >
> > > Dave Sill wrote:
> > > >
> > > > [EMAIL PROTECTED] wrote:
> > > >
> > > > >And if the if it's a virtual domain account? It could not be able to set
> > > > >to the user ID, does it look if the  recipient mail user actually
> > > > >exists?
> > > >
> > > > Again, the PIC's answer this question. Specifically
> > > > /var/qmail/doc/PIC.local2virt. And, again, yes, qmail-lspawn verifies
> > > > the virtual domain account.
> > > >
> > >
> > > Ok... Sorry that!
> > > It's just because I'm not at my office right now!
> > >
> > > As soon as I get there I'll look at the PIC's...
> > >
> >
> > I've looked the PIC.local2virt.
> > Question: When a virtual domain is assigned to an user like that:
> > +epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::
> >
> > What happens?
> >
> > Does it setuid and chdir to that user home, look for .qmail-user?
> > What if it finds .qmail-default (as in my case)?
> >
> > I have the folowing .qmail:
> > | preline maildrop -d "$EXT@$HOST"
> >
> > How could qmail-lspawn know where I have my virtual users info? Like
> > /home/vpopmail/domains/*/vpasswd.
> >
> > I'm a little lost yet...
> > :o(
> 
>   ------------------------------------------------------------------------
> open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
> open("todo", O_RDONLY)                  = 9
> open("todo/731459", O_RDONLY|O_NONBLOCK) = 10
> open("info/13/731459", O_WRONLY|O_CREAT|O_EXCL, 0644) = 11
> open("local/13/731459", O_WRONLY|O_CREAT|O_EXCL, 0644) = 12
> open("local/13/731459", O_RDONLY|O_NONBLOCK) = 10
> open("info/13/731459", O_RDONLY|O_NONBLOCK) = 11
> open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
> open("todo", O_RDONLY)                  = 9
> [pid  4897] chdir("/var/qmail")         = 0
> [pid  4897] chdir("/home/vpopmail/domains/epostal.com.br") = 0
> [pid  4897] execve("bin/qmail-local", ["bin/qmail-local", "--", "epostal.com.br", 
>"/home/vpopmail/domains/epostal.c"..., "epostal.com.br-ksjfd", "-", "ksjfd", 
>"epostal.com.br", "[EMAIL PROTECTED]", "| preline maildrop -d \"$EXT@$HO"...], [/* 
>1 var */]) = 0
> [pid  4898] execve("/bin/sh", ["/bin/sh", "-c", " maildrop -d \"$EXT@$HOST\""], [/* 
>19 vars */]) = 0
> open("13/731459", O_RDONLY|O_NONBLOCK)  = 2
> [pid  4897] open("users/cdb", O_RDONLY|O_NONBLOCK) = 5
> [pid  4897] open("/etc/ld.so.cache", O_RDONLY) = 3
> [pid  4897] open("/lib/libc.so.5", O_RDONLY) = 3
> [pid  4897] open(".qmail-ksjfd", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or 
>directory)
> [pid  4897] open(".qmail-default", O_RDONLY|O_NONBLOCK) = 3
> [pid  4898] open("/etc/ld.so.cache", O_RDONLY) = 3
> [pid  4898] open("/lib/libtermcap.so.2", O_RDONLY) = 3
> [pid  4898] open("/lib/libc.so.5", O_RDONLY) = 3
> [pid  4898] open("/etc/passwd", O_RDONLY) = 3
> [pid  4898] open("..", O_RDONLY)        = 3
> [pid  4898] open("../..", O_RDONLY)     = 3
> [pid  4898] open("../../..", O_RDONLY)  = 3
> [pid  4898] open("../../../..", O_RDONLY) = 3
> [pid  4898] open("/etc/ld.so.cache", O_RDONLY) = 3
> [pid  4898] open("/lib/libgdbm.so.1", O_RDONLY) = 3
> [pid  4898] open("/usr/lib/libstdc++.so.27", O_RDONLY) = 3
> [pid  4898] open("/lib/libm.so.5", O_RDONLY) = 3
> [pid  4898] open("/lib/libc.so.5", O_RDONLY) = 3
> [pid  4898] open("/etc/userdb.dat", O_RDONLY) = 3
> [pid  4898] open("/etc/passwd", O_RDONLY) = 4
> [pid  4898] open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 5
> [pid  4898] execve("/usr/local/bin/maildrop", ["maildrop", "-d", 
>"[EMAIL PROTECTED]"], [/* 25 vars */]) = 0
> 
> open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
> open("todo", O_RDONLY)                  = 9
> open("todo/731461", O_RDONLY|O_NONBLOCK) = 10
> open("info/15/731461", O_WRONLY|O_CREAT|O_EXCL, 0644) = 11
> open("local/15/731461", O_WRONLY|O_CREAT|O_EXCL, 0644) = 12
> open("local/15/731461", O_RDONLY|O_NONBLOCK) = 10
> open("info/15/731461", O_RDONLY|O_NONBLOCK) = 11
> open("lock/trigger", O_RDONLY|O_NONBLOCK) = 8
> open("todo", O_RDONLY)                  = 9
> [pid  4902] chdir("/var/qmail")         = 0
> [pid  4902] chdir("/home/vpopmail/domains/epostal.com.br") = 0
> [pid  4902] execve("bin/qmail-local", ["bin/qmail-local", "--", "epostal.com.br", 
>"/home/vpopmail/domains/epostal.c"..., "epostal.com.br-daftm", "-", "daftm", 
>"epostal.com.br", "[EMAIL PROTECTED]", "| preline maildrop -d \"$EXT@$HO"...], [/* 
>1 var */]) = 0
> [pid  4903] execve("/bin/sh", ["/bin/sh", "-c", " maildrop -d \"$EXT@$HOST\""], [/* 
>19 vars */]) = 0
> open("15/731461", O_RDONLY|O_NONBLOCK)  = 2
> [pid  4902] open("users/cdb", O_RDONLY|O_NONBLOCK) = 5
> [pid  4902] open("/etc/ld.so.cache", O_RDONLY) = 3
> [pid  4902] open("/lib/libc.so.5", O_RDONLY) = 3
> [pid  4902] open(".qmail-daftm", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or 
>directory)
> [pid  4902] open(".qmail-default", O_RDONLY|O_NONBLOCK) = 3
> [pid  4903] open("/etc/ld.so.cache", O_RDONLY) = 3
> [pid  4903] open("/lib/libtermcap.so.2", O_RDONLY) = 3
> [pid  4903] open("/lib/libc.so.5", O_RDONLY) = 3
> [pid  4903] open("/etc/passwd", O_RDONLY) = 3
> [pid  4903] open("..", O_RDONLY)        = 3
> [pid  4903] open("../..", O_RDONLY)     = 3
> [pid  4903] open("../../..", O_RDONLY)  = 3
> [pid  4903] open("../../../..", O_RDONLY) = 3
> [pid  4903] open("/etc/ld.so.cache", O_RDONLY) = 3
> [pid  4903] open("/lib/libgdbm.so.1", O_RDONLY) = 3
> [pid  4903] open("/usr/lib/libstdc++.so.27", O_RDONLY) = 3
> [pid  4903] open("/lib/libm.so.5", O_RDONLY) = 3
> [pid  4903] open("/lib/libc.so.5", O_RDONLY) = 3
> [pid  4903] open("/etc/userdb.dat", O_RDONLY) = 3
> open("local/15/731461", O_WRONLY|O_NONBLOCK) = 9
> open("info/15/731461", O_RDONLY|O_NONBLOCK) = 9
> [pid  4903] open("/etc/maildroprc", O_RDONLY) = 3
> [pid  4903] open(".mailfilter", O_RDONLY) = 3
> [pid  4903] open("./Maildir/./tmp/967830798.4903_0.catope,S=1264", 
>O_WRONLY|O_NONBLOCK|O_CREAT|O_EXCL, 0600) = 3
> [pid  4903] chdir("/home/vpopmail/domains/epostal.com.br/G/daftm") = 0
> [pid  4903] execve("/usr/local/bin/maildrop", ["maildrop", "-d", 
>"[EMAIL PROTECTED]"], [/* 25m vars */]) = 0
> 
>   ------------------------------------------------------------------------
> 
> Subject: Re: qmail-lspawn looks for local user?
> Date: Fri, 1 Sep 2000 14:53:55 -0400 (EDT)
> From: Dave Sill <[EMAIL PROTECTED]>
> Organization: Oak Ridge National Lab, Oak Ridge, Tenn., USA
> To: [EMAIL PROTECTED]
> References: <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
> 
> Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:
> 
> >I've looked the PIC.local2virt.
> >Question: When a virtual domain is assigned to an user like that:
> >+epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::
> >
> >What happens?
> 
> Well, unfortunately none of the PIC's cover the case of a successful
> lookup in qmail-users. Luckily, "Life with qmail" answers this
> question. See http://Web.InfoAve.Net/~dsill/lwq.html#qmail-users for
> complete details.
> 
> >Does it setuid and chdir to that user home, look for .qmail-user?
> >What if it finds .qmail-default (as in my case)?
> 
> qmail-lspawn runs qmail-local with the specified UID and GID. If the
> message was sent to [EMAIL PROTECTED], it'd be delivered according
> to instructions in /home/vpopmail/domains/epostal.com.br/.qmail-info.
> 
> >I have the folowing .qmail:
> >| preline maildrop -d "$EXT@$HOST"
> >
> >How could qmail-lspawn know where I have my virtual users info? Like
> >/home/vpopmail/domains/*/vpasswd.
> 
> I don't know exactly what you mean, and I don't use vpopmail, but if
> there's a matching entry in users/assign, that specifies all the
> details qmail-lspawn needs.
> 
> -Dave
> 
>   ------------------------------------------------------------------------
> 
> Subject: Re: qmail-lspawn looks for local user?
> Date: Fri, 01 Sep 2000 16:48:17 -0300
> From: Daniel Augusto Fernandes <[EMAIL PROTECTED]>
> Organization: GCSNet
> To: [EMAIL PROTECTED]
> References: <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> 
> Dave Sill wrote:
> >
> > Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:
> >
> > >I've looked the PIC.local2virt.
> > >Question: When a virtual domain is assigned to an user like that:
> > >+epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::
> > >
> > >What happens?
> >
> > Well, unfortunately none of the PIC's cover the case of a successful
> > lookup in qmail-users. Luckily, "Life with qmail" answers this
> > question. See http://Web.InfoAve.Net/~dsill/lwq.html#qmail-users for
> > complete details.
> 
> I'll study it.
> 
> >
> > >Does it setuid and chdir to that user home, look for .qmail-user?
> > >What if it finds .qmail-default (as in my case)?
> >
> > qmail-lspawn runs qmail-local with the specified UID and GID. If the
> > message was sent to [EMAIL PROTECTED], it'd be delivered according
> > to instructions in /home/vpopmail/domains/epostal.com.br/.qmail-info.
> >
> > >I have the folowing .qmail:
> > >| preline maildrop -d "$EXT@$HOST"
> > >
> 
> I said it badly here. That is the '.qmail-default' for that virtual
> domain.
> 
> > >How could qmail-lspawn know where I have my virtual users info? Like
> > >/home/vpopmail/domains/*/vpasswd.
> >
> 
> This was another question.
> 
> > I don't know exactly what you mean, and I don't use vpopmail, but if
> > there's a matching entry in users/assign, that specifies all the
> > details qmail-lspawn needs.
> 
> With this users/assign line:
> +epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::
> 
> What will it do next after not finding '.qmail-<user>' in
> '/home/vpopmail/domains/epostal.com.br'?
> 
> --------------------------------------------------------------------
> Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
> GCSNet                                    http://www.gcsnet.com.br/
> --------------------------------------------------------------------
>                      Se você não encontra
>                      o sentido das coisas
>                      é porque este não
>                      se encontra, se cria.
>                                    Antoine Saint-Exupéry
> 
>   ------------------------------------------------------------------------
> 
> Subject: Re: qmail-lspawn looks for local user?
> Date: Fri, 1 Sep 2000 16:02:42 -0400 (EDT)
> From: Dave Sill <[EMAIL PROTECTED]>
> Organization: Oak Ridge National Lab, Oak Ridge, Tenn., USA
> To: [EMAIL PROTECTED]
> References: <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
>      <[EMAIL PROTECTED]>
> 
> Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:
> 
> >With this users/assign line:
> >+epostal.com.br-:epostal.com.br:3367:503:/home/vpopmail/domains/epostal.com.br:-::
> >
> >What will it do next after not finding '.qmail-<user>' in
> >'/home/vpopmail/domains/epostal.com.br'?
> 
> Look for .qmail-default and bounce with "no such mailbox" if it
> doesn't find it.
> 
> -Dave

Reply via email to