I've had a look on Google and the man pages for mail, but I can't figure out how to set it up. All I want to do is set up my email address so that I can send email via the terminal. How do I do that?
|
feedback
|
|
Unless your system admin has already set up the mail system, you must configure a Mail Transfer Agent. That is sendmail traditionally, modern systems use postfix or exim4. | |||
|
feedback
|
|
If you're not bound to the | ||||
|
feedback
|
|
On many systems you will find a
Or with a pipe to send the output of a command:
Running it as | |||
|
feedback
|
|
Traditionally, Unix mail programs, including Install
defaults
tls on
# the path below may need to be adjusted
tls_trust_file /etc/ssl/certs/ca-certificates.crt
account gmail
from youraddress@gmail.com
host smtp.gmail.com
port 587
auth plain
user youraddress@gmail.com
account default : gmail
Now tell set sendmail="/usr/bin/msmtp" (If this does not work, run Finally, if you want
machine smtp.gmail.com
login youraddress@gmail.com
password "your password here"
| |||
|
feedback
|