linux培训日志8--bind,mail
时间:2006-12-13 来源:richardliu1123
BIND & eMAIL (2006-12-9)
一.BIND(Berkeley Internet Name Domain)
rpm -ivh bind
/etc/named.conf
/var/named/xxx.zone (or /var/named/chroot/var/named/xxx.zone)
/etc/sysconfig/named (chroot)
e.g.1
The following example shows a very basic zone file.
e.g.2
Reverse Name Resolution Zone Files
另:
1. /var/named/chroot/var/named/ 目录的权限不对,注意枪检查一下
2.allow-transfer 与 allow-query(这个应该也没什么关系,安全期间也可以看一下) 二.eMAIL MTA: --Mail Tranfer Agent MDA: --Mail Deliver Agent MUA: --Mail User Agent MUA1--->MTA--->MDA--->MUAn SMTP: --25 --command helo mail from rcpt to data quit POP3: (install the dovecot package,modified /etc/dovecot.conf protocol=imap pop3 imaps pop3s ) --110 --command user name pass passwd list rept dele quit IMAP: --143 /etc/mail/sendmail.cf /etc/mail/sendmail.mc (dnl DAEMON_OPTIONS(....127.0.0.1...) /etc/mail/access /etc/mail/locao-host-names /etc/aliases {root :student ---> newaliases/(sendmail -bi)} $ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
The following example shows a very basic zone file.
$ORIGIN example.com. $TTL 86400 @ IN SOA dns1.example.com. hostmaster.example.com. ( 2001062501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day IN NS dns1.example.com. IN NS dns2.example.com. IN MX 10 mail.example.com. IN MX 20 mail2.example.com. IN A 10.0.1.5 server1 IN A 10.0.1.5 server2 IN A 10.0.1.7 dns1 IN A 10.0.1.2 dns2 IN A 10.0.1.3 ftp IN CNAME server1 mail IN CNAME server1 mail2 IN CNAME server2 www IN CNAME server2 |
In the follow example, IP addresses 10.0.1.20 through 10.0.1.25 are pointed to corresponding FQDNs.
$ORIGIN 1.0.10.in-addr.arpa. $TTL 86400 @ IN SOA dns1.example.com. hostmaster.example.com. ( 2001062501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day IN NS dns1.example.com. IN NS dns2.example.com. 20 IN PTR alice.example.com. 21 IN PTR betty.example.com. 22 IN PTR charlie.example.com. 23 IN PTR doug.example.com. 24 IN PTR ernest.example.com. 25 IN PTR fanny.example.com. |
2.allow-transfer 与 allow-query(这个应该也没什么关系,安全期间也可以看一下) 二.eMAIL MTA: --Mail Tranfer Agent MDA: --Mail Deliver Agent MUA: --Mail User Agent MUA1--->MTA--->MDA--->MUAn SMTP: --25 --command helo mail from rcpt to data quit POP3: (install the dovecot package,modified /etc/dovecot.conf protocol=imap pop3 imaps pop3s ) --110 --command user name pass passwd list rept dele quit IMAP: --143 /etc/mail/sendmail.cf /etc/mail/sendmail.mc (dnl DAEMON_OPTIONS(....127.0.0.1...) /etc/mail/access /etc/mail/locao-host-names /etc/aliases {root :student ---> newaliases/(sendmail -bi)} $ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
相关阅读 更多 +