我试图发送邮件到根@本地主机,但无论我尝试它不起作用。 我总是得到DNS查找错误:
Dec 20 10:08:56 HD-T2597CL sendmail[4408]: nBKF8uEu004408: from=root@Server1, size=451, class=0, nrcpts=1, msgid=<1261321735.4404@Server1>, relay=root@localhost Dec 20 10:08:56 HD-T2597CL postfix/smtpd[4409]: connect from Server1[127.0.0.1] Dec 20 10:08:56 HD-T2597CL postfix/smtpd[4409]: 075FE18080C4: client=Server1[127.0.0.1] Dec 20 10:08:56 HD-T2597CL postfix/cleanup[4412]: 075FE18080C4: message-id=<1261321735.4404@Server1> Dec 20 10:08:56 HD-T2597CL postfix/qmgr[3791]: 075FE18080C4: from=<[email protected]>, size=495, nrcpt=1 (queue active) Dec 20 10:08:56 HD-T2597CL sendmail[4408]: nBKF8uEu004408: to=root@localhost, ctladdr=root@Server1 (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30451, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 075FE18080C4) Dec 20 10:08:56 HD-T2597CL postfix/smtpd[4409]: disconnect from Server1[127.0.0.1] Dec 20 10:08:56 HD-T2597CL postfix/smtp[4413]: 075FE18080C4: to=<[email protected]>, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=localhost.localdomain type=MX: Host not found, try again) Dec 20 13:57:55 HD-T2597CL sendmail[8885]: nBKIvtng008885: from=root@Server1, size=453, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost Dec 20 13:57:55 HD-T2597CL postfix/smtpd[8686]: connect from Server1[127.0.0.1] Dec 20 13:57:55 HD-T2597CL postfix/smtpd[8686]: 97A4618080B9: client=Server1[127.0.0.1] Dec 20 13:57:55 HD-T2597CL postfix/cleanup[8689]: 97A4618080B9: message-id=<[email protected]> Dec 20 13:57:55 HD-T2597CL postfix/qmgr[8596]: 97A4618080B9: from=<[email protected]>, size=611, nrcpt=1 (queue active) Dec 20 13:57:55 HD-T2597CL sendmail[8885]: nBKIvtng008885: to=chris@localhost, ctladdr=root@Server1(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30453, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 97A4618080B9) Dec 20 13:57:55 HD-T2597CL postfix/smtp[8690]: 97A4618080B9: to=<[email protected]>, relay=none, delay=0.04, delays=0.04/0/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=localhost.localdomain type=MX: Host not found, try again) Dec 20 13:57:55 HD-T2597CL postfix/smtpd[8686]: disconnect from Server1[127.0.0.1]
我的configuration设置为:
mydomain = domain.org myhostname = mail.domain.org myorigin = domain.org
使用默认设置的选项:inet_interfaces mydestination
我的/ etc / hosts文件:
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 Server1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 209.xxx Server1
我不知道该怎么办
检查localhost列在mydestination下
这是默认的,但你可能有其他的东西
mydestination = $ myhostname,localhost。$ mydomain,localhost
还检查你没有relayhost设置,并且/ etc / postfix / transport是空的
还要检查根目录是不是别名/ etc / aliases中的任何内容
恕我直言,Postfix的退出是因为它对domain.org感到困惑。 请跑
主机名-f
并检查结果:
1.是正常的(它应该是Server1.domain.org。如果没有,按照下面的描述整理/ etc / hosts)
2.保留服务器的有效IP地址(可在/ etc / hosts中find)
恕我直言,恕我直言 – “本地域”这个东西是一种可憎的东西,除了令人头疼之外,我一拿到服务器就立即将它取代。 我通常把/ etc / hosts放在这样的东西里:
127.0.0.1 localhost.domain.org localhost 209.xxx Server1.domain.org Server1
每个名字都有一次,并且环回和外部名字/地址有明确的区别。
经过大量的search和testing,我设法find了解决scheme:
这使它的工作。