Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th January 2006, 18:54
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default Create MX record problems

Hallo :-)

Why "www MX 10 mydomain.com" when it should be "MX 10 (mail.)mydomain.com"?

In that way, www.dnsreport.com says me there are problems, it doesn't recognixe MX record.

This happens when I create a site and I chec create DNS and MX.

I modified the code of:
/home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php
line 976

from:

Code:
$domain = trim($server["server_domain"]);
$host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id");
$host = trim($host['web_host']);
to:

Code:
$domain = 'mail.'.trim($server["server_domain"]);
//$host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id");
//$host = trim($host['web_host']);
$host = '';
Am I in error?

Another question: is there a variable containing the customer's domain name? Then I could have "MX 10 mail.mycustomerdomain.tld and add a query like:

Code:
$sql = "INSERT INTO dns_a (host,ip_adresse) VALUES ('mail','$ip_adresse')";
$go_api->db->query($sql);
Thank you
Denis
Reply With Quote
Sponsored Links
  #2  
Old 20th January 2006, 19:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,466
Thanks: 813
Thanked 5,253 Times in 4,119 Posts
Default

When you create an MX record in ISPConfig DNS-Manager, leve the host field empty.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th January 2006, 22:53
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
When you create an MX record in ISPConfig DNS-Manager, leve the host field empty.
I don't mean the dns manager, I mean the ISP manager
In the ISP manager I have no form, the MX creation is done automatically.
Reply With Quote
  #4  
Old 20th January 2006, 22:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,466
Thanks: 813
Thanked 5,253 Times in 4,119 Posts
Default

Quote:
Originally Posted by ddelbia
I don't mean the dns manager, I mean the ISP manager
In the ISP manager I have no form, the MX creation is done automatically.
The ISP-Manager is only a shortcut for the DNS-Manager. Go to the DNS-Manager and change the record accordingly to my post.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 22nd January 2006, 13:59
ddelbia ddelbia is offline
Member
 
Join Date: Dec 2005
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till
The ISP-Manager is only a shortcut for the DNS-Manager. Go to the DNS-Manager and change the record accordingly to my post.
Anyway, the code that i posted up here, seems to work, then it's ok
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with groups/grpconv linuxfast General 28 21st April 2008 09:35
phpmyadmin can create a second database for 1 database plans? danf.1979 General 1 29th December 2005 13:29
Question about MX record for new site Rocky Installation/Configuration 2 1st December 2005 22:58
Problems with postfix-mysql Pelle Installation/Configuration 39 13th November 2005 23:25
Install stopped at: create clamav.tar.gz domino Installation/Configuration 2 16th August 2005 06:36


All times are GMT +2. The time now is 07:29.


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