Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vpopmail + adding users www page.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Shopro
l33t
l33t


Joined: 12 May 2004
Posts: 678
Location: Dayton, OH, USA

PostPosted: Thu Apr 07, 2005 10:58 am    Post subject: vpopmail + adding users www page. Reply with quote

I've been looking for a solution to allow my customers to register their own email account. I am tryed both of inter7's (vqsignup, vqregister) programs but have failed to get them to work. Now my question is if someone knows a php script or simular that can be used to accomplish this.
Or if it is possible to tell vpopmail to use clearpw as it is defined in the mysql database.
_________________
Just because I have nothing to say is no reason why you shouldn't listen.
Back to top
View user's profile Send private message
vklimovs
n00b
n00b


Joined: 15 Dec 2005
Posts: 20

PostPosted: Thu Dec 15, 2005 6:10 pm    Post subject: Reply with quote

I've managed to get vqregister to work, all you have is to configure Makefile correctly (mine Makefile looks like this, it should be suitable for almost any gentoo install):
Code:

VDIR = /var/vpopmail
CC = gcc
BIN = vqregister
DEFS = -I$(VDIR)/include -I/usr/include/mysql
LINKDEFS =
LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib/mysql -lmysqlclient
OBJS = main.o cgi.o template.o global.o misc.o config.o register.o password.o \
       vpopmail.o db.o field.o badhosts.o

INSTALL_DIR = /var/www/localhost/cgi-bin/vqregister
INSTALL_BIN = vqregister.cgi
INSTALL_UID = vpopmail
INSTALL_GID = vpopmail

you don't have to modify code after it.
Compile it:
Code:

make all install clean

After that you need to change the owner of /etc/vpopmail.conf to be vpopmail, and voila, point you browser to
http://www.yourdomain.tld/cgi-bin/vqregister/vqregister.cgi
and try to register a new user.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum