System variables in MailScanner.conf

Yu Chen chen at HHMI.UMBC.EDU
Wed Jul 13 15:03:58 IST 2005


> James Gray wrote:
>
>> We are currently in the process of migrating our mail gateways to a common 
>> operating system and configuration.  Currently they are split between 
>> CentOS and FreeBSD.  We found an interesting little "feature" during the 
>> most recent upgrade to MS 4.43.8.
>> 
>> The config file refers to "$HOSTNAME" which on our CentOS testing box 
>> worked perfectly.  So we got around to pushing the config out to all the 
>> production machines.  Problem - only the CentOS-based machines are 
>> reporting their hostname, and the FreeBSD boxes aren't.  2 minutes of 
>> playing revealed we needed "$HOST" on FreeBSD, and "$HOTNAME" on Linux. 
>> Bah - back to separate configs :(
>> 
>> Just thought this little gem might help others.  As we're not going to be 
>> keeping the FreeBSD boxes, I'm not particularly heart-broken.  They are 
>> also fairly old (fBSD 4.6.1) which may have something to do with the 
>> "$HOST" vs "$HOSTNAME" thing too.  Anyone else seen this?  If this is a 
>> fBSD thing, it might be a handy exception to mention in the config file 
>> comments.
>> 
> Looks like it's a FreeBSD thing as my FreeBSD boxes (5.3 & 5.4) all like
> $HOST and 'Undefined Variable' $HOSTNAME
>

Hah, interesting, my FreeBSD box(4.5) recognize $HOSTNAME not $HOST.


> Just out of interest, why the switch to CentOS over fBSD?
>
> Drew
>
>
>


===========================================
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone: 	(410)455-6347 (primary)
 	(410)455-2718 (secondary)
fax: 	(410)455-1174
email: 	chen at hhmi.umbc.edu
===========================================

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list