<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""><blockquote type="cite" class=""><div class="">Le 11 mars 2020 à 19:32, Juri Haberland <<a href="mailto:juri@koschikode.com" class="">juri@koschikode.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class="">Hi list,<br class=""><br class="">I have a small problem with recipient_delimiters contained in usernames.<br class="">Recently I have extended recipient_delimiter from "+" to "+-" in both<br class="">Postfix and Dovecot (using lmtp) and now any user that have a '-' in it's<br class="">username can't receive mail anymore, because lmtp truncates the localpart<br class="">after the '-' and of course can't find the first half in the user database.<br class=""><br class="">To illustrate: given an account "<a href="mailto:foo-bar@example.com" class="">foo-bar@example.com</a>", I get the following<br class="">log entry from postfix:<br class="">Mar  9 09:31:43 batleth postfix/lmtp[6196]: 9A7BA33E005B:<br class="">to=<<a href="mailto:foo-bar@example.com" class="">foo-bar@example.com</a>>,<br class="">relay=<a href="http://batleth.sapienti-sat.org" class="">batleth.sapienti-sat.org</a>[private/dovecot-lmtp], delay=20,<br class="">delays=20/0.01/0.01/0.08, dsn=5.1.1, status=bounced (host<br class=""><a href="http://batleth.sapienti-sat.org" class="">batleth.sapienti-sat.org</a>[private/dovecot-lmtp] said: 550 5.1.1<br class=""><<a href="mailto:foo-bar@example.com" class="">foo-bar@example.com</a>> User doesn't exist: <a href="mailto:foo@example.com" class="">foo@example.com</a> (in reply to RCPT<br class="">TO command))</div></blockquote><blockquote type="cite" class="">Is there any way to tell lmtp to first look for<br class=""><user><delimiter><extension> and if that fails look for <user> only (the<br class="">reverse order would be ok, too)?<br class=""><br class=""></blockquote><div><br class=""></div><font color="#000000" class="">This is already what they do AFAIK. I’m using ‘-‘ as delimiter for a long time and didn’t have any issue with my mails.</font></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><font color="#000000" class="">I think this postfix error only reflects the last attempt, and not all the resolution attempts. Try increasing the log (either in postfix or LMTP) to see what append exactly.</font></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><div class=""><br class=""></div></div></div></body></html>