linux - Mailx and Gmail nss config dir -


i trying send mail linux command line using mailx command. can send local domain no problem want set mail send gmail account receive mail sent gmail account.

after configuring mail.rc so:

account gmail { set smtp=smtps://smtp.gmail.com:587 set smtp-auth=login set smtp-auth-user=username@gmail.com set smtp-auth-password=password set ssl-verify=ignore } 

i error:

resolving host smtp.gmail.com . . . done. connecting 74.125.25.109 . . . connected. missing "nss-config-dir" variable. "/home/username/dead.letter" 11/354 . . . message not sent. 

after looking "nss-config-dir" here, located certn.db , keyn.db files , added mail.rc so:

account gmail { set smtp=smtps://smtp.gmail.com:587 set smtp-auth=login set smtp-auth-user=username@gmail.com set smtp-auth-password=password set ssl-verify=ignore set nss-config-dir=/home/user/.mozilla/firefox/location.default } 

now when try send mail using command:

echo "sent gmail account" | mailx -v -a gmail -s "command line mail" someemail@domain.com 

i this:

resolving host smtp.gmail.com . . . done. connecting 74.125.25.108 . . . connected. comment-->then waits there 5 mins spits out this: ssl/tls handshake failed: unknown error -5938. "/home/user/dead.letter" 11/354 . . . message not sent. 

does know how either:
a) set mailx/mail.rc access gmail ignore needing nss-config-dir bs?
b) set mailx/mail.rc nss-config-dir works?
c) set mailx/mail.rc access gmail in way(pop maybe -don't know if that's option, haven't looked it?)

any super appreciated.

thank gave me way find better solution. supposedly these keyn.db , certn.db databases of trusted certificate authorities.

i did simple

find / -name "cert*.db" 

to find on system has keyn.db , certn.db files on system (fedora 20).
found them under /etc/pki/nssdb/.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -