fatal: no SASL authentication mechanisms - Postfix + Dovecot












1















I am trying to configure a simple email server that uses dovecot for the auth. I am inexperienced with the email procedures and I can't figure out what the problem is here:

postfix/smtpd[26148]: fatal: no SASL authentication mechanisms



My postfix's config file:



tpd_banner = $myhostname ESMTP $mail_name (Ubuntu/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mynetworks = 127.0.0.0/8, 10.0.0.0/24
mailbox_size_limit = 0
home_mailbox = Maildir/
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noplaintext,noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client


My dovecot config:



auth_mechanisms = plain cram-md5
auth_verbose = yes
base_dir = /var/run/dovecot/
info_log_path = /var/log/dovecot.info
log_path = /var/log/dovecot
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
passdb {
args = /etc/dovecot/passwd
driver = passwd-file
}
protocols = imap pop3
service auth {
executable = /usr/lib/dovecot/auth
user = root
}
service imap-login {
chroot = login
executable = /usr/lib/dovecot/imap-login
user = dovecot
}
service imap {
executable = /usr/lib/dovecot/imap
}
service pop3-login {
chroot = login
executable = /usr/lib/dovecot/pop3-login
user = dovecot
}
service pop3 {
executable = /usr/lib/dovecot/pop3
}
ssl = no
userdb {
args = /etc/dovecot/users
driver = passwd-file
}
valid_chroot_dirs = /var/spool/vmail
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}


