Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-03 Thread Rick Widmer
Iavor Raytchev wrote: (on the wiki) * brief idea - combination of extension and daemon I think that should be changed. 'Extension' implies C code that is compiled into PHP. With a daemon there is no need for such drastic measures. 'Module' or 'library' would be better since the whole

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Macdougall
Hi, Ken Jones wrote: I've been thinking about this and I think the daemon is definitly the way to go. If Rick can't release the code I can write one. I think the protocol could be like this: I found the code and although it is not as pretty as I remember it is available for release. It's in

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Ken Jones
On Friday 02 April 2004 1:27 pm, Rick Macdougall wrote: Hi, Ken Jones wrote: I've been thinking about this and I think the daemon is definitly the way to go. If Rick can't release the code I can write one. I think the protocol could be like this: I found the code and although it is not

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread X-Istence
Rick Macdougall wrote: Hi, Ken Jones wrote: I've been thinking about this and I think the daemon is definitly the way to go. If Rick can't release the code I can write one. I think the protocol could be like this: I found the code and although it is not as pretty as I remember it is available

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Marcin Soltysiak
Ken Jones wrote: I've been thinking about this and I think the daemon is definitly the way to go. If Rick can't release the code I can write one. I think the protocol could be like this: I found the code and although it is not as pretty as I remember it is available for release.

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread X-Istence
Marcin Soltysiak wrote: Ken Jones wrote: I've been thinking about this and I think the daemon is definitly the way to go. If Rick can't release the code I can write one. I think the protocol could be like this: I found the code and although it is not as pretty as I remember it is available for

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Ken Jones
On Friday 02 April 2004 2:15 pm, Marcin Soltysiak wrote: snip How about security? If we got it secures by SSL we coiuld use it on multiple servers from one console. Rick, could you post a URL to the code? I was talking this over with Jeremy and he recommended running it under tcpserver. So we

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Macdougall
Ken Jones wrote: On Friday 02 April 2004 1:27 pm, Rick Macdougall wrote: That sounds good. Of course as a C programmer I'd prefer it be written in C linking in the vpopmail API. I'd like to take a swing at building it in C over the weekend. vmailmgr has something like this already, including a

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Macdougall
Hi, Ken Jones wrote: On Friday 02 April 2004 2:15 pm, Marcin Soltysiak wrote: I was talking this over with Jeremy and he recommended running it under tcpserver. So we could run it over ssl with the ssl patch to tcpserver. Yup, that's what we were doing. It was originally written to handle

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Marcin Soltysiak
That sounds good. Of course as a C programmer I'd prefer it be written in C linking in the vpopmail API. I'd like to take a swing at building it in C over the weekend. vmailmgr has something like this already, including a php module to talk to it. Perhaps we can re-use some of that code.

RE: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Iavor Raytchev
Hello everybody, As it seems that the daemon idea prevails - what about a 'home' for the daemon? When I spoke to Boian Bonev (one of the authors of the php vpopmail extension) he was absolutely for the daemon idea, but he said that it is very important to decide about its home - Is it going

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Ken Jones
On Friday 02 April 2004 2:32 pm, Iavor Raytchev wrote: Hello everybody, As it seems that the daemon idea prevails - what about a 'home' for the daemon? When I spoke to Boian Bonev (one of the authors of the php vpopmail extension) he was absolutely for the daemon idea, but he said that it

RE: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Iavor Raytchev
[snip] Ken Jones wrote: That sounds good. Of course as a C programmer I'd prefer it be written in C linking in the vpopmail API. I'd like to take a swing at building it in C over the weekend. vmailmgr has something like this already, including a php module to talk to it. Perhaps we can re-use

RE: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Iavor Raytchev
[snip] Marcin Soltysiak: Ken: That sounds good. Of course as a C programmer I'd prefer it be written in C linking in the vpopmail API. I'd like to take a swing at building it in C over the weekend. vmailmgr has something like this already, including a php module to talk to it. Perhaps we

RE: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Iavor Raytchev
[snip] X-Istence: why? We could talk to it using normal sockets. I dont see why it would require a special API to talk to a normal deamon on a TCP/IP. Even Unix sockets. [snip] I heard this idea several times and I think I like it.

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Alejandro Borges
I dont think implementing an independent tcp transport (even if its a very simple protocol) is a good idea nowdays. I would do it in a soap or xmlrpc wrappers, over an already well made, very lean, http server library. So then the clients could be made in any language without having to

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Macdougall
Ken Jones wrote: I'd like to keep it in the vpopmail project. The daemon could be part of the regular code and the php client module could be part of contrib? I really like the idea of a wiki, too bad we don't have one for vpopmail. Hi, My only problem with that solution is that I wouldn't

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Alejandro Borges
That woudl be the best way. However, then we'd need a PHP API to use in web-apps [snip] Ken, actually how do you imagine php to talk to the daemon? With XML-RPC or SOAP!

