duplicates triplicates

Discussion in 'General' started by lolbrin, Sep 8, 2017.

  1. lolbrin

    lolbrin New Member HowtoForge Supporter


    I have a little problem with freshly installed ispconfig.
    If i make a mail address: [email protected]
    and make some aliaseses: [email protected] -> [email protected]
    [email protected] -> [email protected]
    and forwarders: [email protected] -> [email protected]
    [email protected] -> [email protected]

    If i write a mail to [email protected], [email protected], [email protected], [email protected], [email protected] i got 5 separate e-mails even the 5 emails are exactly the same.
    I don't know whats the problem, if i make this in GSuite it's ok. What should i do? Install some filter? Turn on some options?

    Btw whats the difference between forwarders and aliases? Only the numbers of destinations?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's to be expected as postfix is not deduplicating emails based on the text that you write in an email. An email is seen as to be unique when you send it to a specific address, no matter if you later forward these single unique emails to the same address again.

    Yes. Plus that you can use a forward to send emails to an external address not hosted on your server.
  3. lolbrin

    lolbrin New Member HowtoForge Supporter

    Dear Till,
    Thanks but what van I did with this problem?
    Add this to master.cf
    Is the solution? It's only handle self duplicates but from other senders.
    Or should I make something in sieve or in dovecot?
    In courier there was reformail solution.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I don't know, never had that problem as I do not send myself the same email several times to the same address through aliases.
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Yes, that is the solution. Be aware you can't use that if you use address verification (reject_unverified_{sender,recipient}).

    No, sieve redirects inject a new message into postfix, it will not solve this duplication, but will in fact create a duplication scenario that cannot be solved by postfix. This is exactly what happens when you create one mailbox (address1) and set the 'Send copy to' to forward to another mailbox (address2) - it sets that forward up in sieve, and if you email both address1 and address2, you will receive 2 copies.

    I think this might be worth an rfe, I would much prefer to do the mailbox 'Send copy to' in postfix, not sieve.

    Also if interested, I did a little testing regarding how amavis processes mail in some of theses scenarios. Anything that forwards in postfix (aliases, forwards and catchall addrs) use the spamfilter settings of the domain (irrespective of the enable_original_recipient setting); a sieve forward (address1->address2 scenario) always uses the spamfilter settings of address1, the settings of address2 are completely ignored.

Share This Page