System variables in MailScanner.conf
Julian Field
MailScanner at ecs.soton.ac.uk
Wed Jul 13 08:41:02 IST 2005
If using the wrong one gives you an empty string (it should do) then
what's wrong with
Hostname = ${HOSTNAME}${HOST}
and one of them will always fire.
On 12 Jul 2005, at 22:45, 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.
>
> Cheers,
>
> James
> --
> How do I get HOME?
>
> ------------------------ 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!
>
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ 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