可以幫我看看那裡有錯嗎?



贊助商連結


ahdeng
2002-06-07, 10:54 PM
利用linux架設DNS+MAIL SERVER 主機名稱:mail,網域:aaa.com.tw
IP ADD:61.13.153.254

寄信時會出現下列兩點錯誤,很奇怪對方寄信來時email為[email protected]或是
[email protected],有時可以收的到,有時又收不到,請各位高手幫幫忙吧!!
----------------------------------------------------------------------------
Error Message
1.Returned mail: Host unknown (Name server: 61.13.153.254.aaa.com.tw.: host not found)

2.(reason: 553 5.1.8 <[email protected]>... Domain of sender address [email protected]
does not exist)

----- Transcript of session follows -----
... while talking to prod.asiansources.com.:
>>> MAIL From:<[email protected]> SIZE=2561
<<< 553 5.1.8 <[email protected]>... Domain of sender address [email protected]
does not exist
501 5.6.0 <[email protected]>... Data format error

----------------------------------------------------------------------------
/etc/named.conf dns設定檔


// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};

zone "aaa.com.tw." IN {
type master;
file "named.host";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "153.13.61.in-addr.arpa" IN {
type master;
file "named.rev";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

----------------------------------------------------------------------------
/var/named/name.host 正解


@ IN SOA mail.aaa.com.tw. root.aaa.com.tw. (
2002060607
10800
3600
604800
86400 )

aaa.com.tw. IN NS mail.aaa.com.tw.
mail.aaa.com.tw. IN A 61.13.153.254
localhost.aaa.com.tw. IN A 127.0.0.1
loopback.aaa.com.tw. IN CNAME localhost

mail.aaa.com.tw. IN MX 10 61.13.153.254

----------------------------------------------------------------------------
/var/named/name.rev 反解


@ IN SOA mail.aaa.com.tw. root.aaa.com.tw. (
2002060601 ;serial
10800 ;refresh
3600 ;retry
604800 ;expire
86400 ;default_ttl
)

@ IN NS mail.aaa.com.tw.

254 IN PTR mail.aaa.com.tw.

----------------------------------------------------------------------------
/var/named/name.local


$TTL 86400
@ IN SOA mail.aaa.com.tw. root.localhost. (
2002060601 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS mail.aaa.com.tw.

1 IN PTR localhost.

----------------------------------------------------------------------------
/var/named/localhost.zone


$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS @
1D IN A 127.0.0.1

----------------------------------------------------------------------------Error message