On 2021-10-06 at 11:48:45 UTC-0400 (Wed, 6 Oct 2021 17:48:45 +0200)
Claude <claude.che...@laposte.net>
is rumored to have said:

The problem:

On the postfix-2.10.X mail server , the server does not deliver localy the mail for the localy hosted recipient  accounts but try to resend the mail to the "mailHost" (taken from Ldap).

So postfix-2.10.x detect a loop and drop the message.

The message in aillog looks like: postfix/bounce: bounce_append_proto: ............. act=failed  why=mail  for my-server.mydomain.fr loops back to myself

If you want to deliver mail to my-server.mydomain.fr recipients locally, my-server.mydomain.fr MUST be in either mydestination ("local" domains with system users,) virtual_alias_domains, or virtual_mailbox_domains. See Postfix's ADDRESS_CLASS_README for more information.

What I tested:

a) I have removed the "transport_maps" parameter fom the "main.cf" configuration file , and restart the postfix server:

 * so the mail delivery for the local account works fine

b) I try with a custom 'tranport_maps" parameter like this:

 * transport_map = hash:/etc/postfix/transport

       with the "transport" file like this:

       my-domain.fr  :
       .my-domain.fr :
       *             : another-mail-server.fr

       then "postmap transport" to generate the .db file.

 * result : the mail delivery for the local account works fine

That is surprising because the format is all wrong. Those freestanding ':' should make everything there useless. See the man page for transport(5). A hash map has exactly 2 tokens per line, whitespace delimited, with the second being of the format 'transport:nexthop' where 'transport' has an entry in master.cf.



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to