useradd westos

passwd westos

[root@westos ~]# cd /etc/postfix/

[root@westos postfix]# ls

access     generic        main.cf    relocated  virtual

canonical  header_checks  master.cf  transport

 

[root@westos postfix]# vim access  

172.25.254.149 REJECT  最后一行添加要禁止的

[root@westos postfix]# postmap access  执行完会出现新的db文件

[root@westos postfix]# ls

access     canonical  header_checks  master.cf  transport

access.db  generic    main.cf        relocated  virtual

[root@westos postfix]# postconf -d | grep client