0
创建以及修改postfix to transport
1. Enable transport map for Postfix by using the Postfix configuration utility to configure Postfix:
*postconf -e "transport_maps=hash:/etc/postfix/transport*
Another way is to edit Postfix configuration file, /etc/postfix/main.cf. Add a new line as below into this file:
transport_maps = hash:/etc/postfix/transport
2.Create a transport map entry. Edit /etc/postfix/transport, add a new line:
abc.com :[172.16.103.203]
In this example, abc.com is the domain whose mail will be redirected and 172.16.103.203 is the destination IP. The [ ] suppresses MX lookups. Please refer to transport man page (man transport) for details.
3.Generate transport table database:
postmap /etc/postfix/transport
4.Restart Postfix:
service postfix restart
1. Enable transport map for Postfix by using the Postfix configuration utility to configure Postfix:
*postconf -e "transport_maps=hash:/etc/postfix/transport*
Another way is to edit Postfix configuration file, /etc/postfix/main.cf. Add a new line as below into this file:
transport_maps = hash:/etc/postfix/transport
2.Create a transport map entry. Edit /etc/postfix/transport, add a new line:
abc.com :[172.16.103.203]
In this example, abc.com is the domain whose mail will be redirected and 172.16.103.203 is the destination IP. The [ ] suppresses MX lookups. Please refer to transport man page (man transport) for details.
3.Generate transport table database:
postmap /etc/postfix/transport
4.Restart Postfix:
service postfix restart
编辑回复