I'm working on moving from PMTA over to Postfix and had a question on
relaying for virtual domains.  We send mail on customers' behalf and
one of the things I'm trying to figure out is how to implement PMTA's
"virtual-mta" in Postfix.  This defines the destination host and
credentials for the relaying.  For example each of these would be
their own respective config file:

<virtual-mta smtp.office365.com-39-95002>
<domain *>
 route smtp.office365.com:587
 auth-username "USERNAME"
 auth-password "PASSWORD"
 use-starttls yes
</domain>
</virtual-mta>

<virtual-mta smtp.gmail.com-935-93737>
<domain *>
 route smtp.gmail.com:587
 auth-username "USERNAME"
 auth-password "PASSWORD"
 use-starttls yes
</domain>
</virtual-mta>

We have a lot of these; one per customer.  Is this possible to do in Postfix?

Thanks!

Reply via email to