kenford 发表于 2008-5-26 16:14:48

关于sendmail修改域名的问题

使用# sendmail -d0 < /dev/null得出:

# sendmail -d0 < /dev/null
Version 8.14.2
Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7
                NAMED_BIND NETINET NETUNIX NEWDB PH_MAP PIPELINING SASLv2 SCANF
                STARTTLS USERDB XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = localhost
(canonical domain name) $j = localhost.localdomain
         (subdomain name) $m = localdomain
            (node name) $k = test
========================================================

Recipient names must be specified

如果想修改$w,$j,$m怎么修改?谢谢!

kenford 发表于 2008-5-26 20:42:32

可以使用
hostname 主机名
来实现,
现在的问题是,有时可以发大部分时候不可以,以下是日志报错信息:
May 26 20:42:20 test sendmail: m4QCgKT6028787: to=starndawntest2@sohu.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30048, relay= , dsn=2.0.0, stat=Sent (m4QCgKWp028788 Message accepted for delivery)
May 26 20:42:21 test sendmail: m4QCgKWp028788: to=<starndawntest2@sohu.com>, ctladdr=<root@test.cn> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120309, relay=sohumx.h.a.sohu.com. , dsn=5.5.2, stat=Service unavailable

dylgyss 发表于 2008-6-2 11:46:11

呵呵

:)
QQ群32331741技术交流一下inux与常用邮局技术!欢迎加入!现在还没有管理员哦!

h_w_g_ 发表于 2008-8-1 11:21:47

可要sendmail的配置文件/etc/mail/sendmail.mc中更改!
再用命令 m4 sendmail.mc>sendmail.cf
页: [1]
查看完整版本: 关于sendmail修改域名的问题