Score:0

Postfix: Use transport for specific provider

vn flag

I'm using postfix 3.4.13 on ubuntu-server 20.04.

Intro

I'm required to use myrelay.com transport to send mails to provider.com, otherwise they are rejected. I'm using postfix (3.4.13) with transport_maps to fulfill this requirement, here is my config.

main.cf

transport_maps = hash:/etc/postfix/transport

transport

provider.com     smtp:[myrelay.de]:587

This works as expected.

My problem

provider.com also offers his smtp to others as a service: There are some receivers that use provider.com smtp server with a sender domain that is not provider.com. My mails don't pass through, because myindustry.com is not provider.com, so it's not matched in the transport.

Example:

As a quick solution I added myindustry.com to the transport, works.

My question

There will be other receivers that also use provider.com's service. Is there something like transport_maps or similar that is based on receiving smtp server, instead of the receivers address?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.