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 6th July 2007, 21:17
twist85 twist85 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default Domain names and DNS, what should i do?

I currently installed a webserver (incl ispconfig) using the perfect setup guide for ubuntu. The webserver works fine, however i cant get my head around some concepts and i hope someone here can get me out of my confusion.

I am hosted on a VPS and i got 1 ip adress. Now i want to host two totally different websites on that same server. I want both of those websites to have email adresses (as much as i want, and ofcourse they should have the same domain as the corresponding website) also i would like to have the ability to create subdomains that point to a particular directory or url (e.g. forum.example.com).

Will i be able to do all that by letting some company register the domain name i want, and let them link it to my server's ip address? Or do i need to start using my own DNS server... I dont know anything about DNS so that would be a bad idea, any tips if i have to use it?

The most import is that there is a website and people can get an email address which they can use to send and receive. My hosting service provider decided to take a month holiday so i wont be getting help from them !

I would like to thank the people here on this forum for providing a lot of information that already has helped me solve numerous problems! I know my question is kinda dumb but im still a beginner!

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 7th July 2007, 17:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by twist85
Will i be able to do all that by letting some company register the domain name i want, and let them link it to my server's ip address?
Yes (as long it's an A or CNAME record and not some domain forward).

Quote:
Originally Posted by twist85
Or do i need to start using my own DNS server...
No.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
twist85 (7th July 2007)
  #3  
Old 7th July 2007, 22:05
twist85 twist85 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks for the answer.
I now have another problem with the email... I bought a domainname (digital-concept.nl) and made A records for the website and mail.
My domain is active. But when i send an email to a mailaddress i created with ispconfig, something very weird happens. I get this error bounced back:


Quote:
The Postfix program

<web2_jeroen@digitalconcept.nl> (expanded from
<jeroenpfeil@digital-concept.nl>): host mx-cluster2.one.com[195.47.247.173]
said: 550 <web2_jeroen@digitalconcept.nl>: Recipient address rejected: User
unknown in relay recipient table (in reply to RCPT TO command)

Final-Recipient: rfc822; web2_jeroen@digitalconcept.nl
Original-Recipient: rfc822; jeroenpfeil@digital-concept.nl
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host mx-cluster2.one.com[195.47.247.173] said: 550
<web2_jeroen@digitalconcept.nl>: Recipient address rejected: User unknown
in relay recipient table (in reply to RCPT TO command)
I have two domains, one is digitalconcept.nl which currently points to another server. I was messing arround with that address a couple of times so i might have set something wrong in ispconfig.. I have no clue what is happening here.

Also when i use dnsstuff.com to give me a dnsreport on digital-concept.nl i get this at the email section:

Quote:
WARNING: One or more of your mailservers is claiming to be a host other than what it really is (the SMTP greeting should be a 3-digit code, followed by a space or a dash, then the host name). If your mailserver sends out E-mail using this domain in its EHLO or HELO, your E-mail might get blocked by anti-spam software. This is also a technical violation of RFC821 4.3 (and RFC2821 4.3.1). Note that the hostname given in the SMTP greeting should have an A record pointing back to the same server. Note that this one test may use a cached DNS record.

mail.digital-concept.nl claims to be host digitalconcept.nl [but that host is at 195.47.247.91 (may be cached), not 84.244.182.118].
I gues i did something wrong, but i have no clue what so anybody can tell me what is causing this problem???

thanks!!!

Ps. i can send and receive (not that there is anything to receive but it connects successfully) mails using an email client and the mailaddress i made, i just cannot send mails from other email address (i tried gmail and others) to the new email....
Reply With Quote
  #4  
Old 8th July 2007, 02:59
twist85 twist85 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Ok, after puzzeling for several painfull hours, i got it working now. I reconfigured postfix but still things are not 100% clear to me. I specified as host digital-concept.nl (in the postfix configuration) but what if i create a domain mynewdomain.nl and add some mail accounts using ispconfig... will it use digital-concept.nl for something or what?
Reply With Quote
  #5  
Old 8th July 2007, 10:02
chuckl chuckl is offline
Senior Member
 
Join Date: May 2007
Location: Uxbridge, Middlesex, UK
Posts: 166
Thanks: 1
Thanked 20 Times in 20 Posts
Default

You don't state whether your customers will be using your server to send and receive their mail, i.e. as their main mail server, but I am assuming that this will be the case.
Firstly, when you create a domain in Ispconfig, entries are added to /etc/postfix/local-host-names so that Postfix can verify that it should send and receive mail for that domain, and that it is not a spam relay attempt. It will however identify itself by the name given by your when you set up Ispconfig. e.g. server1.digital-concept.nl.
However, this does not mean that the rest of the internet believes that. In order to make your server 'visible' as a mail server for these domains, you firstly need to ensure that you have an explicit DNS entry for your server in your domain, with your domain registrar.
next, when you or your custoimers register domains, in addition to any A or CNAME record pointing to the website, you should create an MX mail record pointing at your server.
Many registrars automatically create MX records pointing at their mail servers, and these can be left or deleted, your choice. If left, you need to set the priorities correctly, as each MX record has a 'priority', with the LOWEST value being the main mail server. Any of the higher priority number servers will accept mail for the domain, but will forward it to the main one.
e.g.
Your customer registers mydomain.com, and the registrara creates 2 MX records

mail1.myreg.com. MX 20
mail2.myreg.com. MX 10

you or your customer should then add

server1.digital-concept.nl. MX 5

which specifies your server as the main mail server for that domain.

For gmail, yahoo, hotmail and similar, you should also create an SPF record for the domain, specifying your server as the mail sender for that domain
Reply With Quote
The Following User Says Thank You to chuckl For This Useful Post:
twist85 (8th July 2007)
  #6  
Old 8th July 2007, 10:27
twist85 twist85 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks for that clear answer, i finally understand how it works now!!! I appreciate your help!
Reply With Quote
  #7  
Old 8th July 2007, 10:40
chuckl chuckl is offline
Senior Member
 
Join Date: May 2007
Location: Uxbridge, Middlesex, UK
Posts: 166
Thanks: 1
Thanked 20 Times in 20 Posts
Default

You're welcome, glad to be able to help. Doesn't hurt that I have a very similar setup...
Couple of things that I left out, firstly, the MX records HAVE to be a fully qualified domain name (FQDN) - server1.mydomain.com, not an IP address, and the final 'dot', 'period', or 'full stop' at the end of the FQDN in the MX record is important - it is server1.mydomain.com. NOT server1.mydomain.com
Reply With Quote
  #8  
Old 8th July 2007, 10:55
twist85 twist85 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by chuckl
You're welcome, glad to be able to help. Doesn't hurt that I have a very similar setup...
Couple of things that I left out, firstly, the MX records HAVE to be a fully qualified domain name (FQDN) - server1.mydomain.com, not an IP address, and the final 'dot', 'period', or 'full stop' at the end of the FQDN in the MX record is important - it is server1.mydomain.com. NOT server1.mydomain.com
Ok ill keep that in mind! Thanks again!
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
One Domain Name Not Responding Authoritatively bluethunder82 Installation/Configuration 5 9th September 2007 16:09
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52
Moved Server; Changed IPs; Problem with DNS recognizing Domain name Dimitriy Installation/Configuration 2 8th February 2007 09:56
Dns question Mahir Installation/Configuration 48 14th November 2006 10:19


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


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