Javin,
Here's the output of the printf

        linux-gate.so.1 =>  (0xb7767000)
        libncursesw.so.5 => /lib/i386-linux-gnu/libncursesw.so.5
        (0xb771f000)
        libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb76ff000)
        libgssapi_krb5.so.2 =>
        /usr/lib/i386-linux-gnu/libgssapi_krb5.so.2 (0xb76c1000)
        libkrb5.so.3 => /usr/lib/i386-linux-gnu/libkrb5.so.3
        (0xb75ef000)
        libk5crypto.so.3 => /usr/lib/i386-linux-gnu/libk5crypto.so.3
        (0xb75c5000)
        libcom_err.so.2 => /lib/i386-linux-gnu/libcom_err.so.2
        (0xb75bf000)
        libgnutls.so.26 => /usr/lib/i386-linux-gnu/libgnutls.so.26
        (0xb74f6000)
        libsasl2.so.2 => /usr/lib/i386-linux-gnu/libsasl2.so.2
        (0xb74da000)
        libtokyocabinet.so.9 =>
        /usr/lib/i386-linux-gnu/libtokyocabinet.so.9 (0xb743b000)
        libgpgme.so.11 => /usr/lib/libgpgme.so.11 (0xb7405000)
        libgpg-error.so.0 => /lib/i386-linux-gnu/libgpg-error.so.0
        (0xb7400000)
        libidn.so.11 => /usr/lib/i386-linux-gnu/libidn.so.11
        (0xb73cd000)
        libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6
        (0xb726a000)
        libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2
        (0xb7266000)
        libkrb5support.so.0 =>
        /usr/lib/i386-linux-gnu/libkrb5support.so.0 (0xb725d000)
        libkeyutils.so.1 => /lib/i386-linux-gnu/libkeyutils.so.1
        (0xb7257000)
        libresolv.so.2 => /lib/i386-linux-gnu/i686/cmov/libresolv.so.2
        (0xb7243000)
        libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
        (0xb722a000)
        /lib/ld-linux.so.2 (0xb7768000)
        libtasn1.so.3 => /usr/lib/i386-linux-gnu/libtasn1.so.3
        (0xb7218000)
        libgcrypt.so.11 => /lib/i386-linux-gnu/libgcrypt.so.11
        (0xb7193000)
        libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb7179000)
        libp11-kit.so.0 => /usr/lib/i386-linux-gnu/libp11-kit.so.0
        (0xb7167000)
        libbz2.so.1.0 => /lib/i386-linux-gnu/libbz2.so.1.0 (0xb7156000)
        librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1
        (0xb714d000)
        libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6
        (0xb7127000)

the certs are where  expected.
I can get the hash, 
but when trying to assemble the commands for the openssl tests, I can't
get everything set up using speech output and/or braille manipulating
cuts
and pastes
before the openssl times out
Is it relevant that I can read mail with ssl correctly?
I will try to fiddle with how I can fix up the data for the openssl
test,
but my brain may melt down first! <GRIN>
Don't understand what you mean by "fastmail control panel?" don't have
such
I know of.

Thanks will keep thrashing, nothing else works,
although I may try msmtp.

  Tom Fowle
  wa6iv...@fastmail.fm


On Thu, Nov 20, 2014, at 10:55 AM, JaviM wrote:
> > 
> > libsasl2 is installed.
> > snip from .muttrc
> > 
> > set my_server=mail.messagingengine.com
> > set my_smtp_server=mail.messagingengine.com
> > set my_user=wa6iv...@fastmail.fm
> > set my_pass = "********"
> > 
> > set header_cache=~/.mutt/hcache/fastmail
> > 
> > set imap_user=$my_user
> > set imap_pass = $my_pass
> > #
> > set smtp_url ="smtps://$my_user:$my_pass@$my_smtp_server:465"
> > 
> 
> Hi:
> 
> 1) please, run this command on terminal and post the output:
> 
>    ldd $(which mutt)
> 
> 
> 2) you should discard errors in the network from mutt 
> to fastmail SMTP servers
>       mail.messagingengine.com:465   SSL
>       mail.messagingengine.com:587   STARTTLS
> 
> If
>       username= wa6iv...@fastmail.fm
>       password= mysecret
>       ssl certificates are kept in /etc/ssl/certs
> then, follow following steps.
> 
> First, calculate hashed base64 representation of your real
> username+password with:
> 
>       printf "\0wa6iv...@fastmail.fm\0mysecret" | openssl enc -a
> 
> or equivalent command with perl:
>       perl -MMIME::Base64 -e 'print 
> encode_base64("\000wa6iv...@fastmail.fm\000mysecret")'
> 
> 
> Hashed string will be similar to:
>       AHlvdXJfdXNlcm5hbWUAeW91cl9wYXNzd29yZA==
> 
> 
> Then, try an openssl connection:
>       $ openssl s_client -connect mail.messagingengine.com:465 -crlf -ign_eof 
> -CApath /etc/ssl/certs 
>       [...]
>       EHLO localhost
>       [...]
>       AUTH PLAIN AHlvdXJfdXNlcm5hbWUAeW91cl9wYXNzd29yZA==
> In this point, you will receive a "OK"/"Accepted" or similar
> successfull message. If not, you have problems in fastmail servers,
> and you will need to check configuration in fastmail control panel.
> 
> Check also STARTTLS port:
>       $ openssl s_client -starttls smtp -connect mail.messagingengine.com:587 
> -crlf -ign_eof -CApath /etc/ssl/certs 
> 
> 
> If you send logs from above commands, PLEASE, dont include your real
> hashed string (similar to AHlvdXJfdXNlcm5hbWUAeW91cl9wYXNzd29yZA==):
> it is equivalent to your real username and password. 
> 
> 
> 
> References:
> http://stackoverflow.com/questions/11046135/how-to-send-email-using-simple-smtp-commands-via-gmail
> http://ghost.deuterion.net/smtp-debugging-smtp-with-tlsssl-and-auth/
> 
> 
> 

Reply via email to