System variables in MailScanner.conf
Drew Marshall
drew at THEMARSHALLS.CO.UK
Wed Jul 13 01:00:03 IST 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
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
Just out of interest, why the switch to CentOS over fBSD?
Drew
--
In line with our policy, this message has
been scanned for viruses and dangerous
content by MailScanner, and is believed to be clean.
www.themarshalls.co.uk/policy
------------------------ 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