Hostname

Jason Huddleston huddlesj at otc.edu
Mon Mar 7 20:46:16 GMT 2005


Evedentally MailScanner does picks up everything as a string and does not
execute any code that is put in the config file. When I set the following:

Hostname = the %org-name% ($ENV{'hostname'}) MailScanner


MailScanner returns the template as:

Note to Help Desk: Look on the OTC ($ENV{'hostname'}) MailScanner in
/var/spool/MailScanner/quarantine/20050307 (message j27KTWVi016814).

-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf
Of Shortt, Kevin
Sent: Monday, March 07, 2005 2:00 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Hostname

In Redhat EL 3.0 there is $HOSTNAME set.
Unsure how MS would pull an Environment variable.

I believe perl pulls them like such.

     $ENV{HOSTNAME};

So yours might look like... Hostname = the %org-name% ($ENV{'hostname'})
MailScanner later in
This is untested.

Give it a try..

-k

----Original Message----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of RedRed!com IT Department Sent: Monday, March 07, 2005 2:53 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Hostname

> Julian,
>
>     I think he's looking more for something like:
>
>     %hostname% = gethostbyname()
>
>     But I'm not sure that would work.
>
> Sean
>
> Julian Field wrote:
>
>> 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!*
>>
>>
>>
>
> ------------------------ 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!

------------------------ 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