-----BEGIN PGP SIGNED MESSAGE-----
Hello,
I'm trying to write a Python module (I'm lazy, so I'm using SWIG)
that
can interface with libvpopmail but I haven't got much look so far
cause
I'm unclear about the arguments needed for vadddomain().
According to the docs, it should be:
int vadddomain( char *domain)
domain = the new virtual domain
but it is
int vadddomain( char *domain, char *dir, int uid, int gid);
so what are the dir, uid and gid params for (I suppose the first is
the dir (like test.com for test.com) to be used for the domain and id
stuff is the UNIX user/group that is the owner of the domain
directory)?
So assuming this is true, would it make sense to simply write a
wrapper function
Vadddomain(char * domain)
{
struct passwd *pwdata;
pwdata=getpwnam(VPOPMAIL_USER);
//use domain as dir cause anything different is pretty confusing
vadddomain(domain, domain, pwdata->pw_uid, pwdata->pw_gid);
}
if I don't plan to use different owners for the domain directories
which I sure as hell won't cause I don't feel like I need to have yet
another setuid root part in my system?
To be honest: vpopmail.h looks pretty confusing to me. For example,
is my
assumption correct, that the variable arguments to
int vadddotqmail(char *alias, char *domain,... );
are the lines of data that gets written to the .qmail file?
Best regards,
Gabriel
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
iQEVAwUBO4qRi8Za2WpymlDxAQF+Kwf/T/45Q6KPq0Uqu3lWW70AEieBLkzxk7pi
6U7zUMDZJuoy62I5VU/YIhFeYAgdRHxb8MUG4xIchPOcoxP2NWs9vDfrhkeZZHYt
Y+9K791i/dzd0pATmy0xoLPNT/4davfjkF0qvvgBt3X/s6iPEqDp3PJM7/CDF5lP
jrNmcqRYMOxcpdxnD8b+PEyveNrdHP08veVLAbEsXH/tD8A06RhRHbmiaKCAlny1
3VvkD83C7SQ/YiWvQzQtaqtoixy2QUK0M3kDb1a4EB9pRbfVfaCeRNce5rgKN4Se
StHAu1cDWmLgN0JDHy6ChsSG8f67xcEY60o/JpqqdrevVpW2CjZjug==
=all8
-----END PGP SIGNATURE-----