RE: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Iavor Raytchev
[snip] Ken Jones On Friday 02 April 2004 2:32 pm, Iavor Raytchev wrote: Would be best to open a Sourceforge.net project and open a wiki for an easy white board? I'd like to keep it in the vpopmail project. The daemon could be part of the regular code and the php client module could be part of

RE: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Iavor Raytchev
[snip] Rick Macdougall: Ken Jones wrote: I'd like to keep it in the vpopmail project. The daemon could be part of the regular code and the php client module could be part of contrib? I really like the idea of a wiki, too bad we don't have one for vpopmail. Hi, My only problem with that

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Widmer
X-Istence wrote: why? We could talk to it using normal sockets. I dont see why it would require a special API to talk to a normal deamon on a TCP/IP. Even Unix sockets. Here is my $0.02 on how to best implement a daemon... The daemon is in C [1] and runs under tcpserver. It opens a unix

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Jeremy Kitchen
On Friday 02 April 2004 08:21 pm, Ken Jones wrote: How about security? If we got it secures by SSL we coiuld use it on multiple servers from one console. Rick, could you post a URL to the code? I was talking this over with Jeremy and he recommended running it under tcpserver. So we could

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Paul Oehler
The daemon MUST require all connections to be authenticated, preferably against the vpopmail user base. user rwidmer ok password mypassword ok This is only slightly related to Rick's comments (which I think are very good by

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread X-Istence
Rick Widmer wrote: snip [1] Maybe it is my age showing, but it seems to me you want daemons lean and mean, and having to load the whole PHP interpreter just doesn't do it for me. (This is from someone who usually prefers to do everything in PHP.) I agree. X-istence

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread X-Istence
Rick Macdougall wrote: Ken Jones wrote: On Friday 02 April 2004 1:27 pm, Rick Macdougall wrote: That sounds good. Of course as a C programmer I'd prefer it be written in C linking in the vpopmail API. I'd like to take a swing at building it in C over the weekend. vmailmgr has something like

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread X-Istence
Ken Jones wrote: On Friday 02 April 2004 2:32 pm, Iavor Raytchev wrote: Hello everybody, As it seems that the daemon idea prevails - what about a 'home' for the daemon? When I spoke to Boian Bonev (one of the authors of the php vpopmail extension) he was absolutely for the daemon idea, but he

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Widmer
X-Istence wrote: I'd like to keep it in the vpopmail project. The daemon could be part of the regular code and the php client module could be part of contrib? Ken This would cause problems. Then it would not be in PHP releases, and only in the contrib directory, thus making it still an remote

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Widmer
Paul Oehler wrote: The daemon MUST require all connections to be authenticated, preferably against the vpopmail user base. user rwidmer ok password mypassword ok This is only slightly related to Rick's comments (which I think

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Marcin Soltysiak
The daemon MUST require all connections to be authenticated, preferably against the vpopmail user base. user rwidmer ok password mypassword ok This is only slightly related to Rick's comments (which I think are very

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Marcin Soltysiak
The daemon MUST require all connections to be authenticated, preferably against the vpopmail user base. user rwidmer ok password mypassword ok This is only slightly related to Rick's comments (which I think are very

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Doug Clements
Iavor Raytchev wrote: [snip] X-Istence wrote: Now what i want to ask is, could we write it efficiently. As i would want to deploy this over multiple servers, and having everything written out in normal ASCII would be a waste of bandwidth (all bytes count), i think that we should make it

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Doug Clements
Alejandro Borges wrote: That woudl be the best way. However, then we'd need a PHP API to use in web-apps [snip] Ken, actually how do you imagine php to talk to the daemon? With XML-RPC or SOAP! Or super-simple: over sockets using tcpserver. tcpserver is built for making these kinds of

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread Rick Widmer
Paul Oehler wrote: There is a function that provides authentication: vpasswd( user, domain, password, is_apop ) that returns the user's password info if valid, or 0. The problem is, if you can execute the vpopmail library at all, you can execute every function within it. This is how

Re: [vchkpw] php vpopmail daemon etc. - developing story

2004-04-02 Thread X-Istence
Doug Clements wrote: Iavor Raytchev wrote: [snip] X-Istence wrote: Now what i want to ask is, could we write it efficiently. As i would want to deploy this over multiple servers, and having everything written out in normal ASCII would be a waste of bandwidth (all bytes count), i think that we