How-To: Configure Postfix to Relay based on Domain
We use Postfix as a dropin replacement for Sendmail on our servers. We wanted to configure postfix to relay email via our internal mail server for internal email addresses, and send directly if the email address was external. To do this, follow these steps: Edit the /etc/postfix/transport file and add the following line: myinternaldomain.com smtp:[ipaddress]:25 [...]
