Hi. I have changed your script a bit so it works on FreeBSD as well. Basially hostname -d (domain name) is not working on *BSD and I replaced it with hostname |cut -d . -f 2- which works on linux too. But I dont like it to be honest. Some boxes could lack the .domain.com part or just have domain.com as their hostname. Pluss the hostname and the domain of the server doesnt have to correspond to the values in the main.cf. It could just work as an MX of a totally different domain. I would rather replace it with a variable. Paths to tmda files on BDS are /usr/local/bin and not /usr/bin which I fixed adding a variable: #Path to tdma executables TDMA_EXEC='/usr/local/bin' This is a kinda dirty and quick fix and i think it should be replaced with the which command. I have created a variable for postfix path as well and called it MTA_CONF_PATH. You should add something to the script checking whether pine is installed or not. Pine does not come with most of the linux distros, nor with *BSD's. I personally use mutt. You may want to change that pine part.
I put the edited file in http://www.yazzy.net/files/install_tmda.sh Otherwise great work. Thanks YazzY On (28/10/02 23:27), Todd A. Jacobs wrote: > Date: Mon, 28 Oct 2002 23:27:14 -0800 (PST) > To: TMDA Users <[EMAIL PROTECTED]> > Subject: SCRIPT: install_tmda.sh > From: "Todd A. Jacobs" <[EMAIL PROTECTED]> > > I wrote system-wide script that allows users to quickly install all the > related files for a basic tmda configuration. The script should work out > of the box, but please let me know if it doesn't. > > http://codegnome.org/scripting/showscript.php?script=install_tmda.sh > > -- > "The only thing that helps me maintain my slender grip on reality is the > friendship I share with my collection of singing potatoes." > > - Holly, JMC Vessel *Red Dwarf* > > _____________________________________________ > tmda-users mailing list ([EMAIL PROTECTED]) > http://tmda.net/lists/listinfo/tmda-users -- -- Marcin M. Jessa Software developer/System Administrator Wireless Reading Systems ASA Skreddervn 9 N-1537 Moss Phone: +47 69 27 96 88 Cellular: +47 988 505 44 "Just because it works does not make it right." Uptime: 10:19AM up 7 days, 4:17, 3 users, load averages: 0.00, 0.01, 0.00 _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
