LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2003, 10:59 AM   #1
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Rep: Reputation: 15
telnet xxxxxxxx.com 25


hi,

The problem with my mailserver is that i am able to send mails to all but none returned there is no problem with the procmail as i am able to receive mesg of mailerdeamon to the mails sent frm a user in my mailserver to another user in my mailserver
I think this has something to do with the dns

here is how it goes



when i execute the above instruction

i get connected and following which i do...

helo xxxxxxxxxxxxxxxxxx.com
250 xxxxxxxxxxxxxx.com hello IDENT:root@xxxxxxxx.com [10.1.13.6],pleased to meet you
mail from: <root@xxxxxxxxx.com>
250.2.1.0 <root@xxxxxxxxx.com>......sender ok
rcpt to: <root@xxxxxxxxx.com>
550.5.1.1 <root@xxxxxxxxx.com> ....unknown user
rcpt to: <root@mail.xxxxxxxxx.com>
250.2.1.5 <root@xxxxxxxxx.com> .......recipient ok
data
354 Enter mail,end with "." on a line by itself
subject:test
sending mails to different domains but not able to receive any
.
250.2.0.0 h45667788080 Message accepted for delivery


##############################
the above seems to have some problem with my dns as i have my mailserver as mail.xxxxxxx.com and when i say user@mail.xxxxxxx.com it recognizes it as shown by recipient ok (above) but when i say user@xxxxxx.com is sayz unknown user
although the message is accepted this message is not delivered to the user@mail.xxxxxx.com and ends up with a new message as mailer deamon on the sender mail box....

any leads or directions

-srikant
 
Old 05-06-2003, 11:51 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
is "xxxxxxxx.com" domain registered correctly ?
does the MX recoed in DNS point to your mail server ?
id your mail server protected by a firewall ?
 
Old 05-06-2003, 12:22 PM   #3
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
well if i enter xxxxxx.com and mail.xxxxx.com both result the same ....and the domain is register and i have stopped the fire wall
 
Old 05-06-2003, 02:42 PM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
1. you did not post the name of your MTA (sendmail, qmail, another one?)
2. clarify the telnet test you have done::
a. you were able to send this way to root - not clear is if the telnet was running on another or same machine as MTA was running?
b. if on the same machine - what about the case when you are trying to do it from another box?
3. have you done similar two tests (first from the MTA box, the second from another one) but sending to 'user@....' ?
if so both ones were unsuccessful?
 
Old 05-06-2003, 03:11 PM   #5
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
1.using sendmail as my MTA
2.a.i was able to send at root to yahoo and other mailservers and as well as user too other domains telnet and MTA are both running on the same machine
b.Was successful in send mails to other domains but not able to receive them,lately i see mails from other domains sent to users in my domain all posted at

/var/spool/mqueue

although i am currently seeing mails posted at /var/spool/mqueue only if the sender sends it addressed as user@mail.mydomain.com
and not as user@mydomain.com..i wud like to receive both the ways..i.e user@mydomain.com and user@mail.mydomain.com

3.I see mails being posted at /var/spool/mqueue on the mail sever but not on the individual users mail boxs
 
Old 05-06-2003, 04:00 PM   #6
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
RE 2: I was asked about sending to root@mail.mydomain.com and root@mydomain.com rather then sending to root@any_other_domain :) done from MTA and another box.

But I see you are able to get the mails but only to ....@mail.mydomain.com.
Unfortunately I haven't use sendmail for a lot of time (qmail is better and bug-free) so I do not remember to much but I believe your problem is a DNS matter rather that MTA.
I assume you are using BIND. I am not sure I can help more since I am using Djbdns (bug-free) so -again- I've forgotten a lot about configuring BIND but post your DNS config files maybe I will be able to do something with it :)
 
Old 05-06-2003, 04:15 PM   #7
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
the follwoing is the content of my dns file i have changed my domain name and my host computer name for obvious reasons apart from that every thing is as same as in my dns conf file
hope this helps




$TTL 43200
@ IN SOA mydomain.com. hostmaster.mydomain.com. (
2003041707 ; serial
1H ; refresh
15 ; retry
14D ; expire
12H ; default_ttl
);

mydomain.com. A 12.8.12.6
myhost CNAME mydomain.com.
NS myhost
MX 5 myhost
;

localhost A 127.0.0.1;
mail A myhost
ftp A myhost
 
Old 05-06-2003, 05:08 PM   #8
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
ne takers
-srikant
 
Old 05-07-2003, 01:16 PM   #9
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Note: you HAVE NOT mentioned which dns server you are using. Posted dns file looks very similar to named one but I do not understand why it consists 'mydomain...' along with 'local' declarations.

Anyway I assume you are using BIND
AFAIR for zone 'mydomain.com' you should create the following file:
Code:
@           IN SOA mydomain.com. hostmaster.mydomain.com. (
                      2003041707   ;serial
                      1H           ;refresh
                      15           ;retry
                      14D          ;expire
                      12H )        ;default_ttl
            IN MS myhost
            IN MX mail
myhost      IN A 12.8.12.6
mail        CNAME myhost
 
Old 05-07-2003, 03:27 PM   #10
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
currently my bind is down or dead does that effect my mailserver
 
Old 05-07-2003, 04:10 PM   #11
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
probably :-)

try to find out if other nameservers on the net "know" your MX

e.g.

nslookup -type=MX mydomain.com. ns.anywhere.net

try different "ns.anywhere.net" addresses (your provider's NS, etc)

if tkey "know" your MX ask someone to telnet to your mailserver SMTP port from outside and check the results
 
Old 05-07-2003, 06:31 PM   #12
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
when i do the telnet mydomain.com 25 and all the above stuff (post1)
when i enter :

rcpt to:<root@mail.mydomain.com>250.2.1.5

i get:

<root@mail.mydomain.com> .......recipient ok (will queue)
after completeing the restof the procedure

the message is being queue at /var/spool/mqueue (mandrake9.0)
once this is done when i flush the queue i get
the following

$sendmail -q -v

Running /var/spool/mqueue/h47Mnde2002461 (sequence 1 of 1)
mail.mydomain.com:Name sever timeout
<root@mail.mydomain.com>...transient parse error message queued for future delivery



i dont understand head and tail from this and iam tired and i have lost all hope of seeing my sever running any directions is highly appreciated
 
  


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
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 12:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet IP seb77 Linux - Newbie 4 10-15-2003 03:15 PM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 06:34 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:07 PM.

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