HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   mail from server not sending because main domain is not hosted by ispconfig (http://www.howtoforge.com/forums/showthread.php?t=16166)

plathw 11th October 2007 23:28

mail from server not sending because main domain is not hosted by ispconfig
 
We have several different websites. Our main website (www.site.com) is hosted on another box but several other sub domains (site1.site.com, site2.site.com, etc) are hosted on an ispconfig box.

We noticed that we were not getting mail sent by forms on the sub domain sites hosted on our ispconfig box. We checked the error log and saw that it was looking for the main domain, and since it is not hosted on that box, it would just give an error and not send.

To fix this we removed "site.com" from etc/postfix/local-host-names and then mail was being sent fine. But, every time you interact with the admin panel, it adds "site.com" back into the local-host-names file. Any ideas how to stop this?

dysolve 12th October 2007 01:33

I had a similar problem, so I changed the smtp server to my ISP's one and it was all good..

till 12th October 2007 11:52

The solution is to set "site.com" to external mailserver under options in the co-domian settings in ISPConfig.

bigbeat 12th September 2008 00:14

ispconfig box with remotely hosted MX... not able to receive mail
 
Hello,

I'm having the same problem mentioned above. I took the action described and set both the domain and sub-domain to "external mailserver." Still not receiving mail.

Any help would be greatly appreciated.

falko 12th September 2008 19:15

Is the domain/hostname in question still listed in /etc/postfix/local-host-names?

bigbeat 13th September 2008 07:17

falko,

Thank you very much for your reply. No, I removed the domain in question from the local-host-names file right from the beginning. I have a couple of other servers and whenever I point MX records for a domain to a remote location, I always remove the domain entry in the local-host-names file, and the server ceases trying to deliver mail locally. But it doesn't appear to work the same way with the ispconfig server.

Any other suggestions?

In ISP Manager > sites > domainname, I have the "Create DNS-MX" unchecked. Is that the way it should be?

There are no MX records setup for the domain in "DNS Manager." Is that the way it should be?

Thank you again for your willingness to help. This forum is a great resource and very appreciated.

till 13th September 2008 11:56

Quote:

I removed the domain in question from the local-host-names file right from the beginning.
This is useless, as ISPConfig will add it again.

What you missed is to to set the domain and co-domain to external mailserver in ispconfig. If you enable o diable MX has no influence on this. MX is for DNS only.

bigbeat 13th September 2008 23:00

Quote:

Originally Posted by till (Post 144890)
This is useless, as ISPConfig will add it again.

What you missed is to to set the domain and co-domain to external mailserver in ispconfig. If you enable o diable MX has no influence on this. MX is for DNS only.

till, in my first post above, I mentioned that I have already done this...

I took the action described and set both the domain and sub-domain to "external mailserver." Still not receiving mail.

Any other ideas?

Thanks

till 14th September 2008 14:08

Ok, you set the domain and co-domain to external mailserver and the domain is still listed in the file /etc/postfix/local-host-names ?

bigbeat 15th September 2008 08:03

The domain has been set to external mail server, but the domain name is no longer listed in the local-host-names file. I removed it from there. Should I not have removed it?

Thank you


All times are GMT +2. The time now is 18:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.