- Hi, I would use transport maps. Just look at the /etc/postfix/transport file, there are instructions about how to config it. You may also need to changeMessage 1 of 6 , Apr 2, 2013View SourceHi,I would use transport maps. Just look at the /etc/postfix/transport file, there are instructions about how to config it. You may also need to change /etc/postfix/main.cf to activate the transport map. Try using these lines at the end of transport.You should change parameters above to your situation. Those lines will send every email coming to example.com to the server bar.example, using smtp and port 25.Read carefully transport file infile instructions. At the end, there is a section "CONFIGURATION PARAMETERS", that applies to main.cf and is very important.Cheers,
---Fernando Maciel Souto MaiorOn Sun, Mar 31, 2013 at 9:30 PM, Viktor Dukhovni <postfix-users@...> wrote:http://www.postfix.org/MULTI_INSTANCE_README.html#quickOn Mon, Apr 01, 2013 at 01:11:47PM +1300, Peter wrote:
> On 03/23/2013 12:35 PM, Michael Maymann wrote:
> >Hi list,
> >I would like to forward all our internal RHEL6 server localuser emails
> >to our postfix mailrelay.
> >I have tried the following already on the RHEL6 servers:
> >- .forward will not allow e.g. root to forward mail to user1
> >- relayhost only relay mail for external users
> >Is there a global postfix setting for this ?
> Look at /etc/aliases
Handle null clients that punt all mail to a relay by not including
$myorigin (or anything else for that matter) in $mydestination and
by setting a relayhost to point to the mailhub. Plus some reasonable
handling of root, ...