PDA

View Full Version : How to automate user account tasks?



glarkin
05-12-2004, 01:11 PM
Hi there,

We've just started using DA in the past couple of weeks, and so far, we're very impressed. There are a few things that we'd like to do when a new account is created in the system, and I'm wondering if they are possible.

First, I'd like to copy a template version of a form mailer script in the cgi-bin directory of the new site. Then I'd like to substitute some text in the script which is based on the new domain name I'm setting up.

I found what I think is the template directory for new web sites in "/usr/local/directadmin/data/templates/default". Is it true that any file placed in there will be copied to the new domain's public_html directory? If so, it appears that the cgi-bin directory is created with some different mechanism. Does anyone have an idea how I can automatically add the formmail.pl to the new site's cgi-bin directory?

Next, I'd like DA to fetch a web page on another server that acts as a backup mail and DNS server. The URL to the web page is a CGI script, and I'd like to pass the new domain to it so that the backup server can automatically configure itself to receive email for the new domain.

Does DA have any kind of "post-create" event that I can hook into to do that? I suppose I could always create a cron script to watch the contents of the /home directory, but I was looking for something a little cleaner.

If anyone has any ideas on these questions, please let me know.

Thank you,
Greg Larkin

ProWebUK
05-12-2004, 01:33 PM
/usr/local/directadmin/scripts/custom/README

Chris

glarkin
05-12-2004, 02:13 PM
Hi Chris,

Excellent - thank you! Sorry I didn't RTFM more...

Thanks,
Greg