摘自这个家伙的 因为今天群里一个说邮箱被当枪使了 今天光看小说了。。就这时候学了点,其实 人在压力下学的最快怪不得古人那么聪明了
Postfix 转发服务器(192.168.0.188):
mynetworks = 127.0.0.0/8 192.168.0.50 #填上被允许转发的主机IP
local_recipient_maps = $alias_maps hash:/etc/postfix/relay_recipients
relay_domains = photoboys.cn
relay_recipient_maps = hash:/etc/postfix/relay_recipients
[root@mail postfix]# cat relay_recipients
@photoboys.cn mail
transport_maps = hash:/etc/postfix/transport
[root@mail postfix]# cat transport
photoboys.cn relay:[192.168.0.50]
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
Postfix 转发服务器配置(192.168.0.50):
transport_maps = hash:/etc/postfix/transport
[root@mail postfix]# cat transport
google.com smtp:192.168.0.188:25
- 1.
- 2.
- 3.
要记得对那些文件进行postmap操作,生成相应的XXX.db文件。
详细出处参考:http://www.itqun.net/content-detail/251228.html
【编辑推荐】