|
RH8.0(PHP\apache\sendmail全是8。0自带的)。同样的安装,一台在区域网,一台在internet上。在局域网时,使用php的mail()函数发信后,用mailq察看,提示:看到有信件在/var/spool/mqueue ,之后立即在/var/spool/mail/root有信件,察看:the following address had permannet fatal errors <[email protected]> (reason: 550 host unknown)
局域网有一台windows机器用adsl上网,其他机器都通过此代理上网。这台linux server不知是否因为自己不能直接联internet, dns 服务不能正常工作,导致mail 无法发出。
另一台机器放在电信的机房,也是RH8.0,在我用mail()发出MAIL 后,用mailq看,提示:/var/spool/mqueue is empty 也没有发信给root,在 /var/spool/clientmqueue/下却有文件,
文件名为:qfh33Jv5Fg026975 用户为 smmsp 组为 smmsp
V6
T1049399825
K1049403521
N2
P120058
I8/7/261299
MDeferred: Connection timed out with www.domain.com.
Fbs
$_apache@localhost
${daemon_flags}c u
Sapache
[email protected]
MDeferred: Connection timed out with www.domain.com.
C:[email protected]
rRFC822; [email protected]
RPFD:[email protected]
H?P?Return-Path: <<81>g>
H??Received: (from apache@localhost)
by www.domain.com (8.12.5/8.12.5/Submit) id h33Jv5Fg026975;
Thu, 3 Apr 2003 11:57:05 -0800
H?D?Date: Thu, 3 Apr 2003 11:57:05 -0800
H?F?From: Apache <apache>
H?x?Full-Name: Apache
H?M?Message-Id: <[email protected]>
H??To: [email protected]
H??Subject: test from www.domain.com
上面的文件没有记载信件的内容,另有文件记录了信件的内容,不过,用户为 apache 组为:smmsp
上面文件中Connection timed out with www.domain.com. www.domain.com是我设的主机域名。该域名与目前该主机的ip不一致,我的/etc/hosts文件的内容如下:
127.0.0.1 www.domain.com www localhost.localdomain localhost
我不明白的是,在局域网安装时,/etc/hosts的内容不一样:
127.0.0.1 localhost.localdomain localhost
111.111.111.111 www.domain.com
111.111.111.111就是www.domain.com 的ip,这个ip不是现在我在线上机器的ip.
察看/var/log/maillog文件,看到许多
Apr 3 11:34:12 www sm-msp-queue[26832]: h33HWami026348: [email protected], ctladdr=apache (48/4, delay=02:01:36, xdelay=00:00:00, mailer=relay, pri=210058, relay=www.domain.com., dsn=4.0.0, stat=Deferred: Connection timed out with www.domain.com.
请问:我的sendmail出了什么问题?为何sendmail要去连接www.domain.com,这并不是我要发送的邮件[email protected]的域。而在区域网的机器,报告的错为je-solution.com域找不到(给root的信) |
|