LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   telnet xxxxxxxx.com 25 (https://www.linuxquestions.org/questions/linux-networking-3/telnet-xxxxxxxx-com-25-a-58388/)

ssrikant 05-06-2003 10:59 AM

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

AltF4 05-06-2003 11:51 AM

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 ?

ssrikant 05-06-2003 12:22 PM

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

dorian33 05-06-2003 02:42 PM

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?

ssrikant 05-06-2003 03:11 PM

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

dorian33 05-06-2003 04:00 PM

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 :)

ssrikant 05-06-2003 04:15 PM

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

ssrikant 05-06-2003 05:08 PM

ne takers
-srikant

dorian33 05-07-2003 01:16 PM

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


ssrikant 05-07-2003 03:27 PM

currently my bind is down or dead does that effect my mailserver

AltF4 05-07-2003 04:10 PM

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

ssrikant 05-07-2003 06:31 PM

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


All times are GMT -5. The time now is 09:10 AM.