That would be because you need to tweak your TAB file a little: "userauth" "/var/MailRoot/bin/userauth" "userauth" ... "@@DOMAIN" "@@USER" "@@PASSWD" "useradd" "/var/MailRoot/bin/userauth" "useradd" ... "@@DOMAIN" "@@USER" "@@PASSWD" "@@PATH" "useredit" "/var/MailRoot/bin/userauth" "useredit" ... "@@DOMAIN" "@@USER" "@@PASSWD" "@@PATH" "userdel" "/var/MailRoot/bin/userauth" "userdel" ... "@@DOMAIN" "@@USER" "dropdomain" "/var/MailRoot/bin/userauth" "domaindrop" ... "@@DOMAIN"
(Ignore the ... line continuations) Your program "/var/MailRoot/bin/userauth" would take parameters [userauth|useradd|useredit|userdel|dropdomain] and process it accordingly. Rob :-) _________________________________________________ Signature: Live like you'll die tomorrow! Reply: I tried your signature out once. It took years off my life! > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Helio Cavichiolo Jr > Sent: Tuesday, April 26, 2005 9:09 AM > To: xmail@xmailserver.org > Subject: [xmail] mysql base > > I was planning to use mysql to store users for authentication > when I saw th= e=20 userauth feature of xmail. I wrote a > little program to check the=20 authentication into a mysql > table and placed the following file into=20 > userauth/pop3 directory: > > "userauth" "/var/MailRoot/bin/userauth" > "userauth" "@@DOMAIN" = > =20 > "@@USER" "@@PASSWD" > > It worked perfectly. > > As I read into xmail documentation that this file can handle > the functions= =20 useradd, userdel, useredit and domaindrop, > I implemented these functions in= =20 my program and added > the following lines into the file in userauth/pop3=20 > directory: > > "userauth" "/var/MailRoot/bin/userauth" > "userauth" "@@DOMAIN" = > =20 > "@@USER" "@@PASSWD" > "useradd" "/var/MailRoot/bin/userauth" "userauth" > "@@DOMAIN" = > =20 > "@@USER" "@@PASSWD" "@@PATH" > "useredit" "/var/MailRoot/bin/userauth" "userauth" > "@@DOMAIN" = > =20 > "@@USER" "@@PASSWD" "@@PATH" > "userdel" "/var/MailRoot/bin/userauth" "userauth" > "@@DOMAIN" = > =20 > "@@USER" > "domaindrop" "/var/MailRoot/bin/userauth" "userauth" > "@@DOMAIN" > > (all spaces here are tabs in the file) > > But now I discovered that xmail doesn't call my program when > adding, deleti= ng=20 or changing a user. > So, anyone could tell me what are those functions (useradd, > useredit, userd= el,=20 > domaindrop) for, or how do they work? > > Thanx, > > =2D-=20 > Helio Cavichiolo Jr > Analista de Sistemas > Altecnet Inform=E1tica Ltda > Tel. (19) 8137-6822 > - > To unsubscribe from this list: send the line "unsubscribe > xmail" in the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a > message to [EMAIL PROTECTED] > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]