You could also use the vpopmail perl module
http://search.cpan.org/search?mode=module&query=vpopmail
This won't fix your permissions problem, but thought I should mention it
anyways....
[EMAIL PROTECTED] writes:
> Harsha-
>
> Like previously mentioned, it's a problem with permissions. Your web
> server is probably running as the user "nobody" and you need root
> permissions to add a user. The quickest and (somewhat) safe method to do
> this is to get the package called "sudo" and give the user "nobody" rights
> to run vadduser.
>
> -Andy
> [EMAIL PROTECTED]
>
> [EMAIL PROTECTED] writes:
>
> > Hi,
> >
> > I have written a C program to create a s new user on a vpopmail domain,
> > which is run from the command line. This works fine.
> >
> > Now I need to let a user signup himself by cliacking a link "Sign me up
> > now". The sign up page has four text fields - UserID, password1, password2
> > and the user's RealName. Up on submit the values are posted to a C progam
> > (almost similar to the above mentioned) which takes the parameters
> > correctly.
> >
> > But strangely in this case, the function vadduser fails to add the user to
> > the specified domain. It should have worked. I could'nt figure out why its
> > failing.
> >
> > The parameters are...
> > vadduser(userid, domain, password, realname);
> >
> > Can any body tell me why??
> >
> > sincerely,
> > Harsha
> >
> >
--
--
-------------------------
Sean P. Scanlon
perl -e 'print pack("h38", "3707370426c6575646f647e2e65647"), "\n"'
-------------------------
"Personally, I think hashes are gods greatest gift to the programmer. I
love them. If I could turn my wife into one, I would. "
-seen in 'comp.lang.perl.misc'