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 March 2008, 19:27
brunus brunus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default Mailserver working on LAN, not outside it: DNS problem?

Hi,
I've a Perfect Ubuntu 6.06 configuration. The mailserver is perfectly working in my LAN, meaning that I can also send and receive emails from from all email accounts, even other than my domain's one.
When I try to use my domain's email address from outside the LAN, to receive or send, the mailserver mail.ecolefrancaise.bi is not reacheable.
I paste here below the output of the dig command, from inside the lan...

; <<>> DiG 9.4.1-P1 <<>> mail.ecolefrancaise.bi
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6743
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.ecolefrancaise.bi. IN A

;; ANSWER SECTION:
mail.ecolefrancaise.bi. 86400 IN A 192.168.1.1
mail.ecolefrancaise.bi. 86400 IN A 84.254.187.34

;; AUTHORITY SECTION:
ecolefrancaise.bi. 86400 IN NS efbujagateway.ecolefrancaise.bi.
ecolefrancaise.bi. 86400 IN NS dns1.nic.bi.

;; Query time: 1 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Thu Mar 6 20:19:42 2008
;; MSG SIZE rcvd: 123

...and from outside of it

; <<>> DiG 9.4.1-P1 <<>> mail.ecolefrancaise.bi
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33088
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.ecolefrancaise.bi. IN A

;; Query time: 829 msec
;; SERVER: 193.219.193.190#53(193.219.193.190)
;; WHEN: Thu Mar 6 20:18:08 2008
;; MSG SIZE rcvd: 40

In the DNS control panel I've set a A Record for mail.ecolefrancaise.bi for both the private IP 192.168.1.1 and the public one 84.254.187.34
and a MX record mail.ecolefrancaise.bi

efbujagateway.ecolefrancaise.bi is my hostname in postfix's main.cf file

I need a configuration that allows me to use my domain's email addresses outside the LAN as well as within the LAN, in case internet connection is down.

What's wrong?

thanks,

Paolo

Last edited by brunus; 6th March 2008 at 19:40.
Reply With Quote
Sponsored Links
  #2  
Old 7th March 2008, 16:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Code:
server2:~# dig ns ecolefrancaise.bi

; <<>> DiG 9.3.4 <<>> ns ecolefrancaise.bi
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62320
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;ecolefrancaise.bi.        IN   NS

;; ANSWER SECTION:
ecolefrancaise.bi.      3591    IN    NS        ns1.nic.bi.
ecolefrancaise.bi.      3591    IN    NS        cni1.cbinf.com.

;; ADDITIONAL SECTION:
cni1.cbinf.com.         172790  IN    A 196.2.12.200

;; Query time: 28 msec
;; SERVER: 213.191.92.84#53(213.191.92.84)
;; WHEN: Fri Mar  7 18:20:17 2008
;; MSG SIZE  rcvd: 101

server2:~#
Are these your own name servers?
__________________
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
  #3  
Old 7th March 2008, 16:39
brunus brunus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy

No Falko,
those are my registrars' ns servers.
My registrar is the burundian nic, responsible for the .bi domain.
They don't let their clients manage their own ns, like goDaddy does.
I only need mail.ecolefrancaise.bi to be reacheable from outside the LAN. That's all.

Paolo

PS
I've just realised that I've written dns1.nic.bi whereas your dig gave ns1.nic.bi
I've just copied what I got here from their whois: http://tinyurl.com/22mlau

Last edited by brunus; 7th March 2008 at 17:03.
Reply With Quote
  #4  
Old 8th March 2008, 20:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

You must then create DNS records for mail.ecolefrancaise.bi on your registrar's name servers.
__________________
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
  #5  
Old 9th March 2008, 21:12
brunus brunus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Falko,
is this true even if the mail.ecolefrancaise.bi mailserver is on the same machine having the public ip associated to www.ecolefrancaise.bi?

Would it be easier to just reconfigure postfix to be active on www.ecolefrancaise.bi?

thanks,

brunus
Reply With Quote
  #6  
Old 10th March 2008, 08:57
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,456
Thanks: 813
Thanked 5,223 Times in 4,093 Posts
Default

Yes, thats the case even if the www subdomain is on the same server. I recommend that you create the A-Record in the nameserver of your registrar.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
brunus (11th March 2008)
  #7  
Old 11th March 2008, 08:43
brunus brunus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
 
Thumbs up

Thank you guys,
it worked!

Paolo
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
New Site Created, but DNS not working torqhost Installation/Configuration 2 1st September 2007 15:11
FTP very slow in LAN, "fast" from WAN-> Firewall problem? Pasco Server Operation 6 7th March 2006 15:17
Internet/lan-only lan working Nejko Installation/Configuration 39 19th January 2006 15:32
DNS issue and user's alias problem rosa hsiao General 3 2nd November 2005 10:03
DNS Config Problem bolinux Installation/Configuration 27 20th August 2005 16:12


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


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