Author Topic: Loginname - Cyrus-Mailserver  (Read 3686 times)

Offline Neo van Matix

  • Newbie
  • *
  • Posts: 1
Loginname - Cyrus-Mailserver
« on: September 11, 2008, 03:00:57 AM »
Hi,

i set up an Cyrus-IMAP-Webserver on a root-server from Hetzner-Online. Additionaly, i installed Roundcube to access my emails.

So, my problem is... i _must_ login with the "full" username - like test.snowsong.de (snowsong.de is my domain, test the mail-useraccount/adress).

Okay, i think its a cyrus-configuration-thing - but... i read something about to "add automaticly an domain", as i installed roundecube. I didn't fill out the form - where can i do it change now? In which configuration file?

Is it that, what i'm searching for? I want to login with "test" - i dont want to type in the full "name" test.snowsong.de - only "test". Can i resolv this issue with the configuration-option, i wrote above?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Loginname - Cyrus-Mailserver
« Reply #1 on: September 11, 2008, 07:05:36 AM »
you can set the default domain name in $rcmail_config['username_domain'] in your config/main.inc.php file but i think you will also need to change

Code: [Select]

if (!empty($config['username_domain']) && !strpos($username, '@')) {
     if (is_array($config['username_domain']) && isset($config['username_domain'][$host]))
        $username .= '@'.$config['username_domain'][$host];
     else if (is_string($config['username_domain']))
        $username .= '@'.$config['username_domain'];
}


in program/include/rcmail.php as RC uses @ in your username.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