my imapd.conf: virtdomains: yes defaultdomain: localhost That is the way I got Outlook 365. How did you set up your mailboxes using cyradm? Format: user.{username}.domain.com Set PW: saslpasswd2 userid@xxxxxxxxxx -r domain.com For testing user accounts: testsaslauthd -u userid -r domain.com -p YourPassword -s imap from: https://www.cyrusimap.org/imap/concepts/features/virtual-domains.html Here is a sample imapd.conf with a minimal set of configuration options: configdirectory: /var/imap partition-default: /var/spool/cyrus admins: admin lukecage.admin@xxxxxxxxxxxxx mercedesknight.admin@xxxxxxxxxxxxx virtdomains: yes defaultdomain: exampleisp.net I believe the comment Doc in imapd.conf stating “virtdomains: userid” is incorrect. From: Steve Turner <sdturne@xxxxxxxxxx> I would rather not modify the code unless the solution I come up with would be accepted into the mainline code base. Prior to your reply, I've been running with the following settings: virtdomains: userid defaultdomain: imap.sample.domain.com loginrealms: imap.sample.domain.com This allows logging as either "person" or "person@xxxxxxxxxxxxxxxxxxxxxx" Changing the configuration as you suggested: virtdomains: userid defaultdomain: sample.domain.com loginrealms: imap.sample.domain.com Allows logging as either "person", "person@xxxxxxxxxxxxxxxxx", or "person@xxxxxxxxxxxxxxxxxxxxxx", but in the final case I get a "Mailbox not found" error. And you are correct, simply removing the loginrealms statement: virtdomains: userid defaultdomain: imap.sample.domain.com still allows logging as either "person" or "person@xxxxxxxxxxxxxxxxxxxxxx". I will simply have to do without the ability to login as "person@xxxxxxxxxxxxxxxxx". |