Even though it is documented here
https://www.sophos.com/en-us/support/knowledgebase/122249.aspx
as of version 9.8.5 linux client you are unable to pass the AD ( Active directory ) domain. The command comes back with incorrect usage message.
eg.
# /opt/sophos-av/update/mkinstpkg -o /root/savinstpkg-test.x86_64.rpm --host --rpm --rpm-version="9.8.5" --rpm-release="8" --domainname=DOMAIN
mkinstpkg: Make installation package
Usage: ./mkinstpkg.sh [OPTION]
OPTION:
-h, --help Display this help information
-o OUTPUT-FILE, --output=OUTPUT-FILE Path to installation package file
-a, --all Generate a package for all supported distributions
--host Generate a package for this distribution only
--update-proxy-address=URL Address for HTTP proxy
-r, --rpm Create RPM package
--rpm-version=VERSION Version number for RPM package. Eg: --rpm-version=9.0.0
--rpm-release=RELEASE Release number for RPM package. Eg: --rpm-release=1
Package creation aborted
# /opt/sophos-av/update/mkinstpkg -o /root/savinstpkg-test.x86_64.rpm --host --rpm --rpm-version="9.8.5" --rpm-release="8"
Sophos Anti-Virus
=================
Copyright (c) 1989-2015 Sophos Limited. All rights reserved.
Welcome to the Sophos Anti-Virus installer. Sophos Anti-Virus contains an on-access scanner, an on-demand
command-line scanner, the Sophos Anti-Virus daemon, and the Sophos Anti-Virus GUI.
On-access scanner Scans files as they are accessed, and grants access
to only those that are threat-free.
On-demand scanner Scans the computer, or parts of the computer,
immediately.
Sophos Anti-Virus daemon Background process that provides control, logging,
and email alerting for Sophos Anti-Virus.
Sophos Anti-Virus GUI User interface accessed through a web browser.
Press <return> to display Licence. Then press <spc> to scroll forward
<snip>
This thread was automatically locked due to age.