hostname variable in attachment replacement

Julian Field MailScanner at
Thu Aug 6 10:21:42 IST 2009

As clearly shown in the example file supplied in 

Note to Help Desk: Look on $hostname in $quarantinedir/$datenumber 
(message $id).

Note the "$hostname" in the line above.

On 06/08/2009 10:13, Erik Bloodaxe wrote:
> Is there a way to have a variable in the attachements that replace 
> unacceptable file types and content that expands to the host names.
> I.e. in stored.filename.message.txt in etc/reports/en
> I want a line saying
> File is in: $(HOSTNAME) in $quarantinedir/$datenumber/$id
> so that my sysadmins can see which of the many servers the file is on 
> as the standard reports give them no indication of which server to get 
> the file from.
> I have tried all the obvious
> Regards
> Erik


Julian Field MEng CITP CEng
Buy the MailScanner book at

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 and

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