What is wrong with this configuration?










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    I am trying to configure a simple email server that uses dovecot for the auth. I am inexperienced with the email procedures and I can't figure out what the problem is here:

    postfix/smtpd[26148]: fatal: no SASL authentication mechanisms



    My postfix's config file:



    tpd_banner = $myhostname ESMTP $mail_name (Ubuntu/GNU)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    myhostname = localhost
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = $myhostname
    mynetworks = 127.0.0.0/8, 10.0.0.0/24
    mailbox_size_limit = 0
    home_mailbox = Maildir/
    virtual_mailbox_domains = /etc/postfix/vhosts
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_maps = hash:/etc/postfix/vmaps
    virtual_minimum_uid = 1000
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    recipient_delimiter = +
    inet_interfaces = all
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noplaintext,noanonymous
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth-client


    My dovecot config:



    auth_mechanisms = plain cram-md5
    auth_verbose = yes
    base_dir = /var/run/dovecot/
    info_log_path = /var/log/dovecot.info
    log_path = /var/log/dovecot
    log_timestamp = "%Y-%m-%d %H:%M:%S "
    mail_location = maildir:/home/vmail/%d/%n
    passdb {
    args = /etc/dovecot/passwd
    driver = passwd-file
    }
    protocols = imap pop3
    service auth {
    executable = /usr/lib/dovecot/auth
    user = root
    }
    service imap-login {
    chroot = login
    executable = /usr/lib/dovecot/imap-login
    user = dovecot
    }
    service imap {
    executable = /usr/lib/dovecot/imap
    }
    service pop3-login {
    chroot = login
    executable = /usr/lib/dovecot/pop3-login
    user = dovecot
    }
    service pop3 {
    executable = /usr/lib/dovecot/pop3
    }
    ssl = no
    userdb {
    args = /etc/dovecot/users
    driver = passwd-file
    }
    valid_chroot_dirs = /var/spool/vmail
    protocol pop3 {
    pop3_uidl_format = %08Xu%08Xv
    }


    What is wrong with this configuration?










    share|improve this question














    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1


      1






      I am trying to configure a simple email server that uses dovecot for the auth. I am inexperienced with the email procedures and I can't figure out what the problem is here:

      postfix/smtpd[26148]: fatal: no SASL authentication mechanisms



      My postfix's config file:



      tpd_banner = $myhostname ESMTP $mail_name (Ubuntu/GNU)
      biff = no

      # appending .domain is the MUA's job.
      append_dot_mydomain = no

      # Uncomment the next line to generate "delayed mail" warnings
      #delay_warning_time = 4h

      myhostname = localhost
      alias_maps = hash:/etc/aliases
      alias_database = hash:/etc/aliases
      myorigin = $myhostname
      mynetworks = 127.0.0.0/8, 10.0.0.0/24
      mailbox_size_limit = 0
      home_mailbox = Maildir/
      virtual_mailbox_domains = /etc/postfix/vhosts
      virtual_mailbox_base = /home/vmail
      virtual_mailbox_maps = hash:/etc/postfix/vmaps
      virtual_minimum_uid = 1000
      virtual_uid_maps = static:5000
      virtual_gid_maps = static:5000
      recipient_delimiter = +
      inet_interfaces = all
      smtpd_sasl_auth_enable = yes
      smtpd_sasl_security_options = noplaintext,noanonymous
      smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
      smtpd_sasl_type = dovecot
      smtpd_sasl_path = private/auth-client


      My dovecot config:



      auth_mechanisms = plain cram-md5
      auth_verbose = yes
      base_dir = /var/run/dovecot/
      info_log_path = /var/log/dovecot.info
      log_path = /var/log/dovecot
      log_timestamp = "%Y-%m-%d %H:%M:%S "
      mail_location = maildir:/home/vmail/%d/%n
      passdb {
      args = /etc/dovecot/passwd
      driver = passwd-file
      }
      protocols = imap pop3
      service auth {
      executable = /usr/lib/dovecot/auth
      user = root
      }
      service imap-login {
      chroot = login
      executable = /usr/lib/dovecot/imap-login
      user = dovecot
      }
      service imap {
      executable = /usr/lib/dovecot/imap
      }
      service pop3-login {
      chroot = login
      executable = /usr/lib/dovecot/pop3-login
      user = dovecot
      }
      service pop3 {
      executable = /usr/lib/dovecot/pop3
      }
      ssl = no
      userdb {
      args = /etc/dovecot/users
      driver = passwd-file
      }
      valid_chroot_dirs = /var/spool/vmail
      protocol pop3 {
      pop3_uidl_format = %08Xu%08Xv
      }


      What is wrong with this configuration?










      share|improve this question














      I am trying to configure a simple email server that uses dovecot for the auth. I am inexperienced with the email procedures and I can't figure out what the problem is here:

      postfix/smtpd[26148]: fatal: no SASL authentication mechanisms



      My postfix's config file:



      tpd_banner = $myhostname ESMTP $mail_name (Ubuntu/GNU)
      biff = no

      # appending .domain is the MUA's job.
      append_dot_mydomain = no

      # Uncomment the next line to generate "delayed mail" warnings
      #delay_warning_time = 4h

      myhostname = localhost
      alias_maps = hash:/etc/aliases
      alias_database = hash:/etc/aliases
      myorigin = $myhostname
      mynetworks = 127.0.0.0/8, 10.0.0.0/24
      mailbox_size_limit = 0
      home_mailbox = Maildir/
      virtual_mailbox_domains = /etc/postfix/vhosts
      virtual_mailbox_base = /home/vmail
      virtual_mailbox_maps = hash:/etc/postfix/vmaps
      virtual_minimum_uid = 1000
      virtual_uid_maps = static:5000
      virtual_gid_maps = static:5000
      recipient_delimiter = +
      inet_interfaces = all
      smtpd_sasl_auth_enable = yes
      smtpd_sasl_security_options = noplaintext,noanonymous
      smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
      smtpd_sasl_type = dovecot
      smtpd_sasl_path = private/auth-client


      My dovecot config:



      auth_mechanisms = plain cram-md5
      auth_verbose = yes
      base_dir = /var/run/dovecot/
      info_log_path = /var/log/dovecot.info
      log_path = /var/log/dovecot
      log_timestamp = "%Y-%m-%d %H:%M:%S "
      mail_location = maildir:/home/vmail/%d/%n
      passdb {
      args = /etc/dovecot/passwd
      driver = passwd-file
      }
      protocols = imap pop3
      service auth {
      executable = /usr/lib/dovecot/auth
      user = root
      }
      service imap-login {
      chroot = login
      executable = /usr/lib/dovecot/imap-login
      user = dovecot
      }
      service imap {
      executable = /usr/lib/dovecot/imap
      }
      service pop3-login {
      chroot = login
      executable = /usr/lib/dovecot/pop3-login
      user = dovecot
      }
      service pop3 {
      executable = /usr/lib/dovecot/pop3
      }
      ssl = no
      userdb {
      args = /etc/dovecot/users
      driver = passwd-file
      }
      valid_chroot_dirs = /var/spool/vmail
      protocol pop3 {
      pop3_uidl_format = %08Xu%08Xv
      }


      What is wrong with this configuration?







      postfix dovecot






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '17 at 21:44









      SergiuSergiu

      1614




      1614





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          I'm not sure if your socket private/auth-client exists. Try to replace with:
          smtpd_sasl_path = private/auth in main.cf.






          share|improve this answer































            0














            The problem was that I had to generate a TLS certificate and make dovecot and postfix use it.
            The private/auth file will be generated by dovecot automatically after that.






            share|improve this answer
























            • Can you explain the steps to do that?

              – kurdtpage
              Jun 26 '18 at 2:01











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f980535%2ffatal-no-sasl-authentication-mechanisms-postfix-dovecot%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









            0














            I'm not sure if your socket private/auth-client exists. Try to replace with:
            smtpd_sasl_path = private/auth in main.cf.






            share|improve this answer




























              0














              I'm not sure if your socket private/auth-client exists. Try to replace with:
              smtpd_sasl_path = private/auth in main.cf.






              share|improve this answer


























                0












                0








                0







                I'm not sure if your socket private/auth-client exists. Try to replace with:
                smtpd_sasl_path = private/auth in main.cf.






                share|improve this answer













                I'm not sure if your socket private/auth-client exists. Try to replace with:
                smtpd_sasl_path = private/auth in main.cf.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 27 '17 at 8:55









                ArtexArtex

                1235




                1235

























                    0














                    The problem was that I had to generate a TLS certificate and make dovecot and postfix use it.
                    The private/auth file will be generated by dovecot automatically after that.






                    share|improve this answer
























                    • Can you explain the steps to do that?

                      – kurdtpage
                      Jun 26 '18 at 2:01
















                    0














                    The problem was that I had to generate a TLS certificate and make dovecot and postfix use it.
                    The private/auth file will be generated by dovecot automatically after that.






                    share|improve this answer
























                    • Can you explain the steps to do that?

                      – kurdtpage
                      Jun 26 '18 at 2:01














                    0












                    0








                    0







                    The problem was that I had to generate a TLS certificate and make dovecot and postfix use it.
                    The private/auth file will be generated by dovecot automatically after that.






                    share|improve this answer













                    The problem was that I had to generate a TLS certificate and make dovecot and postfix use it.
                    The private/auth file will be generated by dovecot automatically after that.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 27 '17 at 13:53









                    SergiuSergiu

                    1614




                    1614













                    • Can you explain the steps to do that?

                      – kurdtpage
                      Jun 26 '18 at 2:01



















                    • Can you explain the steps to do that?

                      – kurdtpage
                      Jun 26 '18 at 2:01

















                    Can you explain the steps to do that?

                    – kurdtpage
                    Jun 26 '18 at 2:01





                    Can you explain the steps to do that?

                    – kurdtpage
                    Jun 26 '18 at 2:01


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f980535%2ffatal-no-sasl-authentication-mechanisms-postfix-dovecot%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

                    How did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局