Postfix Transport Not Getting Triggered

Solution 1:

On server A, I'd try putting this into /etc/postfix/transport:

domain.com smtp:[IP of server B]

(run postmap on that file, etc). Assuming that server B is already set up to receive email for domain.com, that should be all you need.

If that's not working, here's what you should include to help with troubleshooting:

  • The output of postconf -n (replace your domain with example.com if you like) from servers A and B
  • The logs of an email received by server A for a user at domain.com
  • Logs from server B, if appropriate
  • The output of postmap -q [email protected] hash:/etc/postfix/transport on server A