hostname variable in attachment replacement

Jules Field MailScanner at ecs.soton.ac.uk
Fri Aug 7 22:22:15 IST 2009



On 07/08/2009 15:45, David Lee wrote:
> On Fri, 7 Aug 2009, Julian Field wrote:
>
>> On 07/08/2009 15:23, David Lee wrote:
>>> [...]
>>> Wouldn't it help if the MS start up code could have something like:
>>>    if not set/inherited ... then set to something '/bin/hostname'-ish.
>>
>> I could put it in the init.d script I guess. That would be the right 
>> place for it. MailScanner just automatically looks up $ENV{FOOBAR} 
>> when it sees $FOOBAR or ${FOOBAR} in the MailScanner.conf file, it 
>> doesn't know about the hostname as a special case at all, and I would 
>> like to keep it that way.
>
> Sure.  (Interpret my phrase "MS start-up code" as including the init.d 
> script.)
>
> Might an "export HOSTNAME" there help?
I have added that and published 4.78.7-2 which includes it in the init.d 
script for RH/CentOS/etc. systems and also SuSE systems as it cannot do 
much harm.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list