[vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker
Hi guys,
Another thrilling question;
Has anyone already set up vsftpd using virtual users + multiple domains? 
I've read the virtual users hints, but they only mention one fixed 
directory for the virtual ftp users, whilst I need every virtual user 
have its home directory pointing to his own domain. This home directory 
is not /home/username, but /server/www/domainname. Is this doable? Note 
that I am an absolute noob on scripting or programming, so saying 'write 
a script doing this or that' wont help me a bit. Maybe there are docs 
available that I can me directed to?
Oh, before I forget, I use vpopmail 5.4.3 + courier-iman (latest) + 
qnetmail-1.05 + squirrelmail 1.4.2, and I dont use PAM (do I need to?)
-Patrick


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread alucard
 Another thrilling question;
 Has anyone already set up vsftpd using virtual users + multiple domains?
 I've read the virtual users hints, but they only mention one fixed
 directory for the virtual ftp users, whilst I need every virtual user
 have its home directory pointing to his own domain. This home directory
 is not /home/username, but /server/www/domainname. Is this doable? Note

Well, I have never used vsftpd but it stills being a simple FTPd. There's
no need from my point of view of any vhost handling on FTPd's because you
can simply have a user four each domain, i.e:

user1
-
domain: squirrelmail.org
user: sqrmail
pass: mydumbpass
home: /server/www/squirrelmail.org

user2
-
domaim: thecure.com
user: rsmith
pass: disintegration
home: /anypath/youdlike/as/long/as/it/has/user/permissions

Since all the domains will be accessing the same IP's, having the user go
to squirrelmail.org or thecure.com -asuming these are your virtual
domains, of course are not but, I'm just using them as an example- will be
transparent and the system will separate -is this a real word? heheh- them
from each other perfectly

Juan



Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker




[EMAIL PROTECTED] wrote:

  
Another thrilling question;
Has anyone already set up vsftpd using virtual users + multiple domains?
I've read the virtual users hints, but they only mention one fixed
directory for the virtual ftp users, whilst I need every virtual user
have its home directory pointing to his own domain. This home directory
is not /home/username, but /server/www/domainname. Is this doable? Note

  
  
Well, I have never used vsftpd but it stills being a simple FTPd. There's
no need from my point of view of any vhost handling on FTPd's because you
can simply have a user four each domain, i.e:

user1
-
domain: squirrelmail.org
user: sqrmail
pass: mydumbpass
home: /server/www/squirrelmail.org

user2
-
domaim: thecure.com
user: rsmith
pass: disintegration
home: /anypath/youdlike/as/long/as/it/has/user/permissions

Since all the domains will be accessing the same IP's, having the user go
to squirrelmail.org or thecure.com -asuming these are your virtual
domains, of course are not but, I'm just using them as an example- will be
transparent and the system will separate -is this a real word? heheh- them
from each other perfectly

Juan



  

This will work, ofcourse, but that would make vpopmail obsolete. I just
might as well make system users then. I want the virtual users to
chroot to their domain directory automagically. And what about people
who manage their own domain and decide to add a virtual user through
qmailadmin for administrative (ftp) purposes? 




Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread alucard
 This will work, ofcourse, but that would make vpopmail obsolete. I just
 might as well make system users then. I want the virtual users to chroot
 to their domain directory automagically. And what about people who
 manage their own domain and decide to add a virtual user through
 qmailadmin for administrative (ftp) purposes?


One magical word... LDAP :D

Juan


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread alucard
 This will work, ofcourse, but that would make vpopmail obsolete. I just
 might as well make system users then. I want the virtual users to chroot
 to their domain directory automagically. And what about people who
 manage their own domain and decide to add a virtual user through
 qmailadmin for administrative (ftp) purposes?

BTW, why would that make vpopmail obsolete? I dont understand. vpopmail
handles the mail ant the system itself handles the users...

Juan


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker




[EMAIL PROTECTED] wrote:

  
This will work, ofcourse, but that would make vpopmail obsolete. I just
might as well make system users then. I want the virtual users to chroot
to their domain directory automagically. And what about people who
manage their own domain and decide to add a virtual user through
qmailadmin for administrative (ftp) purposes?


  
  BTW, why would that make vpopmail obsolete? I dont understand. vpopmail
handles the mail ant the system itself handles the users...

Juan


  

Because I want to use the same virtual users handled by vpopmail for
ftp usage. I dont want to manually create ftp accounts for users who
already exsist virtually. I know that vpopmail is for mail purposes,
but I should be able to access the vpopmail user database from within
vsftpd? They mention PAM as authentication, but I am totally clueless
on that...




Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread JB
Because I want to use the same virtual users handled by vpopmail for ftp 
usage. I dont want to manually create ftp accounts for users who already 
exsist virtually. I know that vpopmail is for mail purposes, but I 
should be able to access the vpopmail user database from within vsftpd? 
They mention PAM as authentication, but I am totally clueless on that...
RTFM,
There is an example of virtual users setup in the EXAMPLE directory.
You might take a look at purftpd also.



Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker
JB wrote:
Because I want to use the same virtual users handled by vpopmail for 
ftp usage. I dont want to manually create ftp accounts for users who 
already exsist virtually. I know that vpopmail is for mail purposes, 
but I should be able to access the vpopmail user database from within 
vsftpd? They mention PAM as authentication, but I am totally clueless 
on that...

RTFM,
There is an example of virtual users setup in the EXAMPLE directory.
You might take a look at purftpd also.


You might want to concider reading the full thread before advising me 
doing something I already DID!
The example you are pointing to uses one fixed dir, while I want virtual 
users have their home dir pointed to their virtual domain home dir. Also 
I dont want to create system accounts for every virtual user


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread JB
You might want to concider reading the full thread before advising me 
doing something I already DID!
The example you are pointing to uses one fixed dir, while I want virtual 
users have their home dir pointed to their virtual domain home dir. Also 
I dont want to create system accounts for every virtual user
Then maybe you should go back and read it again or go ask on the vsftp list.



Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker
JB wrote:
You might want to concider reading the full thread before advising me 
doing something I already DID!
The example you are pointing to uses one fixed dir, while I want 
virtual users have their home dir pointed to their virtual domain 
home dir. Also I dont want to create system accounts for every 
virtual user

Then maybe you should go back and read it again or go ask on the vsftp 
list.



Or maybe you could explain it to me because I am currently googling on 
the subject and there is a whole shitload of people asking the same 
question, but nobody seems to have the solution


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread JB
Or maybe you could explain it to me because I am currently googling on 
the subject and there is a whole shitload of people asking the same 
question, but nobody seems to have the solution
I would setup pam to use the same ldap or mysql database as vpopmail. 
Unless you have the time and inclination to explore the subject and 
do-it-yourself, You might find it easier to use purftpd from 
http://purftpd.org/.





Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker
JB wrote:
Or maybe you could explain it to me because I am currently googling 
on the subject and there is a whole shitload of people asking the 
same question, but nobody seems to have the solution

I would setup pam to use the same ldap or mysql database as vpopmail. 
Unless you have the time and inclination to explore the subject and 
do-it-yourself, You might find it easier to use purftpd from 
http://purftpd.org/.


Thanks, I'll go for Pam. Could come in handy for future alterations as 
well I guess


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker
JB wrote:
Or maybe you could explain it to me because I am currently googling 
on the subject and there is a whole shitload of people asking the 
same question, but nobody seems to have the solution

I would setup pam to use the same ldap or mysql database as vpopmail. 
Unless you have the time and inclination to explore the subject and 
do-it-yourself, You might find it easier to use purftpd from 
http://purftpd.org/.


Can you clue me in on what pam auth I should use? there is a whole bunch 
of libs in /libs/security; dont know which one uses vpopmail


Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Jeremy Kitchen
On Wednesday 02 June 2004 07:46 am, JB wrote:
  Or maybe you could explain it to me because I am currently googling on
  the subject and there is a whole shitload of people asking the same
  question, but nobody seems to have the solution

I don't really understand how any of this really has anything to do with 
vpopmail... sounds like you're needing help configuring your ftp server, 
which, last I knew, was not what this list was for... but I could be wrong ;)

 I would setup pam to use the same ldap or mysql database as vpopmail.
 Unless you have the time and inclination to explore the subject and
 do-it-yourself, You might find it easier to use purftpd from
 http://purftpd.org/.

