家里的nas/linaro上装个发内核补丁环境, rpi远程。

Can't locate Net/SMTP/SSL.pm in @INC

要安装下面这个包

sudo apt-get install libnet-smtp-ssl-perl

安装完后有下面这个错误

Send this email? ([y]es|[n]o|[q]uit|[a]ll): a
Password: 
Need MIME::Base64 and Authen::SASL todo auth at /usr/lib/git-core/git-send-email line 1140, <STDIN> line 1.

再安装:

sudo apt-get install libauthen-sasl-perl

还有错误:

Send this email? ([y]es|[n]o|[q]uit|[a]ll): a
Password: 
mail from account doesn't conform with authentication 

就是说你的mail send from要和.gitconfig里的一样。

看下一个aliyun的配置:

[sendemail]
        smtpserver = smtp.aliyun.com
        smtpserverport = 465
        smtpencryption = ssl
        smtpuser = youraccount@aliyun.com

发送正常会提示ok的。