Hi,

I have to route mail by /sender/ domain.

I found out about 
        sender_dependent_relayhost_maps = 
pcre:/etc/postfix/sender_dependent_relayhost_map
with:
        /.*@domain.de$/  special-mailgw

Works.

But: I observed postfix falling back to the MX for "domain.de" if 
"special-mailgw"
is not feasable (down, timeout, responds with 5xx).

On the other hand I have two target mail gateways available.

I'd like to accomplish the following behaviour:

Dispatch mail from *@domain.de to special-mailgw .
If this doesn't work out, 
        dispatch mail from *@domain.de to special-mailgw-nr2 .
If this doesn't work out either,
        enqueue and retry later .

(And never use the MX records for those addresses/domains).

TIA, Chris

-- 
Christian Recktenwald
postfix-users-d...@citecs.de

Reply via email to