I assume you mean pure-ftpd from http://pureftpd.org  yes, it has vpopmail 
support.  It's also muy sexy.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker




Jeremy Kitchen wrote:

  On Wednesday 02 June 2004 07:46 am, JB wrote:
  
  

  Or maybe you could explain it to me because I am currently googling on
the subject and there is a whole shitload of people asking the same
question, but nobody seems to have the solution
  

  
  
I don't really understand how any of this really has anything to do with 
vpopmail... sounds like you're needing help configuring your ftp server, 
which, last I knew, was not what this list was for... but I could be wrong ;)
  
  
  

You are partly right; it is about vsftpd. On the other hand, I'd like
to use vpopmail's vchkpwd module as authenticator so I can use the
virtual users from qmail, who, in fact, will be the ftp users. So
basically I'd like to know how to (ab)use vpopmail pam auth in vsftpd.
Supposedly vsftpd supports pam authentication, so according to my
limited intelect it should be possible to use vchkpw...right?
I dont know anything (yet) about pam, so forgive my ignorance if this
is a trivial question :P

-Patrick




Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Jeremy Kitchen
On Wednesday 02 June 2004 11:37 am, Patrick Donker wrote:

 I don't really understand how any of this really has anything to do with
 vpopmail... sounds like you're needing help configuring your ftp server,
 which, last I knew, was not what this list was for... but I could be wrong
  ;)

 You are partly right; it is about vsftpd. On the other hand, I'd like to
 use vpopmail's vchkpwd module as authenticator so I can use the virtual
 users from qmail, who, in fact, will be the ftp users. So basically I'd
 like to know how to (ab)use vpopmail pam auth in vsftpd. Supposedly
 vsftpd supports pam authentication, so according to my limited intelect
 it should be possible to use vchkpw...right?
 I dont know anything (yet) about pam, so forgive my ignorance if this is
 a trivial question :P

