ispconfig postfix dns

Hi in here.
I've moved the ispconfig from one site to another. On one domain i forwarded to a different internal mailserver. Now i need to change that ip of empty ispconfig's/postfix' cache, because the mail forward still points to the old ip.

Tried to alter is in the site manager/site/co domains/forward, but in the logfiles i still see postfix is trying to send to the old ip address. How can I change this?

Hmm... something is strange. I did that before, but it didn't work out. Now I've removed the A record an added a CNAME pointing to the new ip address. Stil in /var/log/mail.log postfix tries to send the mail to the old ip address... Is there a place in the mysql which I should alter, or is there some kind of cache inside ispconfig which points to the wrong direction?

Now I've removed the A record an added a CNAME pointing to the new ip address.

Click to expand...

This can not work as cnames can not point to an IP address. cname records point to a domain and not an IP. Please remove the cname and add a A Record instead.

Stil in /var/log/mail.log postfix tries to send the mail to the old ip address... Is there a place in the mysql which I should alter, or is there some kind of cache inside ispconfig which points to the wrong direction?

Click to expand...

This has nothing to do with mysql or ispconfig. Just amke sure that you have the correct IP address in the primary dns server of the domain. This is not nescessarily your ISPConfig server! Lao make sure that you dont have a wrong IP in the /etc/hosts file.

After you change the dns record, it can take up to 48 hours unteil the dns change is propagated. Also you can check the dns record with the dig command to ensure that it is correct. And you should make sure that you really changed the record on the correct server, most likely the server were you changed it now is not authoritive for the domain.

dig gives me the right ip for the subdomain. Mayb i can explain some more, so you could hopefully help me out of this.
first i had ispconfig running at my home location, forwarding mail to a subdomain (an other mail server internal). Now i've got the ispconfig box running in a datacenter, still trying to forward the mail the internal ip address of the other mail server. This ip address I changed to the correct ip address in the dns entry of ispconfig (added the correct A record). From a ssh session i can ping and dig the corresponding ip address, so my ubuntu sees that the subdomain is at the correct ip. But.... when i try to send an email to the subdomain, postfix tries to send it to the wrong ip (the old internal mail server's ip).

Would there be some kind of cache which postfix uses? Because the ubuntu box knows the correct ip, so does the nameserver my ubuntu box uses.

Where does postfix gets its ip's from on ispconfig? (the mysql database or some host file)?

Thanks for your help, i finally found out what was wrong. In /etc/postfix/transport I had to point to the internal server when the box was in my lan. Now it's in the data center I had to remove the subdomain from /etc/postfix/transport. Then ran: