LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-25-2004, 05:13 AM   #1
exper
Member
 
Registered: Jul 2003
Location: China
Distribution: Redhat
Posts: 48

Rep: Reputation: 15
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25


my Sendmail server can not send and receive mail
I login as root
I try send mail at shell

# mail dowell@exper.dynserv.com
Subject: test
Test email at shell
.
cc: root@exper.dynserv.com

I think the mail has been sent out.
I setting dowell@exper.dynserv.com in Mozilla mail
my Mozilla says there is no message on server
after that I use Mozilla to send test mail, but Mozilla always ask me password, i'm sure I enter correct password¡£so I click cancel input password button.. I get one error message£º
Sendmail of message failed
The message could not be sent because connecting to SMTP server 192.168.1.5 failed. The server
May be unavailable or refusing SMTP connections, Please verify that your SMTP server setting is
Correct and try again or else contact your network administrator.

I don't know what's matter on my box.

I check sendmail config file
# grep -v '^dnl' sendmail.mc
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5
CRAM-MD5 LOGIN PLAIN')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o
/etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o
/etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.5, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

a strange case is I can not telnet localhost 25 but can telnet dowell.exper.dynserv.com

[root@Dowell mail]# telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[root@Dowell mail]# telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[root@Dowell mail]# telnet localhost.localdomain 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[root@Dowell mail]# telnet dowell 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
[root@Dowell mail]# telnet dowell.exper.dynserv.com 25
Trying 192.168.1.5...
Connected to dowell.exper.dynserv.com (192.168.1.5).
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.12.10/8.12.10;
Tue, 24 Feb 2004 22:33:48 +0800

sendmail access file:
/etc/mail/access
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
exper.dynserv.com RELAY
192.168.1 RELAY

/etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
dowell
localhost.localdomain
localhost
[127.0.0.1]
exper.dynserv.com
dowell.exper.dynserv.com

my DNS file are:
/var/named/192.168.1.rev
$ttl 38400
1.168.192.in-addr.arpa. IN SOA Dowell.exper.dynserv.com. dowell.exper.dynserv.com. (
1077457077
10800
3600
604800
38400 )
1.168.192.in-addr.arpa. IN NS Dowell.exper.dynserv.com.
5.1.168.192.in-addr.arpa. IN PTR dowell.exper.dynserv.com.


/var/named/exper.dynserv.com.hosts
$ttl 38400
exper.dynserv.com. IN SOA Dowell.exper.dynserv.com. dowell.exper.dynserv.com. (
1077454711
10800
3600
604800
38400 )
exper.dynserv.com. IN NS dowell.exper.dynserv.com.
dowell.exper.dynserv.com. IN A 192.168.1.5
exper.dynserv.com. IN MX 5 dowell.exper.dynserv.com.
ftp.exper.dynserv.com. IN CNAME dowell.exper.dynserv.com.
mail.exper.dynserv.com. IN CNAME dowell.exper.dynserv.com.


Anybody can tell me what shall i do?????
need any other file please let me know

Waiting....................... online

Last edited by exper; 02-25-2004 at 05:14 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet localhost problem SchwipSchwap Linux - Newbie 10 03-15-2011 01:21 AM
telnet localhost 25 trouble papitu76 Linux - Software 9 12-23-2008 02:21 AM
Telnet problem and localhost zillah Linux - Wireless Networking 6 06-07-2005 02:34 PM
Telnet localhost and telnet IP seb77 Linux - Newbie 4 10-15-2003 03:15 PM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 01:20 PM


All times are GMT -5. The time now is 11:24 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 Google+: linuxquestions
Open Source Consulting | Domain Registration