multiple copies of email

This section contains user-submitted tutorials.
Post Reply
Shankar
New user
New user
Posts: 2
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: 21922
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: 1047
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

Shankar
New user
New user
Posts: 2
Joined: 2022-05-05 14:43

Re: multiple copies of email

Post by Shankar » 2022-05-25 11:53

I am a new Be here. I dont know how to avoid duplicate mails while receiving from external accounts. There is script of Hemant Vats to delete the Duplicate mail, but some it happens that some mails dont reach to the users at all.

Where the TO and CC and BCC all are in the same local server , it will deliver 3 mails to each users where as our SMTP server from where we are downloading shows only one email.

Help us Please.
Thanks & Regards
Shankar
9821902676

Post Reply