PostFix+Dovecot: Case Sensitive Email Address

dovecotemailpostfix

So I'm having a problem with my email server configuration. I setup my server using this guide. It works great my only problem now is that the email address is case sensitive. I understand why that is because of how Linux handles case sensitivity but this is my personal server and there is only going to be a few users. So user@mysite.com will go but User@mysite.com will bounce.

Message:

: host mysite.com[private/dovecot-lmtp[ said: 550 5.1.1 User doesn't exist: User@mysite.com (in reply to RCPT TO command)

I've searched for hours and haven't found the solution. I made the below changes but they didn't help.

::dovecot.conf
auth_username_format = %Lu
::/etc/dovecot/conf.d/10-mail.conf
mail_location = mbox:~/mail:INBOX=/var/mail/%Lu

Also all my packages are up-to-date.

Best Answer

While Unix usernames are case sensitive, alias database lookups in Postfix are not. You could e.g. use virtual_alias_domains & virtual_alias_maps instead of mydestination for your domain to make the user part of the address case insensitive.