[Pkg-clamav-devel] Bug#755277: Bug#755277: clamav-milter: Hostname instead of FQDN in X-Virus-Scanned header

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Mon Jul 21 20:53:04 UTC 2014


Control: tags -1 moreinfo

Hi,

On 19.07.2014 15:44, Dudytz wrote:
 > In the clamav-milter installed with default options, the
 > X-Virus-Scanned header shows the hostname instead of the FQDN.

What would be the benefit of showing the fully qualified domain name 
instead of just the hostname?

On 19.07.2014 15:55, Dudytz wrote:
> I made some tests:
>
> My local configuration:
>
> /etc/hostname:
> myhostname
>
> /etc/hosts:
> 1.1.1.1 myhostname.mydomain.com myhostname
>
> Test code:
[...]
> Output of the test code:
>
> Hostname..: myhostname
> FQDN......: myhostname.mydomain.com

If you want clamav-milter to use something other than the hostname, you 
can add the ReportHostname variable in /etc/clamav-milter.conf, e.g.:
ReportHostname myhostname.mydomain.com

Is that sufficient for you?

Best regards,
Andreas



More information about the Pkg-clamav-devel mailing list