MSMTP(1) General Commands Manual MSMTP(1) NAME msmtp - An SMTP client (SYNOPSIS) (): msmtp [option...] [--] recipient... msmtp [option...] -t [--] [recipient...] : msmtp [option...] --serverinfo : msmtp [option...] --rmqs=host|@domain|#queue (DESCRIPTION) msmtp SMTP msmtp SMTP msmtp RMQS SMTP (EXIT STATUS) sendmail sysexits.h EXAMPLES (OPTIONS) sendmail (General options) --version TLS/SSL --help -P, --pretend *** -d, --debug SMTP (Changing the mode of operation) -S, --serverinfo SMTP TLSDSN TLS TLS --rmqs=(host|@domain|#queue) SMTP (Configuration options) -C, --file=filename ~/.msmtprc -a, --account=account_name "default" --host --host=hostname SMTP --account --port=number port --timeout=(off|seconds) timeout --connect-timeout --protocol=(smtp|lmtp) protocol --auth[=(on|off|method)] auth --user=[username] user --tls[=(on|off)] TLS tls --tls-starttls[=(on|off)] TLS STARTTLS tls_starttls --tls-trust-file=[file] TLS trust file tls_trust_file --tls-key-file=[file] TLS key file tls_key_file --tls-cert-file=[file] TLS cert file tls_cert_file --tls-certcheck[=(on|off)] TLS tls_certcheck --tls-force-sslv3[=(on|off)] SSLv3 tls_force_sslv3 --domain=[string] SMTP EHLO (or LMTP LHLO) domain (Options specific to sendmail mode) --auto-from[=(on|off)] automatic envelope-from addresses auto_from -f, --from=address envelope-from address auto_from --account --host envelope-from address from "default" --maildomain=[domain] envelope-from addresses auto_from maildomain -N, --dsn-notify=(off|cond) DSN notification conditions dsn_notify -R, --dsn-return=(off|ret) DSN notification amount dsn_return sendmail hdrs headers --keepbcc[=(on|off)] Bcc header keepbcc -X, --logfile=[file] log file logfile --syslog[=(on|off|facility)] syslog syslog -t, --read-recipients To, Cc, Bcc headers -- '-' sendmail -Btype, -bm, -Fname, -G, -hN, -i, -L tag, -m, -n, -O option=value, -ox value, -v (USAGE) ()SMTP SMTP accounts SMTP TLS envelope- fromSMTP auto_from Envelope-from form --from auto_from user@domain user $USER $LOGNAME domain maildomain maildomain envelope-from --account=id --host=hostname --from=address from envelop-from --account --host --from from "default" (CONFIGURATION FILES) SYSCONFDIR/msmtprcSYSCONFDIR --version (~/.msmtprc ) ('#') (") "~"$HOME on on groups account SMTP EXAMPLES defaults defaults account name [:account[,...]] account host hostname SMTP port number SMTP service database SMTP "smtp" (25)STARTTLS TLS "ssmtp"(445)LMTP"lmtp" timeout (off|seconds) ()off connect_timeout protocol (smtp|lmtp) SMTP LMTPSMTP port auto_from [(on|off)] automatic envelope- fromuser@domain envelope-from user $USER $LOGNAME domain maildomain maildomain envelope-from envelope-from from envelope_from envelope-from auto_from maildomain [domain] envelope auto_from auth [(on|off|method)] SMTP on msmtp () user password msmtp msmtp ~/.netrc msmtp plain, cram-md5, digest-md5, gssapi, external, login, and ntlm --version plain login tls msmtp SMTP TLS TLS gssapi,digest-md5,cram-md5 and ntlm external SMTP TLS ( tls_cert_file )external [ msmtp ]msmtp user [username] SMTP auth password [secret] SMTP auto msmtp ~/.netrc msmtp ntlmdomain [domain] ntlm () tls [(on|off)] TLS/SSL TLS TLS SMTP tls_certcheck TLS/SSL tls_trust_file () tls_starttls [(on|off)] TLS STARTTLS SMTP TLS ( SMTP tunneled through TLS/SSL)465 tls_nostarttls tls_starttls off tls_trust_file [file] PEM (CAs)msmtp tls_key_file [file] tls_cert_file msmtp SMTP PEM tls_cert_file [file] tls_key_file msmtp SMTP PEM tls_certcheck [(on|off)] TLS TLS tls_nocertcheck tls_certcheck off tls_force_sslv3 [(on|off)] TLS/SSL SSLv3 SSL dsn_notify (off|condition) DSN (Delivery Status Notification) off DSN DSN condition never ( ) failure delay success SMTP DSN dsn_return (off|amount) DSN off DSN amount headers full SMTP DSN domain argument SMTP EHLO(or LMTP LHLO) localhost ( )(provider.example for joe@provider. example) keepbcc [(on|off)] Bcc header logfile [file] logfile msmtp logfile SMTP TLS ()( )SMTP SMTP () ()( sysexits.hEX_OK ) (-)msmtp syslog [(on|off|facility)] syslog facility LOG_USERLOG_MAILLOG_LOCAL0...LOG_LOCAL7 LOG_USER msmtp syslog SMTP TLS ()( )SMTP SMTP () ()( sysexits.hEX_OK ) (EXAMPLES) (Configuration file) # Set default values for all following accounts. defaults tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile ~/.msmtp.log # A freemail service account freemail host smtp.freemail.example from joe_smith@freemail.example auth on user joe.smith password secret # A second mail address at the same freemail service account freemail2 : freemail from joey@freemail.example # The SMTP server of the provider. account provider host mail.provider.example from smithjoe@provider.example auth on user 123456789 password my_password # Set a default account account default : provider Mutt msmtp (Using msmtp with Mutt) msmtp Mutt set sendmail="/path/to/msmtp" set use_from=yes set realname="Your Name" set from=you@example.com set envelope_from=yes envelope_from=yes Mutt msmtp -f msmtp you@example.com -a set sendmail="/path/to/msmtp -a my-account" set sendmail="/path/to/msmtp --host=mailhub -f me@example.com --tls" Mutt -f Mutt macro generic "1" ":set from=you@example.com" macro generic "2" ":set from=you@your-employer.example" macro generic "3" ":set from=you@some-other-provider.example" mail msmtp (Using msmtp with mail) ~/.mailrc set sendmail="/path/to/msmtp" / (FILES / ENVIRONMENT) SYSCONFDIR/msmtprc --version SYSCONFDIR ~/.msmtprc ~/.netrc .netrc msmtp .netrc netrc(5) ftp(1) $USER, $LOGNAME $USER$LOGNAME $TMPDIR -t/--read-recipients (AUTHORS) msmtp was written by Martin Lambers . Other authors are listed in the AUTHORS file in the source distribution. (SEE ALSO) mutt(1), mail(1), sendmail(8), netrc(5) or ftp(1) [] "Nickel Cobalt" [] 2007/05/01 [] "Nickel Cobalt" MAN-PAGE http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh 2006-11 MSMTP(1)