Difference between revisions of "Msmtp"
From MohidWiki
(New page: msmtp is linux sendmail SMTP client. ==Installation== Get the latest version [http://msmtp.sourceforge.net/download.html here] > ./configure > make > sudo make install Configure ...) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[msmtp]] is linux sendmail SMTP client. | [[msmtp]] is linux sendmail SMTP client. | ||
| − | |||
| − | |||
==Installation== | ==Installation== | ||
Get the latest version [http://msmtp.sourceforge.net/download.html here] | Get the latest version [http://msmtp.sourceforge.net/download.html here] | ||
| Line 8: | Line 6: | ||
> sudo make install | > sudo make install | ||
| − | Configure the ~/.msmtprc file | + | Configure the ''~/.msmtprc'' file: |
account default | account default | ||
host mail.ist.utl.pt | host mail.ist.utl.pt | ||
| Line 17: | Line 15: | ||
tls on | tls on | ||
tls_certcheck off | tls_certcheck off | ||
| + | |||
| + | Configure the ''~/.mailrc'' file: | ||
| + | account guillaume { | ||
| + | set sendmail="/usr/local/bin/msmtp" | ||
| + | set record=+Sent | ||
| + | set from="guillaume.maretec@ist.utl.pt (Guillaume Riflet)" | ||
| + | } | ||
| + | |||
| + | ==How to use it== | ||
| + | ===Mailx mail sender tool=== | ||
| + | > echo "Message Body Text" | mailx -send -A guillaume -s "Email subject" guillaume.riflet@gmail.com | ||
| + | |||
| + | ==External references== | ||
| + | *[http://msmtp.sourceforge.net/download.html msmtp homepage] | ||
| + | |||
| + | [[Category:Linux]] | ||
Latest revision as of 21:41, 16 July 2009
msmtp is linux sendmail SMTP client.
Installation
Get the latest version here
> ./configure > make > sudo make install
Configure the ~/.msmtprc file:
account default host mail.ist.utl.pt from guillaume.maretec@ist.utl.pt auth on user ist1xxxxx password secretpass tls on tls_certcheck off
Configure the ~/.mailrc file:
account guillaume {
set sendmail="/usr/local/bin/msmtp"
set record=+Sent
set from="guillaume.maretec@ist.utl.pt (Guillaume Riflet)"
}
How to use it
Mailx mail sender tool
> echo "Message Body Text" | mailx -send -A guillaume -s "Email subject" guillaume.riflet@gmail.com