LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-05-2010, 07:42 AM   #16
HernanM
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0

hmmm.... maybe the problem be the masquerade...
 
Old 11-05-2010, 12:24 PM   #17
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.2, current
Posts: 461

Rep: Reputation: 78
I can see that you get response for DNS query from the PC of 10.x.x.x. I suppose that this is one of your Virtual PCs which runs DNS on it. What OS is on this PC? Have you access to this DNS server?
There should be something like this:
Code:
$ORIGIN example.com.     ;
$TTL 1h                  ;
example.com.  IN  SOA  ns.example.com. username.example.com. (
              2007120710 ; serial number of this zone file
              1d         ; slave refresh (1 day)
              2h         ; slave retry time (2 hours)
              4w         ; slave expiration time (4 weeks)
              1h         ; minimum caching time (1 hour)
              )
example.com.  NS    ns   ; ns.example.com is a nameserver for example.com
example.com.  NS    ns.somewhere.example.  ; ns.somewhere.example is a backup nameserver for example.com
example.com.  MX    10 mail.example.com.  ; mail.example.com is the mailserver for example.com
example.com.  A     10.0.0.1              ; IPv4 address for example.com
ns            A     10.0.0.2              ; IPv4 address for ns.example.com
www           CNAME example.com.          ; www.example.com is an alias for example.com
mail          A     10.0.0.3              ; IPv4 address for mail.example.com,
                                          ;  any MX record host must be an address record
                                          ; as explained in RFC 2181 (section 10.3)
Did you manage this zonefile for your domains? If yes can you post it?

I would like to ask you to try send mail for user@org.com and not for user@org(dot) . But please be sure that you won't access the public net where the domain org.com almost certainly exist! I suppose that anything in your test network won't get to the real internet!
This test will end up with the same result but I wish to have the logs from that test. The logs from maillog and from the Virtual PC where the DNS runs (10.x.x.x) there should be some warnings or errors.

The test we start here should take several steps. Would you like to try them?

The first thing I wish to get work, that when you make a nslookup you get this:
Code:
root@master:/# nslookup
> set type=mx
> ar.com
Server:         10.3.0.2
Address:        10.3.0.2#53

Non-authoritative answer:
ar.com      mail exchanger = 10 mail.ar.com.


Authoritative answers can be found from:
mail.ar.com  internet address = 192.168.x.x
And not this:
Code:
root@master:/# nslookup
> set type=mx
> ar
Server:         10.3.0.2
Address:        10.3.0.2#53

Non-authoritative answer:
ar      mail exchanger = 10 mail.ar.


Authoritative answers can be found from:
mail.ar  internet address = 192.168.x.x
Can we try this first step?

Last edited by hua; 11-05-2010 at 12:49 PM.
 
Old 11-06-2010, 09:01 AM   #18
HernanM
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Original Poster
Rep: Reputation: 0
The DNS server and mail server are in the same machine.

ar and org domains are independent, one is not a subdomain of another

Quote:
But please be sure that you won't access the public net where the domain org.com almost certainly exist! I suppose that anything in your test network won't get to the real internet!
The topology is not connected to internet, the machines have to work between them. So other domains as ar.com doesn´t exist.

DNS zone file of org domain:

Code:
$TTL 825225
@       IN      SOA     dnsorg.org.    root.org.       (
                        2008090319
                        10800
                        900
                        604800
                        86400
)

                IN      NS      dnsorg
                IN      A       10.3.0.2
                IN      MX      10      mail

dnsorg          IN      A       10.3.0.2
mail            IN      A       10.3.0.2
pc1             IN      A       10.3.0.3
Reverse zone file:
Code:
$TTL    825225
@       IN      SOA     dnsorg.org.    root.org.       (
                2008082904
                10800
                900
                604800
                86400
)

                IN      NS      dnsorg.org.

2.0             IN      PTR     dnsorg.org.
2.0             IN      PTR     mail.org.
3.0             IN      PTR     pc1.org.
Sendmail log when send an email from u1@org to u1@ar

