Postfix forward
I'm using postfix as a receiving mail server, i wanted to forward all incoming mail to an other host, what do i need to change for this.
Arjan |
The easy way to do this is to add the following to /etc/postfix/main.cf:
transport_maps = hash:/etc/postfix/transport And then create the /etc/postfix/transport file with the following type of information: server1.whatever local: server2.whatever smtp:[111.222.333.444] server3.whatever smtp:[server3.whatever] |
OK, i have added the line in the main.cf and have created transport with the following lines
<localhost name> local: <domain name> smtp:[192.168.0.80] I wanted all mail received on the local host be forwarded to 192.168.0.80, will it work this way ? Arjan |
put this in your main.cf:
Quote:
Code:
postconf -e "mydestination = localhost, $myhostname" *If postfix is running: Code:
postfix reload *If postfix isn't running: Code:
postfix start |
With this script the messages are forwarded, but when someone outside tries to connect to send a message a relaying is denied message is served.
So only local generated messages are forwarded, when come from the internet they are denied. Arjan |
All times are GMT -5. The time now is 11:35 PM. |