Hello again, I have the following scenario for my ISPConfig server: I have a domain - domain.com. The dns servers for this domain are not related to my ISPConfig. The ISPConfig host name is ns1.domain.com. All domains that are in its DNS work fine and mail too. Now the issue I have is: I set up in the external dns www.domain.com for my domain to be pointed to my ISPConfig machine. The website is working fine. I also have an EXTERNAL MAILSERVER for this domain and it is working fine, except when I try to send email using ISPConfig machine as relay. I set the www.domain.com to use EXTERNAL MAILSERVER as well as the co-domain domain.com. But I still get 'loops back to myself' error. This is what I have in /etc/postfix/local-host-names for my domain ns1.smartcall.bg localhost.ns1.smartcall.bg localhost.smartcall.bg - this, I believe shouldn't be here localhost.localdomain A long story. Hope somebody will read. Thanks!
The domain and everything related to it works for 3 years now. All I did is to move the website to ISPConfig server. Everything else - DNS, MX all is in other servers ever since the domain is registered. Only ISPConfig server can't send mails to this domain. The server itself is on a subdomain of this domain. The error is Loops back to myself. And everywhere I set External Mailserver. Thanks
All was my mistake. I set up the MX fot the domain.com and I shoul have left the domain part empty. My appologies for the inconvenience and thanks for your time.