Hi James
Im not a PHP expert so when i evaluated dbmail i add a problem:
How do i administer my mail server ?
I think i found a simple solution:
- I use webmin custom command (in the others section of webmin )
- And i have 5 scripts that are started by webmin to execute
dbmail-adduser, dbmail-mainnance,.. and other programs
- My staffs and I only see webmin menus
- And i dont have to use PHP to investigate in dbmail.
- My dbmail administration is where all my others
administration is, in webmin.
Its works great, I would not have it any other way
You wont have to wonder how dbmail-users, dbmail-maintenance,
do there stuff and you use simple webmin menus.
If you want my scripts and the webmin menu I'll
be glag to give them to you.
Bye
Jacques
Selon James XMS <[EMAIL PROTECTED]>:
> Hi All,
>
>
> I am knocking up a quick php script to add users to DBMail, and i was
> wondering what dbmail-adduser does in terms of adding stuff to mysql when it
> creates a user.
> So far my script does the following to add a dbmail user:
>
> $db_string = "INSERT INTO users
> (userid,passwd,client_idnr,maxmail_size,encryption_type)
> VALUES
>
('$frm_username$frm_domain','$frm_passwde','$frm_userlev','$frm_mboxsize','$frm_enctype')";
> $db_query = mysql_query($db_string) or die ("Error Writing To
> Database");
>
> $frm_uid = mysql_insert_id();
>
> $db_string = "INSERT INTO aliases (alias,deliver_to,client_idnr)
> VALUES
> ('$frm_username$frm_domain','$frm_uid','$frm_userlev')";
> $db_query = mysql_query($db_string);
>
> $db_string = "INSERT INTO mailboxes (owner_idnr,name)
> VALUES ('$frm_uid','INBOX')";
> $db_query = mysql_query($db_string);
>
>
> Am i missing anything?
>
>
> Cheers
> James
>
>
>
>
> --- Msg sent via @Mail - http://atmail.nl/
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>