开发者

why terminal mail doesn't work?

I've just installed mail

sudo apt-get install mailutils

And I tried to send mail though a pipeline:

echo "message" | mail -s "subject" my@email.com

But I don't开发者_运维问答 receive any mails on my inbox.

Why doesn't work? Do I need another package?

Thanks!


I Solved! I had to edit this file and set this variables /etc/ssmtp/ssmtp.conf’:

root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=username@gmail.com
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