Hi, waiting for CGPro upcoming release with promised search fixing, I've sorted out the warning: dict_ldap_lookup: Search error 1: Operations error, adding a domain= list of my internal domains in ldaprfx.cf, and so stopping mail=%s expansion .
In main.cf I’ve added proxy:ldap:/opt/trend/imss/postfix/etc/postfix/ldaprfx.cf. I noticed that this requires also to list explicitly proxy_read_maps: proxy_read_maps = proxy:ldap:/opt/trend/imss/postfix/etc/postfix/ldaprfx.cf ….. Many thanks help me on focusing on a solution and for the very useful tips. Regards, Paolo. > On 5 Apr 2017, at 08:15, Paolo Barbato <paolo.barb...@igi.cnr.it > <mailto:paolo.barb...@igi.cnr.it>> wrote: > > >> On 5 Apr 2017, at 01:08, Viktor Dukhovni <postfix-us...@dukhovni.org >> <mailto:postfix-us...@dukhovni.org>> wrote: >> >> >>> On Apr 4, 2017, at 3:35 PM, Paolo Barbato <paolo.barb...@igi.cnr.it >>> <mailto:paolo.barb...@igi.cnr.it>> wrote: >>> >>> here new ldaprfx.cf >>> >>> server_host = 150.178.3.89:389 >>> bind=no >>> search_base = mail=%s,dc=cgprouter >>> scope = base >>> query_filter = mail=%s >>> result_attribute = mail >>> result_format = OK %s >>> version = 3 >>> >>> here postmap check >>> [root@mail2 postfix]# postmap -q bar...@igi.cnr.it >>> <mailto:bar...@igi.cnr.it> >>> ldap:/opt/trend/imss/postfix/etc/postfix/ldaprfx.cf >>> [root@mail2 postfix]# >>> [root@mail2 postfix]# postmap -q barb...@igi.cnr.it >>> <mailto:barb...@igi.cnr.it> >>> ldap:/opt/trend/imss/postfix/etc/postfix/ldaprfx.cf >>> OK barb...@igi.cnr.it <mailto:barb...@igi.cnr.it> >>> >>> >>> thats really fine. >>> >>> ....but after inserted ldap:/opt/trend/imss/postfix/etc/postfix/ldaprfx.cf >>> in main.cf an new error come up "warning: dict_ldap_lookup: Search error >>> 1: Operations error " and Server configuration error is there again. >> >> And the reason you're not posting the "postconf -n" output showing the >> new settings and the full error message (and any related log entries) >> is …? > .. > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: ldap_read: > want=30, got=30 > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: 0000: 01 01 > 04 00 04 18 69 6e 63 6f 72 72 65 63 74 20 ......incorrect > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: 0010: 45 2d > 6d 61 69 6c 20 61 64 64 72 65 73 73 E-mail address > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: request done: ld > 0x812ab00 msgid 5 > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: warning: dict_ldap_lookup: Search > error 1: Operations error > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: 0000: 30 05 > 02 01 06 42 00 0....B. > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: ldap_write: > want=7, written=7 > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: dict_ldap_debug: 0000: 30 05 > 02 01 06 42 00 0....B. > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: warning: > ldap:/opt/trend/imss/postfix/etc/postfix/ldaprfx.cf: table lookup problem > Apr 4 20:51:41 mail2 postfix/smtpd[28942]: NOQUEUE: reject: RCPT from > unknown[201.165.255.9]: 451 4.3.5 <um...@igi.cnr.it > <mailto:um...@igi.cnr.it>>: Recipient address rejected: Server configuration > error; from=<geod...@mail2jane.com <mailto:geod...@mail2jane.com>> > to=<um...@igi.cnr.it <mailto:um...@igi.cnr.it>> proto=ESMTP > helo=<customer-HMO-255-9.megared.net.mx > <http://customer-hmo-255-9.megared.net.mx/>> >> > > it seems that record retrival try multiple attempt before report the error > mentioned. > > > >> Do test making the query as a non-root user. Do check whether your >> SMTP server processes are chrooted and perhaps can't connect to LDAP >> servers as a result. >> >> -- >> Viktor. >> > > ------------------------------------------------------------------------------------------------ Paolo Barbato Consorzio RFX <https://www.igi.cnr.it/>corso Stati Uniti,4 35127 Padova - Italy Network Administrator phone: +39 049 8295097 fax: +39 049 8700718 ------------------------------------------------------------------------------------------------