pam as in .. unix pam.. it's true that vpopmail is, by definition a pam as 
in a pluggable authentication module, however I don't believe it can 
interface with the UNIX pam services.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 847.492.0470 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail



Re: [vchkpw] vpopmail + vsftpd + multiple domains

2004-06-02 Thread Patrick Donker




Jeremy Kitchen wrote:

  On Wednesday 02 June 2004 11:37 am, Patrick Donker wrote:

  
  

  I don't really understand how any of this really has anything to do with
vpopmail... sounds like you're needing help configuring your ftp server,
which, last I knew, was not what this list was for... but I could be wrong
;)
  

You are partly right; it is about vsftpd. On the other hand, I'd like to
use vpopmail's vchkpwd module as authenticator so I can use the virtual
users from qmail, who, in fact, will be the ftp users. So basically I'd
like to know how to (ab)use vpopmail pam auth in vsftpd. Supposedly
vsftpd supports pam authentication, so according to my limited intelect
it should be possible to use vchkpw...right?
I dont know anything (yet) about pam, so forgive my ignorance if this is
a trivial question :P

  
  
pam as in .. unix pam.. it's true that vpopmail is, by definition "a pam" as 
in a pluggable authentication module, however I don't believe it can 
interface with the UNIX pam services.

-Jeremy

  

I bet you have put this on the very top of your to-do list then :)