On 11/16/2011 5:57 AM, Denis Witt wrote: > Hi, > > I'm using Postfix 2.7.1-1+squeeze1 with OpenLDAP. Everything works > fine except one thing. If I send an E-Mail to > $myname@$nonlocaldomain.com it's delivered to my local postbox. > > This becomes a major problem when you need to send E-Mails to > role-accounts like abuse, postmaster or info. ;) > > All local domains are listed in $mydestination in main.cf but it > seems that they are ignored and I'm unable to find out why. > > Any ideas? > > Thanks in advance. > > Regards, > Denis Witt
One of your LDAP lookups is broken, matching more than it should. Test your lookups with "postmap -q myn...@nonlocal.example.com ldap:table" to find what's returning an answer when it shouldn't. This may not be directly related to $mydestination, but rather in one of the rewrite maps such as virtual_alias_maps or *canonical_maps, so test *all* your ldap lookups. If you need more help, please see http://www.postfix.org/DEBUG_README.html#mail -- Noel Jones