I'm trying to send email from the command line and going nowhere fast...
$ ls -l ~/.wbar
-rw-r--r-- 1 tc staff 45 Mar 25 18:19 /home/tc/.wbar
$ cat .wbar | msmtp --debug --from=default sudoer@gmail.com
ignoring system configuration file /usr/local/etc/msmtprc: No such file or directory
loaded user configuration file /home/tc/.msmtprc
falling back to default accountusing account default from /home/tc/.msmtprc
host = smtp.gmail.com
port = 587
timeout = off
protocol = smtp
domain = localhost
auth = choose
user = sudoer
password = *
passwordeval = (not set)
ntlmdomain = (not set)
tls = on
tls_starttls = on
tls_trust_file = /home/tc/.certs/Equifax_Secure_CA.pem
tls_crl_file = (not set)
tls_fingerprint = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_certcheck = on
tls_force_sslv3 = off
tls_min_dh_prime_bits = (not set)
tls_priorities = (not set)
auto_from = off
maildomain = (not set)
from = default
dsn_notify = (not set)
dsn_return = (not set)
keepbcc = off
logfile = (not set)
syslog = (not set)
reading recipients from the command line and the mail
<-- 220 mx.google.com ESMTP tx2sm4003835obb.8
--> EHLO localhost
<-- 250-mx.google.com at your service, [63.225.223.32]
<-- 250-SIZE 35882577
<-- 250-8BITMIME
<-- 250-STARTTLS
<-- 250 ENHANCEDSTATUSCODES
--> STARTTLS
<-- 220 2.0.0 Ready to start TLS
Illegal instruction
$
Not sure what the SIZE refers to (certainly not the message content!) but my .msmptrc
[ETA - note to self , size is maximum message size allowed by server]
$ cat ~/.msmptrc
account default
host smtp.gmail.com
port 587
protocol smtp
auth on
from sudoer@gmail.com
user sudoer
password freakingnuts
tls on
tls_starttls on
tls_trust_file /home/tc/.certs/Equifax_Secure_CA.pem
$
I thought perhaps it was the need for a tls_trust_file since my last experience years ago with msmtp (sarge)
didn't require it (what TC extension installs these files?). I copied this one from the internet, but I don't believe
it is the culprit to my immediate problem. Removing its spec from .msmtprc and using --tls-certcheck=off gave the same fatal result
"Illegal instruction"
After almost 10 hours at this game of solitaire (I'm losing), I need a new perspective.
$ msmtp --version
msmtp version 1.4.24
Platform: i686-pc-linux-gnu
TLS/SSL library: GnuTLS
Authentication library: built-in
Supported authentication methods:
plain cram-md5 external login
IDN support: enabled
NLS: enabled, LOCALEDIR is /usr/local/share/locale
Keyring support: none
System configuration file name: /usr/local/etc/msmtprc
User configuration file name: /home/tc/.msmtprc
Copyright (C) 2010 Martin Lambers and others.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
$
Anybody sucessfully set up msmtp with gmail under TC? If so, how?
TIA