Cyrus-Imap: cyradm: cannot authenticate to server with as cyrus












1















I'm a begginer in IMAP.



When i do cyradm --user cyrus localhost, i get:



[root@SRD-GrupoG-Server lib]# cyradm --user cyrus localhost
IMAP Password:
Login failed: generic failure at /usr/lib64/perl5/vendor_perl/Cyrus/IMAP/Admin.pm line 120.
cyradm: cannot authenticate to server with as cyrus


I also did saslpasswd2 -c cyrus to set the password.



My /var/imapd.conf file



configdirectory: /var/lib/imap
defaultpartition: default
partition-default: /var/spool/imap
partition-news: /var/spool/news
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: no
lmtp_downcase_rcpt: yes
admins: cyrus
allowanonymouslogin: no
popminpoll: 1
autocreatequota: 0
umask: 077
sendmail: /usr/sbin/sendmail
sieveusehomedir: false
sievedir: /var/spool/sieve
hashimapspool: true
allowplaintext: yes
sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasl_auto_transition: no
tls_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem
tls_key_file: /etc/ssl/private/ssl-cert-snakeoil.key
tls_ca_path: /etc/ssl/cert
tls_session_timeout: 1440
tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
lmtpsocket: /var/run/cyrus/socket/lmtp
idlemethod: poll
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify
syslog_prefix: cyrus









