On Wednesday 04 September 2002 11:26 am, Dan Muey wrote: > I'm getting ready to install vqadmin. > Whenever I add or delete a domain I run this command : > ls /home/vpopmail/domains/ | cat | sed '/^\..*/d' > > /usr/local/share/sqwebmail/logindomainlist > so that sqwebmail has an updated list of domains to use for the loging > screen. > > Is there a way to modify vqadmin to run that shell command , or any > other for that matter, > ( say like emailing an administrator every time a domain is added ) > whenever a domain is added or removed? > > If I have to modify the source code, which file and where in that file > do I put what commands? ( I'm an extreme c rookie, but pretty good w/ > perl and sh )
Sounds like a great idea. I'm working on the vqadmin code today too. Get the vqadmin-2.3.3 code from the www.inter7.com/devel/ Make your modification to the domain.c file, look for the add_domain() function. Then have it envoke an add_domain.sh script from the /home/vpopmail/etc directory. Then you can put your script into that file/dir. When you have it running. Send the domain.c file to me and I'll try to integrate it into the 2.3.4 release. For completeness, let's also have a del_domain.sh script too. It would probably be best to "stat" the file and if it exists then run it. This probably won't work on some web server installations since the web server can be configured to not let cgi programs exec external scripts Ken Jones
