OK understood ! Thanks for your help :-)

Le 08/10/2010 17:15, Wietse Venema a écrit :
Frank Bonnet:
I would like to use LDAP ( OpenLDAP ) aliases from our MX server
in order to forward emails to the internal mailhub.

The MX use the transport utility to forward emails to the mailhub
and does not perform local deliveries.

Wietse:
In that case you should be able to replace this:

/etc/postfix/main.cf:
      transport_maps = mapping from example.com to smtp:mailhub.example.com
      relay_domains = example.com
      relay_recipient_maps = list of "good" recipie...@example.com

with:

/etc/postfix/main.cf:
      transport_maps = mapping from example.com to smtp:mailhub.example.com
      relay_domains = example.com
      virtual_alias_maps =
        mappings from external-u...@example.com to internal-user(s)@example.com

Unless I am missing something obvious (in which case Victor will
helpfully point out what's missing).

Frank Bonnet:
   Thank you !

The only problem I see is that this would accept mail for non-existent
recipients, so you still need to specify relay_recipient_maps but the
table can be empty. The recipient address validation is then done by
virtual_alias_maps.

/etc/postfix/main.cf:
      transport_maps = mapping from example.com to smtp:mailhub.example.com
      relay_domains = example.com
      relay_recipient_maps =
        some table that can be empty.
      virtual_alias_maps =
        mappings from external-u...@example.com to internal-user(s)@example.com

That should do the job. Be sure to test this with a separate Postfix
instance first.

        Wietse

Reply via email to