Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

This is not the answer you're looking for...but a long, long time ago I had my procmail rules set up filter out duplicate messages by message-id, so that only the first one would get delivered. Like this.

Note that I'm not actually recommending this as a solution :).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.