Hostname

Julian Field MailScanner at ecs.soton.ac.uk
Mon Mar 7 21:10:05 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. ]

My addition just now supercedes this, and enables you to use any shell
environment variable anywhere in any definition. But many thanks to Tony
for providing this in the mean time :-)

Derek Winkler wrote:

>From CustomConfig.pm
>
>###########################################################################
>#
># Handy little feature to let you use the same MailScanner.conf file on
># lots of different hosts, where the only difference is the hostname.
># Just uncomment the "use Sys::Hostname" line and then set
>#   Hostname = &Hostname
># in your MailScanner.conf to use this.
>#
># Many thanks to Tony Finch for this.
>#
>###########################################################################
>
>Works in reports as well.
>
>
>-----Original Message-----
>From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On Behalf
>Of Jason Huddleston
>Sent: Monday, March 07, 2005 2:43 PM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Hostname
>
>
>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????
>
>
>This email and any files transmitted with it are confidential and
>proprietary to Algorithmics Incorporated and its affiliates
>("Algorithmics").  If received in error, use is prohibited.  Please destroy,
>and notify sender.  Sender does not waive confidentiality or privilege.
>Internet communications cannot be guaranteed to be timely, secure, error or
>virus-free.  Algorithmics does not accept liability for any errors or
>omissions.  Any commitment intended to bind Algorithmics must be reduced to
>writing and signed by an authorized signatory.
>
>------------------------ 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