I solved my problem.

We are using the Postfix "directory routing" functionality  .

The problem was on the Ldap request filter.  I adjusted it.


So the discussion thread on this problem can be closed.


Bests Regards.

--

   Claude Chéret

Le 07/10/2021 à 19:36, Claude a écrit :
Tank you for the clarification.


Here I give you more informations about the configuration.

The smtp server :

- act as a local delivery server for the local domain (we are using virtual mailbox owned by vmail:vmail account in /mnt/virtual),

- act as a relay server for some other domains.

Maildrop is configured to run under vmail account in the master.cf file.

When I unconfigure transport_maps,  maildrop run as vmail and it can write the message in the user's mailbox .

When I configure the transport_maps, maildrop run as root  for the local delyvery, so it can't write into the user's mailbox and delivery fail.


Le 07/10/2021 à 15:31, Matus UHLAR - fantomas a écrit :
On 07.10.21 14:26, Claude wrote:
Subject: Re: About "transport_maps" : when this paraméter is set smtp does
not deliver mail localy

On the "transport" man page I can see this information:

...
In  order  to  deliver internal mail directly, while using a mail relay
for all other mail, specify a null entry for internal destinations  (do
not change the delivery transport or the nexthop information) and spec-
ify a wildcard for all other destinations.

deliver directly does not mean locally.

deliver directly means deliver to remote server that is MX host, instead of
delivering via relay_host or other host(t) in transport_maps.

in order to deliver mail locally, the destination domain must be treated as
local domain. You can't do that via transport_maps.

Reply via email to