postfix expert

Job ID: 36671213

Budget: $20 – $30 USD

I am currently utilizing two mail servers simultaneously. How can I configure the system to ensure that if the first mail server fails to find a valid mailbox or user associated with the recipient address, the email is automatically redirected to the second mail server?
First server: postfix mailserver: mail.itexpertnow.com
Second server: Microsoft Office 365: itexpertnow-com.mail.protection.outlook.com

I get this error when the user is not found in the mail.itexpertnow.com mail server
"Address not found Your message wasn't delivered because the address couldn't be found, or is unable to receive mail."

To fix this, I used the transport file but it's not working correctly

1. I created a transport file for the following:
[alex@]itexpertnow.com smtp:[itexpertnow-com.mail.protection.outlook.com]
itexpertnow.com smtp:mail.itexpertnow.com

2. I configured postfix to enable this transport file
transport_maps = regexp:/etc/postfix/transport
Related categories: System Admin Linux Ubuntu Email Handling Postfix