Sendmail - preventing aliased users from receiving multiple copies of the same email
Posted
by
MikeQ
on Server Fault
See other posts from Server Fault
or by MikeQ
Published on 2010-12-03T20:00:17Z
Indexed on
2011/01/10
23:55 UTC
Read the original article
Hit count: 357
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: [email protected], [email protected]
... 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.
© Server Fault or respective owner