Want to get Duplicate emails
I want to be able to forward emails addressed to user1 and user2 to a common mailbox, should be easy with forwarding I thought. If user1 and user2 both get the same email (eg both being in the To or CC: field or perhaps one TO: and one BCC:) then I want the email to stay duplicated, we then filter and sort our end.
I thought that if I used forwarding as opposed to a global filter then I will get duplicate emails eg that is the behaviour seen by others in threads such as this one
Duplicate forwards email issue
I can forward successfully between mailboxes but cpanel is faithfully deleted the duplicates unlike the experience in the thread above.
Any idea what may be happening?
I have raised this as a query with my host but basically got a brush off as they tested it with gmail which works funny - you actually see the bcc field when you get bcc-ed on a gmail email.
-
Hello, Could you find the message ID in the email headers for one of the affected messages, and then search for it in /var/log/exim_mainlog? EX: exigrep MSGID /var/log/exim_mainlog
This will give us a better idea of what's configured and what's happening to the message upon delivery. Thanks!0 -
Thank you I don't have access to those logs so have put in a support request for them 0 -
These are the logs: # exigrep 1d1pQx-002I9Z-49 /var/log/exim_mainlog 2017-04-22 08:26:19 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1d1pQx-002I9Z-49 2017-04-22 08:26:19 1d1pQx-002I9Z-49 H=mx2.ukhost4u.com [188.64.186.7]:41944 Warning: Message has been scanned: no virus or other harmful content was found 2017-04-22 08:26:19 1d1pQx-002I9Z-49 <= user1@mydomain.co.uk H=mx2.ukhost4u.com [188.64.186.7]:41944 P=esmtps X=TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no S=2749 id=07447227-79e3-f31d-a4b4-bd4e18b7756e@mydomain.co.uk T="test to harry cc dick" for dick@mydomain.uk harry@mydomain.uk 2017-04-22 08:26:19 1d1pQx-002I9Z-49 => dick R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 VEEFCpsF+1iSVggA/XJSyg Saved" 2017-04-22 08:26:19 1d1pQx-002I9Z-49 -> harry (dick@mydomain.uk) R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 VEEFCpsF+1iSVggA/XJSyg:2 Saved" 2017-04-22 08:26:19 1d1pQx-002I9Z-49 Completed
I have set up test email boxes Tom, Dick and Harry. No global filters which affect Dick and Harry. Forwarder setup so that email to Dick gets forwarded to Harry. From the web and this forum I expect a global filter to delete a duplicate but a forwarder to create duplicates so I should see two emails in Harry's email box but only see one so one is getting deleted but not sure why0 -
Hello Richard, It looks like this is the intended functionality with Exim when handling the same message to avoid duplicates. Exim documents this: 11. Duplicate addresses Once routing is complete, Exim scans the addresses that are assigned to local and remote transports, and discards any duplicates that it finds. During this check, local parts are treated as case-sensitive. This happens only when actually delivering a message; when testing routers with -bt, all the routed addresses are shown.
Thank you.0 -
Thanks Michael. What confuses me is that people have also been finding the opposite, eg in that post from last year linked to above. I have found a sort of workaround in that I can forward to another host's cpanel and the duplicates both get delivered so that gives me an idea I can develop. Have yet to find a way to make a wildcard work on a bcc . . . 0 -
Hello Richard, I'm unable to reproduce behavior different to how Exim explains this in their duplicate addresses documentation, so it looks to be working as intended. Feel free to open a new thread if you need help with a different issue (wildcard bcc). Thank you. 0
Please sign in to leave a comment.
Comments
6 comments