Hostname
Julian Field
MailScanner at ecs.soton.ac.uk
Mon Mar 7 20:52:27 GMT 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. ]
Right, I understand you now.
From the next release, you will be able to put in, for example,
$HOSTNAME
or
${HOSTNAME}
and it will be looked up in the shell environment variables and replaced
as necessary.
This applies to the main conf files. It cannot apply to the reports as I
already use "$" variables there for other things.
You can even use them in %variable% definitions, so you can do
SpamAssassin Local Rules Dir = $HOME/.spamassassin
or
%sa-local-dir% = $HOME/.spamassassin
SpamAssassin Local Rules Dir = %sa-local-dir%
Anyone want me to put out a new beta so you can try all this stuff?
Jason Huddleston wrote:
>Thanks Julian for your prompt reply. I am trying to use a common config
>across three mx servers and I was hoping there would be a way that the
>software could pick up the name of the server with out hard coding it in the
>config.
>
>--
>Jason Huddleston, CCSA
>Assistant Coordinator Internet Services and Security
>Ozarks Technical Community College
>huddlesj at otc.edu
>417-447-7532
>
>-----Original Message-----
>From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf
>Of Julian Field
>Sent: Monday, March 07, 2005 1:50 PM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: Hostname
>
>You can define whatever %variables% you want.
>%hostname% = your-host-here
>
>and then use it as
>Hostname = the %org-name% (%hostname%) MailScanner
>later in MailScanner.conf.
>
>Jason Huddleston wrote:
>
>
>
>>I am trying to change the Hostname variable to include the server name
>>with out hard coding the name in the string. I have tried "Hostname =
>>the %org-name% (%HOSTNAME%) MailScanner" and "Hostname = the
>>%org-name% ($HOSTNAME) MailScanner" with no luck. Is their a variable
>>that I am overlooking that will pick up the server name????
>>
>>Thanks,
>>
>>--
>>
>>Jason Huddleston, CCSA
>>
>>Assistant Coordinator Internet Services and Security
>>
>>Ozarks Technical Community College
>>
>>huddlesj at otc.edu
>>
>>417-447-7532
>>
>>------------------------ 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 MAQ (http://www.mailscanner.biz/maq/)
>>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
>Professional Support Services at www.MailScanner.biz
>MailScanner thanks transtec Computers for their support
>
>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 MAQ (http://www.mailscanner.biz/maq/) and
>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
>Support MailScanner development - buy the book off the website!
>
>------------------------ 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 MAQ (http://www.mailscanner.biz/maq/) 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
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
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 MAQ (http://www.mailscanner.biz/maq/) 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