ãã¼ãã£ã«ã¡ã¼ã«ï¼Postfixï¼
- [email protected]ãhoge.localã§åãããããã«ããã
- hoge.localãå®ä½ãmoge.localããã¼ãã£ã«ãã¡ã¤ã³ã¨ããã
- å åãã§bindã®è¨å®ããã¦ãããï¼éå¼ãã¯çç¥ï¼
- hoge.localã®ã¢ãã¬ã¹ã¯ã192.168.1.11
BINDã®è¨å®
- /etc/named.conf
zone "hoge.local" {
type master;
file "/var/named/hoge.local.hosts";
};
zone "moge.local" {
type master;
file "/var/named/moge.local.hosts";
};
- /var/named/hoge.local.hosts
$ttl 38400
hoge.local. IN SOA hoge.local. oppara.hoge.local (
1185174110
10800
3600
604800
38400 )
hoge.local. IN NS hoge.local.
hoge.local. IN A 192.168.1.11
hoge.local. IN MX 10 192.168.1.11
- /var/named/moge.local.hosts
$ttl 38400
moge.local. IN SOA hoge.local. moge.moge.local (
1185176141
10800
3600
604800
38400 )
moge.local. IN NS hoge.local.
moge.local. IN A 192.168.1.11
moge.local. IN MX 5 192.168.1.11
$ sudo vi /etc/resolv.conf
#nameserver 192.168.1.1
search netfinity.local
nameserver 192.168.1.11
$ sudo vi /etc/nsswitch.conf
$ sudo vi /etc/host.conf
order hosts,bind
- åèµ·å
$ sudo /etc/rc.d/init.d/named restart
- 確èªãªãããªã©
$ dig moge.local $ dig moge.local mx
ã¦ã¼ã¶ã¼è¿½å
$ sudo /usr/sbin/adduser moge $ sudo /usr/bin/passwd moge
Postfixã®æå®
- /etc/postfix/main.cf
virtual_alias_domains = moge.local
virtual_alias_maps = hash:/etc/postfix/virtual
- /etc/postfix/virtual
moge.local anything
[email protected] moge@hoge.local
- è¨å®ãæå¹ã«ãã¦Postfixãåèµ·å
$ sudo /usr/sbin/postmap /etc/postfix/virtual $ sudo /etc/rc.d/init.d/postfix reload