[Maia-users] Bulk Domain import
Gary Carr
gc_list at carolina.net
Thu Aug 10 06:26:36 PDT 2006
Anyone on this list interested in writing such a script that will read this
data from a text file and import it into the mysql database? I am willing to
pay to have it developed.
Thanks,
Gary Carr
President/CEO
705A Wesley Pines Rd.
COL Networks, Inc.
Lumberton, NC 28358
Phone: 910-402-5011
Fax: 910-402-1999
Check us out at: www.carolina.net
Don't steal, the government hates competition!
> 1. Is there a recommened way or script to import new domains into the
> database versus adding them via the admin page one at a time? I see the
> maia_domains table and it would seem easy enough to update but I am not
> sure
> if there are any other tables that hold the domain information.
>Adding a domain involves creating corresponding records in the following
>tables:
>* maia_domains (the domain record itself)
>* policy (filter policies for the domain)
>* maia_users (the domain-default user record)
>* users (the domain-default email address)
>To do the job from a script, though, what I'd recommend is using the
>add_domain() function in the maia_db.php file. The maia_db.php file is
>effectively a PHP API for developer access to most of Maia's internals,
>so if you're looking to write a script or third-party add-on that hooks
>into the Maia database, that's the library of subroutines you'll want to
>hook into.
More information about the Maia-users
mailing list