<div dir="ltr"><div dir="ltr">On Thu, 28 Oct 2021 at 07:40, Bernardo Reino <<a href="mailto:reinob@bbmk.org">reinob@bbmk.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> [...]<br>
<br>
Further to the responses you have received already, I'd like to note that if you <br>
want to receive mail at {alias}@{user}.<a href="http://mydomain.com" rel="noreferrer" target="_blank">mydomain.com</a> then, at the time of <br>
*sending* the e-mail there needs to be an MX record for user, as otherwise the <br>
sender won't be able to connect to your (postfix) server.<br>
<br>
That means that the users will have to exist *before* postfix receives the <br>
message, and thus clearly before dovecot receives it.. so you may have to <br>
reconsider your requirement of adding users of on-the-fly.<br></blockquote><div><br></div><div>Excellent point. So we are also using a DNS server with this (CoreDNS with some custom plugins). </div><div>This means we are able to handle the dynamic MX records (plus also allowing us to expire domains if </div><div>we need to).</div><div><br></div><div>Cheers,</div><div><br></div><div>Felix </div></div></div>