/usr/sbin/makehosteddomains is in courier-mta 0.66.1-1ubuntu4.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/sbin/../lib/courier/makehosteddomains
/usr/sbin/../lib/courier/makehosteddomains