[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[msmtp-users] Difficulties with initial configuration
I just set up msmtp for the first time and am having some difficulties
configuring it. My ~/.msmtprc is pasted below. When I send mail from
either account to my Hamp account, it arrives. Only when I send mail
from my Fowl account does it actually get there. I replied to an email
to a friend and she got it, however, I did tried sending an email to
another friend and she never got it. I'm also unable to send to test
accounts I open at 10minutemail.com.
I tried not using the MUA, alot, and |-ing a mock message w/ cat, or
just some text w/ echo instead, and this seems to have no effect. I
realized when using the echo form that no return address is displayed
(i.e., when I send a message to Hamp and it actually goes through, but
the cat method seems to be basically the same as what my MUA, alot, is
doing). I included the debug and log entry for the `echo "some text
here"` and `cat mail.txt` methods I tried. Both seem to go through,
which is why I feel like there is some metadata piece msmtp is not
attaching w/ the message and for that reason they are being rejected by
most MDAs.
My understanding of these protocols is limited and this is in part an
attempt to learn something about them, so apologies if I come off like a
total idiot on this. Thanks to anyone willing to take a look at this and
help me out.
$ cat ~/.msmtprc
## Set default values for all following accounts
defaults
# General
#proxy_host 127.0.0.1 # Tor
#proxy_port 9050 # Tor
# Authentication
auth on
# TLS commands
tls on
tls_starttls on
tls_certcheck on
#tls_crl_file off # cert revocation list (CRL)
#tls_trust_file /etc/ssl/certs/ca-certificates.crt
tls_min_dh_prime_bits
tls_priorities
# Sendmail mode specific cmds
logfile ~/.msmtp.log
syslog LOG_MAIL
# Hamp
account Hamp
host smtp.hampshire.edu
port 587
domain smtp.hampshire.edu
user n*@hamphire.edu
from n*@hamphire.edu
password *
#password_eval # set up w/ gnome-keyring or keeppass later
tls_fingerprint
CA:E4:17:4D:C5:D9:C3:6C:E3:DE:78:34:F1:B2:ED:83:7F:2E:90:0D
# Fowl
account Fowl
host smtp.riseup.net
port 587
domain smtp.riseup.net
user f*@riseup.net
from f*@riseup.net
password *
#password_eval # set up w/ gnome-keyring or keeppass later
tls_fingerprint
19:72:84:A1:62:4E:44:23:7D:F7:AA:6B:2E:54:26:41:37:D0:29:E3
$ echo "Sup dog?" | msmtp -a Hamp --debug f*@riseup.net
ignoring system configuration file /etc/msmtprc: No such file or
directory
loaded user configuration file /home/fowlslegs/.msmtprc
using account Hamp from /home/fowlslegs/.msmtprc
host = smtp.hampshire.edu
port = 587
timeout = off
protocol = smtp
domain = smtp.hampshire.edu
auth = choose
user = n*@hamphire.edu
password = *
passwordeval = (not set)
ntlmdomain = (not set)
tls = on
tls_starttls = on
tls_trust_file = (not set)
tls_crl_file = (not set)
tls_fingerprint =
CA:E4:17:4D:C5:D9:C3:6C:E3:DE:78:34:F1:B2:ED:83:7F:2E:90:0D
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 = n*@hamphire.edu
dsn_notify = (not set)
dsn_return = (not set)
keepbcc = off
logfile = /home/fowlslegs/.msmtp.log
syslog = LOG_MAIL
aliases = (not set)
reading recipients from the command line
<-- 220 hyperion.localdomain ESMTP Postfix (Debian/GNU)
--> EHLO smtp.hampshire.edu
<-- 250-hyperion.localdomain
<-- 250-PIPELINING
<-- 250-SIZE 262144000
<-- 250-VRFY
<-- 250-ETRN
<-- 250-STARTTLS
<-- 250-ENHANCEDSTATUSCODES
<-- 250-8BITMIME
<-- 250 DSN
--> STARTTLS
<-- 220 2.0.0 Ready to start TLS
TLS certificate information:
Owner:
Common Name: *.hampshire.edu
Organizational unit: Domain Control Validated
Issuer:
Common Name: Starfield Secure Certificate Authority - G2
Organization: Starfield Technologies, Inc.
Organizational unit: http://certs.starfieldtech.com/repository/
Locality: Scottsdale
State or Province: Arizona
Country: US
Validity:
Activation time: Wed 16 Apr 2014 08:01:03 AM PDT
Expiration time: Sun 02 Dec 2018 08:08:19 AM PST
Fingerprints:
SHA1:
CA:E4:17:4D:C5:D9:C3:6C:E3:DE:78:34:F1:B2:ED:83:7F:2E:90:0D
MD5: 78:B0:31:23:5A:AD:28:EA:73:64:B1:29:90:D5:57:7B
--> EHLO smtp.hampshire.edu
<-- 250-hyperion.localdomain
<-- 250-PIPELINING
<-- 250-SIZE 262144000
<-- 250-VRFY
<-- 250-ETRN
<-- 250-AUTH LOGIN PLAIN
<-- 250-AUTH=LOGIN PLAIN
<-- 250-ENHANCEDSTATUSCODES
<-- 250-8BITMIME
<-- 250 DSN
--> AUTH PLAIN AG5ndjEwQGhhbXBoaXJlLmVkdQAkTCFtM3lidWJibDNz
<-- 235 2.7.0 Authentication successful
--> MAIL FROM:<n*@hamphire.edu>
--> RCPT TO:<f*@riseup.net>
--> DATA
<-- 250 2.1.0 Ok
<-- 250 2.1.5 Ok
<-- 354 End data with <CR><LF>.<CR><LF>
--> Sup dog?
--> .
<-- 250 2.0.0 Ok: queued as 63CC59D2FC
--> QUIT
<-- 221 2.0.0 Bye
$ cat .msmtp.log | grep 63CC
Jul 10 20:41:31 host=smtp.hampshire.edu tls=on auth=on
user=n*@hamphire.edu from=n*@hamphire.edu recipients=f*@riseup.net
mailsize=18 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as 63CC59D2FC'
exitcode=EX_OK
$ vi mail.txt
$ cat mail.txt
To: <f*@riseup.net>
From: "Noah Vesely" <n*@hampshire.edu>
Subject: Test
MSMTPRC PLEASE!
$ cat mail.txt | msmtp -a Hamp --debug -t
ignoring system configuration file /etc/msmtprc: No such file or
directory
loaded user configuration file /home/fowlslegs/.msmtprc
using account Hamp from /home/fowlslegs/.msmtprc
host = smtp.hampshire.edu
port = 587
timeout = off
protocol = smtp
domain = smtp.hampshire.edu
auth = choose
user = n*@hamphire.edu
password = *
passwordeval = (not set)
ntlmdomain = (not set)
tls = on
tls_starttls = on
tls_trust_file = (not set)
tls_crl_file = (not set)
tls_fingerprint =
CA:E4:17:4D:C5:D9:C3:6C:E3:DE:78:34:F1:B2:ED:83:7F:2E:90:0D
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 = n*@hamphire.edu
dsn_notify = (not set)
dsn_return = (not set)
keepbcc = off
logfile = /home/fowlslegs/.msmtp.log
syslog = LOG_MAIL
aliases = (not set)
reading recipients from the command line and the mail
<-- 220 hyperion.localdomain ESMTP Postfix (Debian/GNU)
--> EHLO smtp.hampshire.edu
<-- 250-hyperion.localdomain
<-- 250-PIPELINING
<-- 250-SIZE 262144000
<-- 250-VRFY
<-- 250-ETRN
<-- 250-STARTTLS
<-- 250-ENHANCEDSTATUSCODES
<-- 250-8BITMIME
<-- 250 DSN
--> STARTTLS
<-- 220 2.0.0 Ready to start TLS
TLS certificate information:
Owner:
Common Name: *.hampshire.edu
Organizational unit: Domain Control Validated
Issuer:
Common Name: Starfield Secure Certificate Authority - G2
Organization: Starfield Technologies, Inc.
Organizational unit: http://certs.starfieldtech.com/repository/
Locality: Scottsdale
State or Province: Arizona
Country: US
Validity:
Activation time: Wed 16 Apr 2014 08:01:03 AM PDT
Expiration time: Sun 02 Dec 2018 08:08:19 AM PST
Fingerprints:
SHA1:
CA:E4:17:4D:C5:D9:C3:6C:E3:DE:78:34:F1:B2:ED:83:7F:2E:90:0D
MD5: 78:B0:31:23:5A:AD:28:EA:73:64:B1:29:90:D5:57:7B
--> EHLO smtp.hampshire.edu
<-- 250-hyperion.localdomain
<-- 250-PIPELINING
<-- 250-SIZE 262144000
<-- 250-VRFY
<-- 250-ETRN
<-- 250-AUTH LOGIN PLAIN
<-- 250-AUTH=LOGIN PLAIN
<-- 250-ENHANCEDSTATUSCODES
<-- 250-8BITMIME
<-- 250 DSN
--> AUTH PLAIN AG5ndjEwQGhhbXBoaXJlLmVkdQAkTCFtM3lidWJibDNz
<-- 235 2.7.0 Authentication successful
--> MAIL FROM:<n*@hamphire.edu>
--> RCPT TO:<n*@hampshire.edu>
--> DATA
<-- 250 2.1.0 Ok
<-- 250 2.1.5 Ok
<-- 354 End data with <CR><LF>.<CR><LF>
--> To: <n*@hampshire.edu>
--> From: "Noah Vesely" <f*@riseup.net>
--> Subject: Test
-->
--> MSMTPRC PLEASE!
--> .
<-- 250 2.0.0 Ok: queued as 9A87F9D2B9
--> QUIT
<-- 221 2.0.0 Bye
$ cat .msmtp.log | grep 9A87
Jul 10 22:57:10 host=smtp.hampshire.edu tls=on auth=on
user=n*@hamphire.edu from=n*@hamphire.edu recipients=n*@hampshire.edu
mailsize=100 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as 9A87F9D2B9'
exitcode=EX_OK