sudo apt-get install ca-certificates
~/.msmtprc:
account default
host smtp.gmail.com
port 587
from my.account@googlemail.com
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on
user my.account@googlemail.com
password my.password
for use with mail:
sudo apt-get install mailx
~/.mailrc:
set sendmail="/usr/bin/msmtp"
forwarding local mail, while keeping a copy: ~/.forward:
| mailx -s "Local mail on nslu2" someone@googlemail.com
leo
for use with mutt: ~/.muttrc:
set sendmail="/usr/bin/msmtp"
set use_from=yes
set from="my name <my.name@somewhere.com>"
REPLYTO="reply@here.com" mutt -s "test subject" -a attach.pdf -c carboncopy@somewhere.com address1@here.com address2@there.com < message.txt
No comments:
Post a Comment