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)
-   -   Second server cannot send email to own domain (hosted on first server) (http://www.howtoforge.com/forums/showthread.php?t=2810)

benbalbo 1st March 2006 00:28

Second server cannot send email to own domain (hosted on first server)
 
I have installed ISPConfig on a second server and am unable to send email to anything@main-domain.com.

The issue lies in the fact that both servers use the same domain: server1.main-domain.com and server2.main-domain.com.

Both servers have main-domain.com in the local-host-names file, so server2 thinks it manages email for that domain, when in fact it's server1.

I've had a look at /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php to work out where this main domain is being added to find a way of not adding it to the list, but have come unstuck.

Any advice would be greatly appreciated!

A note to Till - I'm sorry I still haven't gotten round to doing the translation tool. I've been slack! Life has been quite busy lately, and I've not been getting enough sleep. I understand if you get someone else to do this job, but if not, I will get round to it just as soon as I get my life back :-)

Thanks!
Ben

falko 1st March 2006 10:01

Did you create a web site for main-domain.com on server 2? Then go to that web site in ISPConfig and select "External Mailserver" for that domain.

benbalbo 1st March 2006 12:19

Thanks Falko - worked perfectly. Don't know why I didn't think of it myself...

benbalbo 13th March 2006 08:47

Well I'm not sure why, but this domain is still marked as using an external mail server, but it keeps getting added to the local-host-names file. I'm starting to look into why, but if anyone has any ideas, I'd appreciate them.

Will post back if I find out the answer.

till 13th March 2006 09:52

Quote:

Originally Posted by benbalbo
Well I'm not sure why, but this domain is still marked as using an external mail server, but it keeps getting added to the local-host-names file. I'm starting to look into why, but if anyone has any ideas, I'd appreciate them.

Do you have more the one web (subdomains) of this domain? Then please check all of these wbstes if they cotain this domain as co-domain and set these co-domaibs to external too.

benbalbo 13th March 2006 12:11

Thanks for the tip Till. It helped me debug the problem.

I checked the isp_isp_web table and found that the optionen_local_mailserver was linked to the main web name, not the co-domains.

If I edit the main web for www.main-domain.com and remove www from the hostname (leave it blank) and save, then it works - main-domain.com disappears from the local-host-names file. I need to be careful though, because when I edit this web agian, the blank hostname box defaults to www.

So in effect what I'm experiencing is the inability to specify an external mail server for any FQDN other than the main domain for the site (co-domains don't affect local-host-names) and that setting hostname to blank in the ispconfig admin console leads it to default to www upon next save.

Is this intended? Is this fixed in the latest verion? (I haven't upgraded to the version of ISPConfig that came out a few weeks ago yet).

Thanks!
Ben

till 13th March 2006 12:17

In the ISPConfig interface, every co-domain has an options tab where you can set mailserver to external for this co-domain. This is independant from the "external mailserver" setting of the domain of the main website. Have you set mailserver to external on the option tab of all co-domains of the website?

benbalbo 14th March 2006 03:20

Thanks again Till, I wasn't aware of that tab :-)

Now I have another problem though - having made that change.

I have 10 clients who use theirname.main-domain.com and I've set up the site to have theirname as the host and main-domain.com as the domain name.

There are now many entries in isp_isp_domain with host NULL and domain main-domain.com. I've also noticed that if these clients wish to create an email address for themselves, it's set as @main-domain.com, not @theirname.main-domain.com

I presume that I have to put theirname.main-domain.com as the domain, and leave the hostname blank?

I'll try it and see what happens, but would like to know what the 'official' way os to set these up.

Thanks,
Ben

benbalbo 14th March 2006 03:32

Okay - putting the full names in as the domain name seems to have fixed it.

BB

till 14th March 2006 08:56

Quote:

Originally Posted by benbalbo
Thanks again Till, I wasn't aware of that tab :-)

Now I have another problem though - having made that change.

I have 10 clients who use theirname.main-domain.com and I've set up the site to have theirname as the host and main-domain.com as the domain name.

There are now many entries in isp_isp_domain with host NULL and domain main-domain.com. I've also noticed that if these clients wish to create an email address for themselves, it's set as @main-domain.com, not @theirname.main-domain.com

I presume that I have to put theirname.main-domain.com as the domain, and leave the hostname blank?

I'll try it and see what happens, but would like to know what the 'official' way os to set these up.

Thanks,
Ben


If you create a new website like user.domain.com, please check if ISPConfig created a new co-domain with empty host automatically. You must delete these automatically created co-domains. This is fixed in ISPConfig 2.2.0.


All times are GMT +2. The time now is 13:06.

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