multiple copies of email

This section contains user-submitted tutorials.
Post Reply
Shankar
New user
New user
Posts: 1
Joined: 2022-05-05 14:43

multiple copies of email

Post by Shankar » 2022-05-10 09:28

Dear Sir,

I am getting mulitple copies of same email if it is addressed To and CC and they are present in Local email server.
Request Help

User avatar
mattg
Moderator
Moderator
Posts: 21858
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: multiple copies of email

Post by mattg » 2022-05-10 11:57

Are you downloading mail via POP? (external download)

See last paragraph here >> https://www.hmailserver.com/documentati ... al_account
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
katip
Senior user
Senior user
Posts: 1032
Joined: 2006-12-22 07:58
Location: Istanbul

Re: multiple copies of email

Post by katip » 2022-05-10 12:00

you have to maintain a DB table with Message-ID / recipient pairs.
user rule triggers a function to see if the same message has already been delivered for this account, if yes delete message, else insert new record into table & deliver. you can truncate the table as frequent as you like (several times a day).
as Message-ID is supposed to be universal unique per message, this works (generally), there may be exceptions though.
IOW, not something to cope with stock settings.
Katip
--
HMS 5.7, MariaDB 10.4.10, SA 3.4.4, ClamAV 0.103.5

Post Reply