Code:
Nov  6 13:39:50 mail sm-mta[812]: NOQUEUE: connect from mail.org [10.3.0.2]
Nov  6 13:39:50 mail sm-mta[812]: AUTH: available mech=CRAM-MD5 OTP DIGEST-MD5 PLAIN LOGIN, allowed mech=EXTERNAL LOGIN PLAIN
Nov  6 13:39:50 mail sm-mta[812]: oA6DdoGO000812: Milter: no active filter
Nov  6 13:39:50 mail sm-mta[812]: oA6DdoGO000812: --- 220 mail.org ESMTP Sendmail 8.14.3/8.14.3; Sat, 6 Nov 2010 13:39:50 GMT
Nov  6 13:39:58 mail sm-mta[812]: oA6DdoGO000812: <-- helo dnsorg.org
Nov  6 13:39:58 mail sm-mta[812]: oA6DdoGO000812: --- 250 mail.org Hello mail.org [10.3.0.2], pleased to meet you
Nov  6 13:40:04 mail sm-mta[812]: oA6DdoGO000812: <-- mail from: u1@org
Nov  6 13:40:04 mail sm-mta[812]: oA6DdoGO000812: --- 250 2.1.0 u1@org... Sender ok
Nov  6 13:40:09 mail sm-mta[812]: oA6DdoGO000812: <-- rcpt to: u1@ar
Nov  6 13:40:09 mail sm-mta[812]: oA6DdoGO000812: --- 250 2.1.5 u1@ar... Recipient ok
Nov  6 13:40:10 mail sm-mta[812]: oA6DdoGO000812: <-- data
Nov  6 13:40:10 mail sm-mta[812]: oA6DdoGO000812: --- 354 Enter mail, end with "." on a line by itself
Nov  6 13:40:14 mail sm-mta[812]: oA6DdoGO000812: from=u1@org, size=11, class=0, nrcpts=1, msgid=<201011061340.oA6DdoGO000812@mail.org>, proto=SMTP, daemon=MTA, relay=mail.org [10.3.0.2]
Nov  6 13:40:14 mail sm-mta[814]: oA6DdoGO000812: to=u1@ar, ctladdr=u1@org (1000/100), delay=00:00:05, xdelay=00:00:00, mailer=esmtp, pri=120011, relay=ar, dsn=5.1.2, stat=Host unknown (Name server: ar: host not found)
Nov  6 13:40:14 mail sm-mta[812]: oA6DdoGO000812: --- 250 2.0.0 oA6DdoGO000812 Message accepted for delivery
Nov  6 13:40:14 mail sm-mta[814]: oA6DdoGO000812: oA6DeEGO000814: DSN: Host unknown (Name server: ar: host not found)
Nov  6 13:40:14 mail sm-mta[814]: oA6DeEGO000814: to=u1@org, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31297, dsn=2.0.0, stat=Sent
Nov  6 13:40:14 mail sm-mta[814]: oA6DeEGO000814: done; delay=00:00:00, ntries=1
Nov  6 13:40:14 mail sm-mta[814]: oA6DdoGO000812: done; delay=00:00:05, ntries=1
Nov  6 13:40:15 mail sm-mta[812]: oA6DdoGP000812: <-- quit
Nov  6 13:40:15 mail sm-mta[812]: oA6DdoGP000812: --- 221 2.0.0 mail.org closing connection
DNS log file when send an email from u1@org to u1@ar

Code:
06-Nov-2010 13:40:04.866 queries: client 10.3.0.2#33302: query: org.org IN A +
06-Nov-2010 13:40:09.232 queries: client 10.3.0.2#37596: query: ar.org IN A +
06-Nov-2010 13:40:14.238 queries: client 10.3.0.2#41526: query: ar.org IN MX +
06-Nov-2010 13:40:14.239 queries: client 10.3.0.2#38338: query: ar.org IN A +
DNS log file when do host ar
Code:
06-Nov-2010 13:46:23.581 queries: client 10.3.0.2#49026: query: ar IN A +
06-Nov-2010 13:46:23.583 queries: client 10.3.0.2#58017: query: ar IN AAAA +
06-Nov-2010 13:46:23.584 queries: client 10.3.0.2#59893: query: ar IN MX +
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail MX record problem hiteshdarji Linux - Newbie 5 03-05-2010 07:38 AM
Sendmail not sending to internet email addresses wstclair Linux - Newbie 1 03-21-2008 09:39 AM
sendmail - send email on different IP addresses dalemcd Linux - Newbie 1 01-17-2008 02:00 PM
sendmail smtp addresses dskny Linux - Software 2 01-13-2004 08:32 PM
Problem using Sendmail to email certain addresses sethen Linux - Networking 1 11-19-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration