Hello, I'm building mutt-1.9.2 from source, and I'm having a problem with sasl in the ./configure stage:
./configure --prefix=/usr --enable-imap --enable-smtp --enable-debug \ --with-ssl --with-gnutls --with-sasl SENDMAIL="/usr/local/bin/msmtp" And this is the error: checking whether SSL_set_mode is declared... yes checking whether SSL_MODE_AUTO_RETRY is declared... yes checking whether X509_V_FLAG_PARTIAL_CHAIN is declared... yes checking for library containing sasl_encode64... no configure: error: could not find sasl lib but, I have already installed sasl, both GNU SASL an Cyrus sasl. root [ /home/daniel ]# ldconfig -p | grep sasl libsasl2.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 libgsasl.so.7 (libc6,x86-64) => /usr/lib/libgsasl.so.7 libgsasl.so (libc6,x86-64) => /usr/lib/libgsasl.so When I try to send a mail, mutt displays this error. -- Mutt: Compose [Approx. msg size: 0.1K Atts: 1]------------------- SMTP authentication requires SASL It it interesting to note that my SENDMAIL goes fine. I can send mails with msmtp from the console: daniel [ ~ ]$ echo "hello there $USER" | msmtp -a default audo...@gmail.com daniel [ ~ ]$ cat /var/log/msmtp.log Dec 25 20:21:44 host=smtp.gmail.com tls=on auth=on user=audo...@gmail.com \ from=audo...@gmail.com recipients=audo...@gmail.com mailsize=84 smtpstatus=250 \ smtpmsg='250 2.0.0 OK 1514229704 g16sm38241283wra.38 - gsmtp' exitcode=EX_OK Another interesting thing is that although mutt doesn't finally send the mail, msmtp reports it as sent. I mean that in the sent file of msmtp you can find: >From audo...@gmail.com Wed Dec 27 23:09:31 2017 Date: Wed, 27 Dec 2017 23:09:31 +0100 From: DGSJ <audo...@gmail.com> To: audo...@gmail.com Subject: prueba mutt Message-ID: <20171227215809.GA13385@lucu-hp> MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.2 (2017-12-15) Status: RO Content-Length: 87 Lines: 6 (body of the mail----) I've installed mutt in several computers, even with the sasl libraries also build from source, and this is the first time I have a problem. In this case I'm using a Xubuntu OS (4.10.0-42-generic), and I have build the libraries installing the Debian packages with apt-get install: libgnitls-dev libssl-dev libsecret-1-dev libgsasl7-dev Well, that's all. Any help will be welcomed. Thank you in advance for your help. -- ------------------------- Daniel Gutiérrez San José