<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Email usernames seem case sensitive. Error &quot;Cannot send mail as&quot; whenever the text case doesn&#x27;t match.]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Recently ran into an odd one to me, mostly because I understood from various specs that emails should be case insensitive, but it seems this may conflict with Cloudron authentication which I guess is case sensitive?</p>
<p dir="auto">A client recently setup their Mail client app after a rebuild, and while I always encourage my clients to use all lowercase for their usernames as a best practice, they used <a href="mailto:Michelle@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">Michelle@example.com</a> for their username instead of <a href="mailto:michelle@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">michelle@example.com</a>. Received the following error in the logs when she tried to send:</p>
<pre><code>Jun 14 09:54:23 [INFO] [84E9F590-D0B1-4CB6-8F29-053BB08D3EEF.1] [core] hook=mail plugin=cloudron function=authorize_mail_from params=&lt;michelle@example.com&gt; retval=DENY msg="Authenticated user Michelle@example.com cannot send mail as michelle@example.com"
</code></pre>
<p dir="auto">My concerns are the following:</p>
<ol>
<li>Usernames and email addresses should be case insensitive. Is Cloudron case-sensitive when it comes to usernames?</li>
<li>If usernames <em>were</em> case sensitive (which seems to be the case here), then why is it even authenticating Michelle@ in the first place when the mailbox name is established in Cloudron as michelle@?</li>
</ol>
<p dir="auto">My expectations:</p>
<ol>
<li>User logs in as <a href="mailto:Michelle@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">Michelle@example.com</a> or even <a href="mailto:MICHELLE@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">MICHELLE@example.com</a> which Cloudron should equate as <a href="mailto:michelle@example.com" target="_blank" rel="noopener noreferrer nofollow ugc">michelle@example.com</a></li>
<li>User able to send mail as anything that matches their username email, since case sensitivity should not matter.</li>
</ol>
]]></description><link>https://forum.cloudron.io/topic/2689/email-usernames-seem-case-sensitive-error-cannot-send-mail-as-whenever-the-text-case-doesn-t-match</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 07:35:09 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2689.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Jun 2020 17:21:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Email usernames seem case sensitive. Error &quot;Cannot send mail as&quot; whenever the text case doesn&#x27;t match. on Mon, 15 Jun 2020 17:03:29 GMT]]></title><description><![CDATA[<p dir="auto">Indeed, there was a missing normalization. I have fixed it for the next release.</p>
]]></description><link>https://forum.cloudron.io/post/9661</link><guid isPermaLink="true">https://forum.cloudron.io/post/9661</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 15 Jun 2020 17:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to Email usernames seem case sensitive. Error &quot;Cannot send mail as&quot; whenever the text case doesn&#x27;t match. on Mon, 15 Jun 2020 16:51:22 GMT]]></title><description><![CDATA[<p dir="auto">I managed to reproduce it:</p>
<p dir="auto"><img src="/assets/uploads/files/1592239874713-dd32ed12-1e76-405d-abbd-d8d75022cce7-image-resized.png" alt="dd32ed12-1e76-405d-abbd-d8d75022cce7-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/9659</link><guid isPermaLink="true">https://forum.cloudron.io/post/9659</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 15 Jun 2020 16:51:22 GMT</pubDate></item><item><title><![CDATA[Reply to Email usernames seem case sensitive. Error &quot;Cannot send mail as&quot; whenever the text case doesn&#x27;t match. on Mon, 15 Jun 2020 16:49:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yes, definitely seems like a defect somewhere. I initially didn't think it was related to that case sensitivity and had even informed my clients before that they're not case-sensitive, but this seems to either not be the case any longer (changed inadvertently?) or I just perhaps never ran into it before but it maybe was case sensitive for a while now, not too sure. Hopefully this can be fixed though, as this will certainly present more issues as the business grows too and more clients are onboarded.</p>
]]></description><link>https://forum.cloudron.io/post/9658</link><guid isPermaLink="true">https://forum.cloudron.io/post/9658</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Mon, 15 Jun 2020 16:49:17 GMT</pubDate></item><item><title><![CDATA[Reply to Email usernames seem case sensitive. Error &quot;Cannot send mail as&quot; whenever the text case doesn&#x27;t match. on Mon, 15 Jun 2020 16:31:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> We have tests to make sure that mailbox delivery code is case insensitive. But maybe there is a bug that authentication username is case sensitive.</p>
]]></description><link>https://forum.cloudron.io/post/9656</link><guid isPermaLink="true">https://forum.cloudron.io/post/9656</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 15 Jun 2020 16:31:38 GMT</pubDate></item></channel></rss>