<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="-1">Hi,<br>
      <br>
      Yes that's the one.<br>
      Thank you for the tip it solved my problem.<br>
      <br>
      Regards,<br>
      Pedro Silva<br>
    </font><br>
    On 11-01-2012 17:27, Dan White wrote:
    <blockquote cite="mid:20120111172737.GB4545@dan.olp.net" type="cite">On
      01/11/12&nbsp;15:32&nbsp;+0000, Pedro Silva wrote:
      <br>
      <blockquote type="cite">Thanks for the suggestion.
        <br>
        I tried what you said bust the result was the same...
        <br>
        <br>
        Here is what my logfile looks like using a webmail imap client
        <br>
        When I authenticate with 'user:pass'
        <br>
        <br>
        cyrus/imap[24503]: accepted connection
        <br>
        cyrus/imap[24503]: login: servername [x.x.x.x] 'user' plaintext
        User
        <br>
        logged in
        <br>
        cyrus/imap[24503]: open: user 'user' opened INBOX
        <br>
        <br>
        now when I use 'user@domain:pass'
        <br>
        <br>
        cyrus/imap[24572]: accepted connection
        <br>
        cyrus/imap[24572]: login: servername [x.x.x.x] 'user@domain'
        plaintext
        <br>
        User logged in
        <br>
        <br>
        but no inbox is opened and no error is reported.
        <br>
        <br>
        Here's my imapd.conf configuration
        <br>
        <br>
        ##########################
        <br>
        lmtp_overquota_perm_failure: yes
        <br>
        configdirectory: /var/lib/cyrus
        <br>
        defaultpartition: default
        <br>
        partition-default: /var/spool/cyrus/mail
        <br>
        partition-news: /var/spool/cyrus/news
        <br>
        newsspool: /var/spool/news
        <br>
        duplicatesuppression: 0
        <br>
        altnamespace: no
        <br>
        unixhierarchysep: no
        <br>
        lmtp_downcase_rcpt: yes
        <br>
        admins: cyrus
        <br>
        allowanonymouslogin: no
        <br>
        autocreatequota: 0
        <br>
        umask: 077
        <br>
        sieveusehomedir: false
        <br>
        sievedir: /var/spool/sieve
        <br>
        hashimapspool: true
        <br>
        allowplaintext: yes
        <br>
        sasl_mech_list: PLAIN
        <br>
        allowapop: no
        <br>
        sasl_minimum_layer: 0
        <br>
        servername: exemple.com
        <br>
        loginrealms: exemple.com
        <br>
        sasl_pwcheck_method: auxprop saslauthd
        <br>
        sasl_auto_transition: no
        <br>
        tls_cert_file: /etc/ssl/multicert.pem
        <br>
        tls_key_file: /etc/ssl/private/multicert.key
        <br>
        tls_ca_path: /etc/ssl/certs
        <br>
        tls_session_timeout: 1440
        <br>
        tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
        <br>
        lmtpsocket: /var/run/cyrus/socket/lmtp
        <br>
        idlemethod: poll
        <br>
        idlesocket: /var/run/cyrus/socket/idle
        <br>
        notifysocket: /var/run/cyrus/socket/notify
        <br>
        syslog_prefix: cyrus
        <br>
        #######################################
        <br>
      </blockquote>
      <br>
      Assuming that you only have one domain that you want to be treated
      the same
      <br>
      as a local user login, try adding:
      <br>
      <br>
      virtdomains: userid
      <br>
      defaultdomain: domain.com
      <br>
      <br>
      See:
      <br>
      <br>
<a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/docs/cyrus-imapd/2.4.13/install-virtdomains.php">http://www.cyrusimap.org/docs/cyrus-imapd/2.4.13/install-virtdomains.php</a>
      <br>
      <br>
      ~$ grep domain /etc/imapd.conf | grep -v '^#'
      <br>
      virtdomains: userid
      <br>
      defaultdomain: example.org
      <br>
      <br>
      Example:
      <br>
      <br>
      ~$ cyradm --user=dwhite localhost
      <br>
      Password: localhost&gt; lm
      <br>
      INBOX (\HasNoChildren)&nbsp; localhost&gt; quit
      <br>
      <br>
      ~$ cyradm --user=dwhite@example.org localhost
      <br>
      Password: localhost&gt; lm
      <br>
      INBOX (\HasNoChildren)&nbsp; localhost&gt; quit
      <br>
      <br>
      <blockquote type="cite">On 10-01-2012 17:58, Andrew Morgan wrote:
        <br>
        <blockquote type="cite">On Tue, 10 Jan 2012, Pedro Silva wrote:
          <br>
          <br>
          <blockquote type="cite">Hi,
            <br>
            I have a postfix/cyrus/sasl mail server authenticating
            against an ldap
            <br>
            server.
            <br>
            <br>
            It all works fine using a 'login:password' authentication
            but I would
            <br>
            also like to user 'login@realm:password' authentication for
            the mail
            <br>
            accounts (imap and pop3).
            <br>
            <br>
            The authentication bit work fine when I use 'login@realm'
            (in imap) but
            <br>
            no mailbox is opened...
            <br>
            Well my question is: is it possible to map 'login' and
            'login@realm' to
            <br>
            the same mailbox? and if so how can I do that?
            <br>
          </blockquote>
          <br>
          Assuming you are not using virtual domains in Cyrus, the
          "servername"
          <br>
          setting in imapd.conf is used as the realm when no realm is
          given
          <br>
          (using 'login').&nbsp; If you set servername to the realm you want
          to use,
          <br>
          then 'login' and 'login@realm' should be the same for Cyrus.
          <br>
          <br>
          &nbsp;&nbsp;&nbsp; Andy
          <br>
        </blockquote>
      </blockquote>
      <br>
    </blockquote>
  </body>
</html>