Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th September 2006, 13:29
piers piers is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Running ISPConfig without the mail server

Is it possible to install ISPConfig without SMTP/POP/IMAP as I have a dedicated mail server which handles all my domains mail.

How easy is it to configure ISPConfig so that the MX record for all domains handled by ISPConfig point to my external mail server automaticaly? Is there somewhere in the config file that lets you set these as default values?

Can anyone show me an example?
Thank you!!
Reply With Quote
Sponsored Links
  #2  
Old 13th September 2006, 19:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Quote:
Originally Posted by piers
Is it possible to install ISPConfig without SMTP/POP/IMAP as I have a dedicated mail server which handles all my domains mail.
The installer checks for the presence of a smtp and pop3 daemon. But you may stop the smtp / pop3 and imap after you installed ISPConfig.

Quote:
How easy is it to configure ISPConfig so that the MX record for all domains handled by ISPConfig point to my external mail server automaticaly? Is there somewhere in the config file that lets you set these as default values?
You can not set them automatically, but you can set mailserver to external in the website and co-domain settings and then create a MX record that points to your external mailserver.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 14th September 2006, 11:59
oxxmoxx oxxmoxx is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Good morning,

I have another question for this topic. My intention is to separate mail-services to another (mail-)server too.

Now the following idea: At "server_01" I will register all domains for web/mysql/ftp etc. For mail I will use in ispconfig "ext. Mailserver" as you described. At "server_mail" I will register the domains again and manage all users with their mailboxes.

The MX-record will be create either on server_01 or at the nameserver from the domainprovider.

I think/hope this construct will work - or isn't?

Greetz


p.s: for automation I could work with scripts for syncing the config-files as you described in another thread ... I have to consider ...
Reply With Quote
  #4  
Old 14th September 2006, 18:34
piers piers is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your help till, you confirmed what i thought.

oxxmoxx - at the domain registrar they are likely to offer their own DNS servers to use or let you use your own DNS server, if you use your own DNS then set the NS record at the registrar to point to your own ISPConfig machine and then you (or your customer) can do what you like with the DNS without having to ever bother the registrar again. i.e. point the MX record on ISPConfig to your mail server.

I would be handy for me to set global defaults on the MX record in ISPConfig to always point to a dedicated mail machine.
Reply With Quote
  #5  
Old 14th September 2006, 19:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by oxxmoxx
I think/hope this construct will work - or isn't?
Yes, that should work.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 6th June 2007, 16:31
meemu meemu is offline
Member
 
Join Date: Apr 2007
Posts: 39
Thanks: 2
Thanked 8 Times in 5 Posts
 
Default patch to allow default external ip records

I ran into a similar problem with having external mailservers but still wanting to create proper DNS zone files etc and even having them manageable through the DNS Manager.

I have hacked into the relevant parts of ISPConfig so that:

* add a custom field in sys - ISP Server (Management|Edit Form)
Name: server_custom_mailservers type: longText

* Patch to create default MX entries and the dep stuff for these

I wanted to post a simple diff but there's been quite a bit of development in that part so if you want to use this you have to do a manual patch (sorry):

This is a patch against 2.2.11 - /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php
Later versions, SVN are quite different but I can't yet patch against them. But have a look it should be quite obvious:

Code:
1049c1049,1079
<         if(!empty($mailserver)) {
---
>       # mimo hack for default external mx records
>       $mailservers = trim($server["server_custom_mailservers"]);
>       if(!empty($mailservers)) {
>               $userid = $go_info["user"]["userid"];
>               $groupid = $web["groupid"];
>               $type = 'a';
>               $parent = '';
>               $status = 1;
>               $title = '';
>               $mailservers_array = explode("\n",$mailservers);
>               foreach($mailservers_array as $mxline) {
>                       list($prio,$mailserver) = preg_split("/\s+/",$mxline);
>                       if(!is_numeric($prio)) // very basic sanity check
>                               continue;
>                       $sql = "INSERT INTO dns_mx (host,prioritaet,mailserver) VALUES ('','$prio','$mailserver')";
>                       $go_api->db->query($sql);
>                       $mx_doc_id = $go_api->db->insertID();
>                       $sql = "INSERT INTO dns_nodes (userid,groupid,parent,type,doctype_id,status,doc_id,title) VALUES ('1','$group                       id','$parent','$type','$mx_record_doctype_id','$status','$mx_doc_id','$title')";
>                       $go_api->db->query($sql);
>                       $mx_tree_id = $go_api->db->insertID();
>                       $status = 1;
>                       $parent_doctype_id = $dns_doctype_id;
>                       $child_doctype_id = $mx_record_doctype_id;
>                       $parent_doc_id = $dns_doc_id;
>                       $child_doc_id = $mx_doc_id;
>                       $parent_tree_id = $dns_tree_id;
>                       $child_tree_id = $mx_tree_id;
>                       $sql = "INSERT INTO dns_dep (userid,parent_doc_id,parent_doctype_id,parent_tree_id,child_doc_id,child_doctype                       _id,child_tree_id,status) VALUES ('$userid','$parent_doc_id','$parent_doctype_id','$parent_tree_id','$child_doc_id','$child_doctype_i                       d','$child_tree_id','$status')";
>                       $go_api->db->query($sql);
>               }
>         } else if(!empty($mailserver)) {
1218c1248
< ?>
\ No newline at end of file
---
> ?>
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
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 23:57.


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