LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-24-2009, 02:22 PM   #1
rtoney5
Member
 
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux-XFCE, Mint7, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 130

Rep: Reputation: 17
Question Will DNS "A" records need to be setup for each Client PC to talk to exim4 Server?


Hello:
Question, if I add 2 more client pcs to my network (Joe and Sam). Would I need to put Joe and Sam into "A" records below with their IP addresses into the zone files in addition to setting up their accounts in the Mail Server Machine running Exim4?

Or will Joe and Sam on separate machines be able to send mail internally in this network to each other because they will have mail accounts setup on the Exim4 Server Machine.?



Here's my setup for DNS...:

The named.conf file...:
zone "example.com" {
type master;
file "/etc/bind/myzones/db.example.com";
};

zone "0.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/myzones/db.192b";
};
======================

The Zone File...:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.example.com. root.example.com. (
7 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.example.com.
@ IN A 192.168.0.11
ns IN A 192.168.0.11

mail IN A 192.168.0.13

MX 10 mail.example.com.


==========================

The Reverse Zone File...:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.example.com. root.example.com. (
7 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
11 IN PTR ns.example.com.
12 IN PTR mail.example.com.
 
Old 11-24-2009, 03:13 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
Each client will need an ip address and depending on your setup they may require dns or may not. Personally I think it's a good idea to setup dns, but it isn't necessary in all cases.
 
Old 11-24-2009, 10:30 PM   #3
rtoney5
Member
 
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux-XFCE, Mint7, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 130

Original Poster
Rep: Reputation: 17
Hey Thanks. So I make sure I understand correctly, each client will need to be added to the 2 zone files in order for the exim4 Mail Server to receive the email for each client?

Zone..:
Joe IN A 192.168.0.14
Sam IN A 192.168.0.15

Rev zone file...:
14 IN PTR Joe.example.com.
15 IN PTR Sam.example.com.

Seems that using DNS for email involves alot more than for a webserver.
Like if I want to see www.example.com website in my network, the individual clients don't need to be added as "A" records in the zone files in order to access the website example.com. They just pull up www.example.com in their browser and they can see it because the DSN servers it up for them.

But it seems DNS needs the individual clients (lets say 20 or more client pcs if there were that many) to be added to the zone files. In addition to setting userId's up for the Exim4 server.

I was wondering if this is just the way it is with DNS setups when it comes to using an Email Server with it.

Is it possible to use NIS somewhere in this process. Perhaps DNS server can see the NIS maps. But I guess NIS needs to know the IPs of the individual clients as well. Just curious :-/
 
Old 11-24-2009, 11:32 PM   #4
naw_deepak
Member
 
Registered: Aug 2008
Posts: 35

Rep: Reputation: 15
It is not required to have A record in DNS if your clients need to send mails. You only need to make entry of your mail server as MX record. Your clients only need to do is to update their /etc/resolv.conf entry with the DNS holding MX (mail server) record.

Thanks,
Deepak
 
Old 11-25-2009, 12:30 PM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
It largely depends on how your server is setup, if your server rejects mail from hosts without a valid dns entry then yes you need to setup dns. If it doesn't then you don't necessarily need to setup dns although I think there are still benefits for doing so outside of a mail context and often inside it too
 
Old 11-27-2009, 12:42 PM   #6
rtoney5
Member
 
Registered: Oct 2007
Location: FL, US
Distribution: Ubuntu MintLinux-XFCE, Mint7, Parted Magic, PCOS OpenWorkstation, OpenSuse-11
Posts: 130

Original Poster
Rep: Reputation: 17
Ok thanks guys. Figured out that the Entries only needed to be added to my exim4 mail server. The "A" entries in the DNS zone files were not needed for each client PC. Like you mentioned above, I just configured my MUA (Evolution) to send and receive email.

Seems like my ISP are blocking any emails coming out of my exim4 Mail Server. They want everything to go through their smtp.blablah server. Bunch of baloney. They claim you have to sign up for their business account in order to send emails from your own email server. Bunch of crooks if you ask me, just another "Big Brother".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"no servers could be reached" - on my dns setup (fedora) redhatuser41104 Linux - Newbie 4 07-30-2008 11:12 AM
"No DNS records" error nesargha Linux - Server 2 01-19-2007 05:44 AM
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 03:05 AM
Easy setup for "DNS, DHCP, squid, qmail, samba, etc " mobassir Linux - Software 8 08-18-2004 08:31 AM
why cannot "talk" to others,since mesg is yes and disable = no(in /etc/xinetd.c/talk) whepin Linux - Newbie 0 12-31-2001 03:04 AM


All times are GMT -5. The time now is 03:21 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration