I recently had to also re-create the config files (I do believe that .tmdarc is depreciated), so I wrote a bash script that looks for a tmda install, figures out the path, then hard-codes the path into a new config file.

Simplified version:

#!/usr/local/bin/bash

domain="domaintocheck.com"

for i in /usr/local/vpopmail/domains/$domain/*/.tmda
do
touch /usr/local/vpopmail/domains/$domain/$i/.tmda/config
echo "TMDA_VAR = \"/usr/local/vpopmail/domains/$domain/$i/Maildir/\"" >> /usr/local/vpopmail/domains/$domain/$i/.tmda/config
done


exit

Beware of the line wrap in the above. Add an echo line for every tmda var you need. Season to taste.

At 01:44 PM 9/22/2004, you wrote:
Hello,

I'm using TMDA-CGI and it's install feature to create
my user's tmdarc (config) files. I use vpopmail and
virtual domains, so it seems to be necessary to hard
code the maildir paths into each user's tmdarc file.

However, since I'm upgrading to TMDA-CGI from qadmin-tmda,
I really need a way to re-create the hundred or so already
existing tmdarc files and bring them up to spec with the
new TMDA-CGI settings.

Does anyone know how I might accomplish this?

--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users

_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users

Reply via email to