On Mon, Oct 25, 2010 at 04:43:15PM -0200, Lauro Costa G. Borges wrote: > > > I'm using Postfix 2.7.0 and Dovecot 1.2.9. > > I don't understand why this machine (imap) is trying to send warning > emails as if the recipient was local. > > If I set relay_domains to "target.example.org", it works ok, I can send > email to *...@gmail.com (or any other domain), from imap. > If I set relay_domains to ldap:/etc/postfix/ldap-mapa-dominios.cf, it does > not work, ...
Classic user error #1. http://www.postfix.org/DATABASE_README.html#lists DO NOT ignore the lookup key and return the list of relay domains. DO lookup the requested domain, and return a non-empty result IF AND ONLY IF the domain is a relay domain. -- Viktor.