You need to
* Tell `Postfix1` to forward all traffic to the relayhost `Postfix2`
* Configure `Postfix2` to accept traffic from `Postfix1`
This is done with the configuration snippets (Make sure you have only one of the directives in each `main.cf`):
* Postfix1:
# forward all traffic to Posfix2
relayhost = Postfix2
# make sure you receive bounces
bounce_notice_recipient = postmaster@your.domain
* Postfix2:
# add remote Postfix to local networks
mynetworks =
# relaying accepts mail from local networks
smtpd_relay_restrictions = permit_mynetworks reject_unauth_destination
You should take care of the authentication at `Postfix1`, without a proper setup it would be possible to send massive amounts of SPAM through `Postfix1`.