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