Thanks for your answer till! Is it possible to switch primary domain in isp3 as I did for Isp2? Which files must I change?
I guess you want to change the hostname of the server? The configuration files for the hostname of the server depend on the Linux distribution, for Debian and Ubuntu the hostname id in these files: /etc/hostname /etc/mailname /etc/postfix/main.cf
In the following files I have changed from old_domain.tld to new_domain.tld /etc/hostname /etc/mailname /etc/postfix/main.cf And restarted the services of course. But now I'm experiencing some email problems. Code: In the Show Mail Queue there is the following entries: -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 29C602839E3 2232 Tue Mar 27 15:02:11 [email protected]_domain.tld (connect to alt4.gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out) [email protected] There seems to be some old info remaining regarding the old_domain.tld? Br A
Do Code: hostname and Code: hostname -f also show the new hostname? If not, run Code: /etc/init.d/hostname.sh start and check again.
Then it might be that some old emails were in the mailqueue. If you dont get the errors when you write a new mail, then the hostname has been changed successfully.
The hostname is changed successfully. I emptied the queue and retried. But I can't send emails outside of my own hostname, eg: to gmail or hotmail or to any one at all. This is the message in the mail queue: Code: -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 8ED6628143D 2076 Wed Mar 28 20:32:10 (connect to alt4.gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out) [email protected]
Can be a routing or firewall problem. Are you sure that your access provider does not blocj port 25 outgoing? If your server is not in a datacenter, then the port might be blocked.
Thanks for the support! When I fiddled with the main.cf I accidently edited out relay host =( All is well now