Postfix 转发服务器设置


摘自这个家伙的 因为今天群里一个说邮箱被当枪使了  今天光看小说了。。就这时候学了点,其实 人在压力下学的最快怪不得古人那么聪明了


Postfix 转发服务器(192.168.0.188):
 

  1. mynetworks = 127.0.0.0/8 192.168.0.50 #填上被允许转发的主机IP  
  2. local_recipient_maps = $alias_maps hash:/etc/postfix/relay_recipients  
  3. relay_domains = photoboys.cn  
  4. relay_recipient_maps = hash:/etc/postfix/relay_recipients  
  5. [root@mail postfix]# cat relay_recipients  
  6. @photoboys.cn  mail  
  7. transport_maps = hash:/etc/postfix/transport  
  8. [root@mail postfix]# cat transport  
  9. photoboys.cn relay:[192.168.0.50]  


Postfix 转发服务器配置(192.168.0.50):
 

  1. transport_maps = hash:/etc/postfix/transport  
  2. [root@mail postfix]# cat transport  
  3. google.com   smtp:192.168.0.188:25  


要记得对那些文件进行postmap操作,生成相应的XXX.db文件。


详细出处参考:http://www.itqun.net/content-detail/251228.html

相关内容

    暂无相关文章