Sophos Anti-Virus for Linux and UNIX, v 7: notification email subjects do not contain the expected host name

  • Article ID: 112943
  • Updated: 17 Feb 2011

Notification email subject lines do not contain the expected host name, but instead show localhost6.localdomain6 or localhost.localdomain, for example, the subject line contains:

[SAV-LINUX] Notice from Sophos Anti-Virus on localhost6.localdomain6

Root cause
This occurs because the host name (helen in this example) is added to the localhost entry of the loopback device in the /etc/hosts file. For example helen localhost.localdomain localhost localhost4
::1 helen localhost6.localdomain6 localhost6

The main reason for this issue is due to the bug described here:

What to do

Perform one of the following workarounds.
You should however note that all of the following options change the way in which name resolution works in a system-wide fashion. This might have undesired side-effects on other applications. You should therefore test these workarounds thoroughly before implementing them.

  • Option 1 Change the host name to be the fully qualified domain name.
    On a running system (until next reboot):
    # hostname
    To make this change permanent (so that it survives a reboot) you will have to perform further steps that vary on different distributions. Please refer to your OS manual for details of how to do this.
  • Option 2 Remove the host name from the loopback entries in /etc/hosts (Note that Network Manager might subsequently switch this back to its previous setting). Example: localhost.localdomain localhost localhost4
    ::1 localhost6.localdomain6 localhost6

If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent