Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Want to get Duplicate emails

Discussion in 'E-mail Discussions' started by Richard-N, Apr 21, 2017.

  1. Richard-N

    Richard-N Member

    Joined:
    Apr 21, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    croydon, surrey, UK
    cPanel Access Level:
    Website Owner
    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.
     
    arjoton likes this.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    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!
     
  3. Richard-N

    Richard-N Member

    Joined:
    Apr 21, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    croydon, surrey, UK
    cPanel Access Level:
    Website Owner
    Thank you

    I don't have access to those logs so have put in a support request for them
     
  4. Richard-N

    Richard-N Member

    Joined:
    Apr 21, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    croydon, surrey, UK
    cPanel Access Level:
    Website Owner
    These are the logs:
    Code:
    # 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 <dick@mydomain.uk> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <dick@mydomain.uk> VEEFCpsF+1iSVggA/XJSyg Saved"
    2017-04-22 08:26:19 1d1pQx-002I9Z-49 -> harry (dick@mydomain.uk) <dick@mydomain.uk> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <harry@mydomain.uk> 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 why
     
    #4 Richard-N, Apr 22, 2017
    Last edited by a moderator: Apr 22, 2017
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello Richard,

    It looks like this is the intended functionality with Exim when handling the same message to avoid duplicates. Exim documents this:

    Thank you.
     
  6. Richard-N

    Richard-N Member

    Joined:
    Apr 21, 2017
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    croydon, surrey, UK
    cPanel Access Level:
    Website Owner
    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 . . .
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page