[궁금]님이 남기신 글:
>안녕하세요
>밑에있는 2156번 글과 같은 에러 때문에 문의
드립니다.
>메일을 발신 하려는데 에러 내용은 같습니다
>/var/log/maillog를
보면
><bbb@sayclub.com>, ctladdr=<webmaster@xxx.co.kr> (567/567),
>delay=21:56:02, xdelay=00:00:00, mailer=esmtp, pri=30356,
>relay=smtp.sayclub.com. [211.174.56.156], dsn=4.2.0 stat=Deferred:
>450 Client host rejected: cannot find your hostname, [xxx.xxx.xxx.xxx]
>host ns1.xxx.xxx 하면 메일서버 ip가 정상적으로 나옵니다
>그런데 host 메일서버 ip 하면
>Host xxx.xxx.xxx.xxx.in-addr.arpa not found: 3(NXDOMAIN)이런 에러가
나옵니다
>
>/etc/named.conf 내용입니다
>controls {
> inet 127.0.0.1 allow { localhost; } keys { rndckey; };
>};
>zone "." IN {
> type hint;
> file "named.ca";
>};
>
>zone "localhost" IN {
> type master;
> file "localhost.zone";
> allow-update { none; };
>};
>
>zone "0.0.127.in-addr.arpa" IN {
> type master;
> file "named.local";
> allow-update { none; };
>};
>
>
>zone "xx.xx.xxx.in-addr.arpa" IN {
> type master;
> file "zone-xx.xx.xxx";
>};
>
>/var/named/ zone-xx.xx.xxx 파일입니다
>$TTL 86400
>@ IN SOA ns1.xxxx.xxx. webmaster.xxxx.xxx. (
>
> 834 ;Serial
> 21600 ;Refresh 6 hours
> 1800 ;Retry 30 mins
> 3600000 ;Expire 41days 16hours
> 1800 ) ;Minum 24 hours
> IN NS ns1.xxxx.xxx.
>
>
>1 IN PTR ns1.xxxx.xxx.
>
>말씀하신 메일서버의 hostname을 DNS에 등록하라고
하셨는데
>어떻게 해야 하는지 모르겠네요 자세한 설명좀
부탁드립니다
>해결을 빨리 해야 하거든요..감사합니다.수고하세요.
========================================
현재 메일서버의 호스트이름을 정해서 DNS zone 파일에
등록하라는 의미입니다.
예를들어,
현재 메일서버 호스트 이름이 mail.foo.com 이고 IP 주소가
123.123.123.123 이라면,
foo.com 도메인을 관리하는 DNS 에 MX 레코드와 A 레코드를
사용해서
설정하세요. /etc/hosts 파일은 localhost 용입니다.
ex)
-- named.conf -----------------
...
zone "foo.com" IN {
type master;
file "zone-foo.com";
};
-------------------------------
-- zone-foo.com ---------------
...
@ IN MX 10 mail
...
mail IN A 123.123.123.123
-------------------------------
|