Thanks for the quick response, 2) $ postconf -n | grep ldap transport_maps = hash:/etc/postfix/lookup/transport, ldap:/etc/postfix/ mailtransport.cf
1) by "those domains" you are talking about the sender domains? Because these domains are unknown to my mailsystem as these are mails from external mailservers. If you mean my own local domains do you think i should add to the ldap query something like this? "query_filter = (&(|(mail=%s)(mailalternateaddress=%s)(domain=%d))" The thing is I do not have my local domains defined anywhere... basically if I point an MX to this mailserver and create an LDAP entry containing a valid mail address I will be able to receive mail for that domain. Maybe this is the problem here? Am Fr., 3. März 2023 um 14:04 Uhr schrieb Wietse Venema < [email protected]>: > liquid cooled: > > Hello, > > > > I found out that my postfix does a lot of useless (LDAP) requests (in my > > opinion) when transport maps are enabled and in place. > > I use transport maps to map incoming mails to different destination > hosts, > > based on destination mail address. > > So there should be no lookup at all for sender address or local or domain > > part. > > 1) Add a "domain = xxxx" setting to look up only complete email > addresses in those domains. > > 2) You forgot to show parameter settings (output from the command > "postconf -n | grep ldap") that shows WHAT Postfix is using the > table for. > > Wietse >
