<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Thank you for your help. It works, but only for e-mail addressed to
an actual username - i.e., not an alias. <br>
<br>
For e-mails addressed to an alias@domain, Postfix doesn't translate
the alias to username before asking Dovecot, which then replies with
"user unknown" and mail is rejected.<br>
<br>
For example, an e-mail sent to a user over quota and his alias:<br>
<br>
----- The following addresses had permanent fatal errors -----<br>
<alias@domain><br>
(reason: 554 5.7.1 <alias@domain>: Recipient address
rejected: Unknown user)<br>
<username@domain><br>
(reason: 554 5.2.2 <username@domain>: Recipient address
rejected: Quota exceeded (mailbox for user is full))<br>
<br>
<br>
Anyway, this is what I added to Dovecot's configuration:<br>
<br>
service quota-status {<br>
executable = quota-status -p postfix<br>
inet_listener {<br>
port = 999<br>
}<br>
client_limit = 1<br>
}<br>
<br>
And this to Postfix's configuration:<br>
<br>
smtpd_recipient_restrictions = check_policy_service
inet:localhost:999<br>
<br>
<br>
Is there any timeline for fixing the bug in the current sieve
behaviour regarding duplicates?<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 21. 04. 21 03:16, Benny Pedersen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f87d125b3618118671589eeb40b258d3@junc.eu">On 2021-04-20
20:41, Aleš Pečnik wrote:
<br>
<blockquote type="cite">I'm using Dovecot with Postfix (via LMTP).
Because Postfix doesn't
<br>
de-duplicate recipients, I'm using sieve to drop duplicates,
following
<br>
this recipe:
<br>
<a class="moz-txt-link-freetext" href="https://serverfault.com/questions/112958/postfix-aliases-and-duplicate-e-mails-how-to-fix">https://serverfault.com/questions/112958/postfix-aliases-and-duplicate-e-mails-how-to-fix</a>
<br>
</blockquote>
<br>
its a bug, but the workaround is to
<br>
<br>
<a class="moz-txt-link-freetext" href="https://doc.dovecot.org/configuration_manual/quota_plugin/">https://doc.dovecot.org/configuration_manual/quota_plugin/</a>
<br>
<br>
so postfix tempfail before lmtp delivery the first time
<br>
<br>
hopefully it credited you report this problem
<br>
</blockquote>
<br>
</body>
</html>