
4th July 2009, 02:39
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
Regards,
Stan
|

4th July 2009, 12:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
Make sure that you chnag ethe DNS record for the domain so that it points to the new IP address.
|

5th July 2009, 17:22
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
dns
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?
Thanks for you help here!
|

5th July 2009, 17:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
Quote:
|
Now I've removed the A record an added a CNAME pointing to the new ip address.
|
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.
Quote:
|
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?
|
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.
|

5th July 2009, 18:01
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i've deleted the cname and added an a record to point to the right ip.
The hostname doesn't appear in my /etc/hosts (so no wrong ip in there)
when i send an email the the subdomain, i can see in tail /var/log/mail.log postfix tries to send it to the old ip address instead of the new one.
|

5th July 2009, 18:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
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.
|

5th July 2009, 18:23
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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)?
|

5th July 2009, 18:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
Quote:
|
Where does postfix gets its ip's from on ispconfig?
|
Postfix dont get any IP addresses from ISPConfig. Postfix uses the nameserver that are in /etc/resolv.conf to resolve a domain name to ist corresponding IP address.
I guess you will have to post a part of your mail log with the real domain name so we can look this up to check wats wrong in your setup.
Also post the output of the command:
ifconfig
|

5th July 2009, 20:36
|
|
Junior Member
|
|
Join Date: Jul 2008
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Till,
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:
postmap /etc/postfix/transport
postfix reload
postqueue -f
then the mails were going the right way!
Thanks
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:16.
|
Recent comments
1 day 8 hours ago
1 day 16 hours ago
1 day 19 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 9 min ago
2 days 1 hour ago
2 days 2 hours ago
2 days 18 hours ago
2 days 19 hours ago