uxphreak
asked on
Postfix virtual alias users and groups - deliver to unique addresses
Hello,
I have Postfix configured with virtual aliases for users and groups tied to Active Directory. For the most part the system works flawlessly, however, when a user is a member of more than one AD group and an email is sent to multiple groups, the recipient will receive multiple copies of the same email after Postfix identifies all addresses via each group. Is there a method to identify only unique recipient email addresses to limit delivery of a single message to an email address if the address is identified from multiple groups?
Thanks.
I have Postfix configured with virtual aliases for users and groups tied to Active Directory. For the most part the system works flawlessly, however, when a user is a member of more than one AD group and an email is sent to multiple groups, the recipient will receive multiple copies of the same email after Postfix identifies all addresses via each group. Is there a method to identify only unique recipient email addresses to limit delivery of a single message to an email address if the address is identified from multiple groups?
Thanks.
you could try making a new alias for the various groups, run # newaliases and have the mail sent only to the new alias
ASKER
Thanks gkrew, but I'm not trying to redirect the addresses of the groups. Rather, I'm trying to find a solution that will allow Postfix to deliver a single message to a virtual recipient address if the recipient address is contained in more than one AD group.
If john.doe@mydomain is a member of Group1 & Group 2 in AD, and I send an email to both groups, Postfix derives the recipients from each group and delivers a message to each virtual recipient causing john.doe@mydomain to receive two messages by virtue of being a member of both groups. I want postfix to deliver a single message regardless how many occurrences of recipient exist in the delivery process.
If john.doe@mydomain is a member of Group1 & Group 2 in AD, and I send an email to both groups, Postfix derives the recipients from each group and delivers a message to each virtual recipient causing john.doe@mydomain to receive two messages by virtue of being a member of both groups. I want postfix to deliver a single message regardless how many occurrences of recipient exist in the delivery process.
How is the tie created to AD?
ASKER
I have two ldap alias lookups: one for users and one for groups. The user lookup uses an ldap filter for objectClass=person whereas the group lookup uses objectClass=group.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Sorry I misunderstood your question. What bevhost suggested should work. Please try it let us know
ASKER
Thanks! Setting this in main.cf looks to do the job.