[horde] Horde webmail, FreeBSD, Imap or Smtp server outgoing authentication error virtual hosts

Grouchy Sysadmin sysadmin at grouchysysadmin.com
Sun Feb 25 00:25:59 UTC 2018



On 02/24/2018 05:56 PM, David Mehler wrote:
> Hello Simon,
>
> How do you do lowercase enforcing and require a full email and not
> just a username?
>
> Thanks.
> Dave.
>
>

Lowercase login names can be enforced by adding this to 
config/hooks.local.php

<?php

class Horde_Hooks
{

// Lowercase usernames. Without this, duplicate profiles show up and 
cause permission denied errors when using IMAP authentication
public function authusername($userId, $toHorde)     {
         return $toHorde
                 ? Horde_String::lower($userId)
                 : $userId;
         }
}


More information about the horde mailing list