vi /etc/postfix/main.cf
inet_interfaces = $myhostname, localhost
vi /etc/postfix/master.cf
#IP前面不能有任何空白
192.168.1.6:25 inet n - n - - smtpd -o content_filter=
192.168.1.7:25 inet n - n - - smtpd -o content_filter=
192.168.1.8:25 inet n - n - - smtpd -o content_filter=
#IP前面不能有任何空白
service postfix reload
netstat -tnlp
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 7008/master
tcp 0 0 192.168.1.6:25 0.0.0.0:* LISTEN 7008/master
tcp 0 0 192.168.1.7:25 0.0.0.0:* LISTEN 7008/master
tcp 0 0 192.168.1.8:25 0.0.0.0:* LISTEN 7008/master
No comments:
Post a Comment