From: seb on
Hi all,

let consider the following postfix gateway configuration :
main.cf
mynetworks = 10.160.0.0/16
relay_domains = internal.com
relay_recipient_maps = ldap:/etc/postfix/ldap-relay_recipient.cf
relayhost = [10.200.1.1]

I expected that :
- a mail sent to a known user from internal.com domain
(known.user(a)internal.com) should be relayed to correct server
- a mail sent to an unknown user from internal.com domain
(unknown.user(a)internal.com) should be rejected because of
relay_recipient_maps.
- a mail sent from a trusted ip (within mynetworks range) to un unknown
domain (user(a)external.com) should be relayed to relayhost.

It does not work as I expected ... the two last mail are rejected with
the error "User unknown in relay recipient table" whereas the domain
"external.com" is not declared in relay_domains.

Is there something I did not understood or should it work as I expect
it to work ?

Thanks for help.

Seb.