<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi@all,<br>
<br>
my ldap-users have two ldap attributes where their mail addresses
and aliases are stored in (<a class="moz-txt-link-abbreviated" href="mailto:mail=user@foo.org">mail=user@foo.org</a> and
<a class="moz-txt-link-abbreviated" href="mailto:gosaMailAlternateAddress=user@bar.org">gosaMailAlternateAddress=user@bar.org</a>).<br>
<br>
unfortunately the domains are mixed between the two attributes:<br>
<br>
User1: <a class="moz-txt-link-abbreviated" href="mailto:mail=user1@foo.org">mail=user1@foo.org</a> and <a class="moz-txt-link-abbreviated" href="mailto:gosaMailAlternateAddress=user1@bar.org">gosaMailAlternateAddress=user1@bar.org</a><br>
User2: <a class="moz-txt-link-abbreviated" href="mailto:mail=user2@bar.org">mail=user2@bar.org</a> and <a class="moz-txt-link-abbreviated" href="mailto:gosaMailAlternateAddress=user2@foo.org">gosaMailAlternateAddress=user2@foo.org</a><br>
<br>
everything works fine with this query_filter for virtual aliases in
postfix:<br>
<br>
[...]<br>
query_filter =
(&(objectclass=gosaMailAccount)(|(mail=%s)(gosaMai
lAlternateAddress=%s)))<br>
result_attribute = uid, memberUid<br>
[...]<br>
<br>
now my problem:<br>
I want to split the two domains to two different mailserver, the old
one with the old domain @foo.org and a new server with @bar.org. So,
if a mail arrives at the old server with bar.org-domain, it should
be relayed to the new server. but the virtual-checks are very early
in the postfix-stack, so postfix finds always the bar.org domain and
handles it as a local domain - even i removed bar.org from
virtual_alias_domains.<br>
<br>
how can I change the filter not to find any @bar.org domains?<br>
<br>
i tried it with<br>
<br>
&(objectclass=gosaMailAccount)(|(mail=%s)(gosaMail
AlternateAddress=%s)))(!(|(mail=<a class="moz-txt-link-rfc2396E" href="mailto:*@bar.org">"*@bar.org"</a>)(gosaM
ailAlternateAddress=<a class="moz-txt-link-rfc2396E" href="mailto:*@bar.org">"*@bar.org"</a>))))<br>
<br>
and so on, but it doesn't work because the filter always finds an
entry with bar.org and the result (uid) returns. I need something
like "grep -v" after the query and clean up the result <img
src="cid:part1.09080409.02050508@citkomm.de" alt="" title="EEK!"
class="inlineimg" border="0"> <img
src="cid:part2.02070007.06080004@citkomm.de" alt="" title="Big
Grin" class="inlineimg" border="0">...<br>
<br>
any ideas?<br>
<br>
<br>
regards <br>
Marc<br>
</body>
</html>