Is there any way to prevent a user from receiving multiple copies of the same email if an email is sent to both an alias for the user as well as the user themselves?
For example, suppose bob.smith is a included in the alias list for developers (@company.com)
If I send the email to both the user and an alias for the user:
To: bob.smith@company.com, developers@company.com
... is there any way to prevent user Bob from receiving the same email two times?
EDIT: I've observed that if Bob is a member of two different alias groups, and I send an email just to those two groups (not the user directly), sendmail correctly expands the groups and removes the duplicate. The behavior I want to fix occurs when you send directly to the user AND a group they belong to.