On 09/30/2014 01:26 PM, Wietse Venema wrote: > Marek Kozlowski: > [ Charset ISO-8859-2 converted... ] >> :-) >> >> The scenario: >> >> For some reasons there are two mail servers: `myshost.mydomain' and >> `mydomain'. `myhost.mydomain' uses LDAP servers (pam_ldap, nss_ldap) as >> an authentication source. Users' email addresses are stored as an LDAP >> attributes which are accessed via: >> >> virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf >> >> "For future development" ("migration in progress") some users have this >> attribute set to: >> >> name.surname@myhost.mydomain >> >> while others: >> >> name.surname@mydomain >> >> `mydestination' on `myhost.mydomain' is set to: >> >> mydestination = $myhostname, $myhostname.$mydomain, >> localhost, localhost.$mydomain, >> >> So it DOES NOT contain `$mydomain' itself. >> >> Expected results: > > Maybe you can read "man 5 virtual" first, before asking a question > about the handling of virtual aliases.
I know the document. If I decided about addressing... The problem is that the LDAP server which is a main source of all identity information is an external server completely out of my control. I cannot decide what information is stored and served to other servers. I'm not administering the other mailserver. Some complex migration is in progress and temporarily the situation is as described. And its my problem to deal with it. So the question is: can I "ignore" virtual map entries with domain names not present in some list if I cannot edit the virtual_alias_maps source? Best regards, Marek