share|improve this question



























    1















    I'm a begginer in IMAP.



    When i do cyradm --user cyrus localhost, i get:



    [root@SRD-GrupoG-Server lib]# cyradm --user cyrus localhost
    IMAP Password:
    Login failed: generic failure at /usr/lib64/perl5/vendor_perl/Cyrus/IMAP/Admin.pm line 120.
    cyradm: cannot authenticate to server with as cyrus


    I also did saslpasswd2 -c cyrus to set the password.



    My /var/imapd.conf file



    configdirectory: /var/lib/imap
    defaultpartition: default
    partition-default: /var/spool/imap
    partition-news: /var/spool/news
    newsspool: /var/spool/news
    altnamespace: no
    unixhierarchysep: no
    lmtp_downcase_rcpt: yes
    admins: cyrus
    allowanonymouslogin: no
    popminpoll: 1
    autocreatequota: 0
    umask: 077
    sendmail: /usr/sbin/sendmail
    sieveusehomedir: false
    sievedir: /var/spool/sieve
    hashimapspool: true
    allowplaintext: yes
    sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
    sasl_pwcheck_method: auxprop
    sasl_auxprop_plugin: sasldb
    sasl_auto_transition: no
    tls_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem
    tls_key_file: /etc/ssl/private/ssl-cert-snakeoil.key
    tls_ca_path: /etc/ssl/cert
    tls_session_timeout: 1440
    tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
    lmtpsocket: /var/run/cyrus/socket/lmtp
    idlemethod: poll
    idlesocket: /var/run/cyrus/socket/idle
    notifysocket: /var/run/cyrus/socket/notify
    syslog_prefix: cyrus









    share|improve this question

























      1












      1








      1








      I'm a begginer in IMAP.



      When i do cyradm --user cyrus localhost, i get:



      [root@SRD-GrupoG-Server lib]# cyradm --user cyrus localhost
      IMAP Password:
      Login failed: generic failure at /usr/lib64/perl5/vendor_perl/Cyrus/IMAP/Admin.pm line 120.
      cyradm: cannot authenticate to server with as cyrus


      I also did saslpasswd2 -c cyrus to set the password.



      My /var/imapd.conf file



      configdirectory: /var/lib/imap
      defaultpartition: default
      partition-default: /var/spool/imap
      partition-news: /var/spool/news
      newsspool: /var/spool/news
      altnamespace: no
      unixhierarchysep: no
      lmtp_downcase_rcpt: yes
      admins: cyrus
      allowanonymouslogin: no
      popminpoll: 1
      autocreatequota: 0
      umask: 077
      sendmail: /usr/sbin/sendmail
      sieveusehomedir: false
      sievedir: /var/spool/sieve
      hashimapspool: true
      allowplaintext: yes
      sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
      sasl_pwcheck_method: auxprop
      sasl_auxprop_plugin: sasldb
      sasl_auto_transition: no
      tls_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem
      tls_key_file: /etc/ssl/private/ssl-cert-snakeoil.key
      tls_ca_path: /etc/ssl/cert
      tls_session_timeout: 1440
      tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
      lmtpsocket: /var/run/cyrus/socket/lmtp
      idlemethod: poll
      idlesocket: /var/run/cyrus/socket/idle
      notifysocket: /var/run/cyrus/socket/notify
      syslog_prefix: cyrus









      share|improve this question














      I'm a begginer in IMAP.



      When i do cyradm --user cyrus localhost, i get:



      [root@SRD-GrupoG-Server lib]# cyradm --user cyrus localhost
      IMAP Password:
      Login failed: generic failure at /usr/lib64/perl5/vendor_perl/Cyrus/IMAP/Admin.pm line 120.
      cyradm: cannot authenticate to server with as cyrus


      I also did saslpasswd2 -c cyrus to set the password.



      My /var/imapd.conf file



      configdirectory: /var/lib/imap
      defaultpartition: default
      partition-default: /var/spool/imap
      partition-news: /var/spool/news
      newsspool: /var/spool/news
      altnamespace: no
      unixhierarchysep: no
      lmtp_downcase_rcpt: yes
      admins: cyrus
      allowanonymouslogin: no
      popminpoll: 1
      autocreatequota: 0
      umask: 077
      sendmail: /usr/sbin/sendmail
      sieveusehomedir: false
      sievedir: /var/spool/sieve
      hashimapspool: true
      allowplaintext: yes
      sasl_mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
      sasl_pwcheck_method: auxprop
      sasl_auxprop_plugin: sasldb
      sasl_auto_transition: no
      tls_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem
      tls_key_file: /etc/ssl/private/ssl-cert-snakeoil.key
      tls_ca_path: /etc/ssl/cert
      tls_session_timeout: 1440
      tls_cipher_list: TLSv1+HIGH:!aNULL:@STRENGTH
      lmtpsocket: /var/run/cyrus/socket/lmtp
      idlemethod: poll
      idlesocket: /var/run/cyrus/socket/idle
      notifysocket: /var/run/cyrus/socket/notify
      syslog_prefix: cyrus






      imap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 21 '14 at 19:14









      CatCosCatCos

      11126




      11126






















          2 Answers
          2






          active

          oldest

          votes


















          1














          To authenticate cyrus, you need to have a sasl daemon too. Actually, the whole thing is far from trivial, and isn't very well documented.



          First, you had to track your commands with



          strace -s 200 -f your command -args


          Please extend your question with the relevant data and I will be here to help more.



          Second, please check the logs of your system, too. Next to that, in cases of professional system administration questions, the ServerFault SE can you help a lot as well.



          P.s. (sorry for the offtopic, but in your place I used dovecot which have much fewer problems.)






          share|improve this answer
























          • I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

            – CatCos
            Dec 21 '14 at 19:46













          • @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

            – Milkman
            Dec 21 '14 at 19:52











          • THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

            – CatCos
            Dec 21 '14 at 19:55













          • Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

            – CatCos
            Dec 21 '14 at 20:00



















          -2














          chgrp mail /etc/sasldb2 is enough






          share|improve this answer
























          • Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

            – juniorRubyist
            Jan 2 at 19:52













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f855344%2fcyrus-imap-cyradm-cannot-authenticate-to-server-with-as-cyrus%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          To authenticate cyrus, you need to have a sasl daemon too. Actually, the whole thing is far from trivial, and isn't very well documented.



          First, you had to track your commands with



          strace -s 200 -f your command -args


          Please extend your question with the relevant data and I will be here to help more.



          Second, please check the logs of your system, too. Next to that, in cases of professional system administration questions, the ServerFault SE can you help a lot as well.



          P.s. (sorry for the offtopic, but in your place I used dovecot which have much fewer problems.)






          share|improve this answer
























          • I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

            – CatCos
            Dec 21 '14 at 19:46













          • @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

            – Milkman
            Dec 21 '14 at 19:52











          • THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

            – CatCos
            Dec 21 '14 at 19:55













          • Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

            – CatCos
            Dec 21 '14 at 20:00
















          1














          To authenticate cyrus, you need to have a sasl daemon too. Actually, the whole thing is far from trivial, and isn't very well documented.



          First, you had to track your commands with



          strace -s 200 -f your command -args


          Please extend your question with the relevant data and I will be here to help more.



          Second, please check the logs of your system, too. Next to that, in cases of professional system administration questions, the ServerFault SE can you help a lot as well.



          P.s. (sorry for the offtopic, but in your place I used dovecot which have much fewer problems.)






          share|improve this answer
























          • I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

            – CatCos
            Dec 21 '14 at 19:46













          • @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

            – Milkman
            Dec 21 '14 at 19:52











          • THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

            – CatCos
            Dec 21 '14 at 19:55













          • Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

            – CatCos
            Dec 21 '14 at 20:00














          1












          1








          1







          To authenticate cyrus, you need to have a sasl daemon too. Actually, the whole thing is far from trivial, and isn't very well documented.



          First, you had to track your commands with



          strace -s 200 -f your command -args


          Please extend your question with the relevant data and I will be here to help more.



          Second, please check the logs of your system, too. Next to that, in cases of professional system administration questions, the ServerFault SE can you help a lot as well.



          P.s. (sorry for the offtopic, but in your place I used dovecot which have much fewer problems.)






          share|improve this answer













          To authenticate cyrus, you need to have a sasl daemon too. Actually, the whole thing is far from trivial, and isn't very well documented.



          First, you had to track your commands with



          strace -s 200 -f your command -args


          Please extend your question with the relevant data and I will be here to help more.



          Second, please check the logs of your system, too. Next to that, in cases of professional system administration questions, the ServerFault SE can you help a lot as well.



          P.s. (sorry for the offtopic, but in your place I used dovecot which have much fewer problems.)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 21 '14 at 19:40









          MilkmanMilkman

          1213




          1213













          • I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

            – CatCos
            Dec 21 '14 at 19:46













          • @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

            – Milkman
            Dec 21 '14 at 19:52











          • THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

            – CatCos
            Dec 21 '14 at 19:55













          • Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

            – CatCos
            Dec 21 '14 at 20:00



















          • I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

            – CatCos
            Dec 21 '14 at 19:46













          • @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

            – Milkman
            Dec 21 '14 at 19:52











          • THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

            – CatCos
            Dec 21 '14 at 19:55













          • Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

            – CatCos
            Dec 21 '14 at 20:00

















          I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

          – CatCos
          Dec 21 '14 at 19:46







          I got this in var/log/messages when i do the cyradm Dec 21 19:45:33 SRD-GrupoG-Server cyrus/imap[9057]: unable to open Berkeley db /etc/sasldb2: Permission denied

          – CatCos
          Dec 21 '14 at 19:46















          @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

          – Milkman
          Dec 21 '14 at 19:52





          @CatCos They you localized the problem: your sasl isn't properly configured. The main problem with it is that it is nearly undocumented. Try to download some sasl binary tool, and check this config! But I warn you, it won't be simple.

          – Milkman
          Dec 21 '14 at 19:52













          THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

          – CatCos
          Dec 21 '14 at 19:55







          THe only thing i did was install the package cyrus-sasl and change the imapd.conf file. This is for a collegue work. I didn't do nothing in sasldb2

          – CatCos
          Dec 21 '14 at 19:55















          Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

          – CatCos
          Dec 21 '14 at 20:00





          Ok for some reason, this is working now. I only uninstall the cyrus-saslpackage and install again and it started to work ...

          – CatCos
          Dec 21 '14 at 20:00













          -2














          chgrp mail /etc/sasldb2 is enough






          share|improve this answer
























          • Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

            – juniorRubyist
            Jan 2 at 19:52


















          -2














          chgrp mail /etc/sasldb2 is enough






          share|improve this answer
























          • Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

            – juniorRubyist
            Jan 2 at 19:52
















          -2












          -2








          -2







          chgrp mail /etc/sasldb2 is enough






          share|improve this answer













          chgrp mail /etc/sasldb2 is enough







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 19:15









          SergeCubeSergeCube

          1




          1













          • Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

            – juniorRubyist
            Jan 2 at 19:52





















          • Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

            – juniorRubyist
            Jan 2 at 19:52



















          Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

          – juniorRubyist
          Jan 2 at 19:52







          Welcome to Super User. This answer is not very self-explanatory. Could you perhaps edit this answer to provide detail to what this command should solve? Then, I will remove my downvote.

          – juniorRubyist
          Jan 2 at 19:52




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f855344%2fcyrus-imap-cyradm-cannot-authenticate-to-server-with-as-cyrus%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...