All of my servers are named sub.domain.com. I need an email account from one server to send email to another server with the same domain (both have different sub domains). My problem is that domain.com is listed in local-host-names on the server trying to send. How can I remove this on the ISPConfig end? Editing the local-host-names file on the server obviously isn't working.
Then you must rename your server in ISPConfig under management > server > settings and set the new hostname on the shell, so that the commands: "hostname" and "hostname -f" do not show this domain anymore. Also change the hostname in /etc/postfix/main.cf and if exists in /etc/mailname.