git send-email 时unknown AUTH解决方法

fatal: 只允许“http”和“https”方案。
参数名: requestUri
Command unknown: ‘AUTH’ at C:/Program Files/Git/mingw64/libexec/git-core\git-send-email line 1696.

git config --list显示的smtp配置如

$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean – %f
filter.lfs.smudge=git-lfs smudge – %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=input
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=xxx
user.email=yyyy
color.diff=true
color.status=true
color.branch=true
color.ui=true
color.editor=true
alias.ci=commit
alias.co=checkout
alias.st=status
alias.br=branch
sendemail.smtpencryption=starttls
sendemail.smtpserverport=587
sendemail.smtppass=xxxx
sendemail.smtpserver=smtp.office365.com
sendemail.smtpuser=yyyy
gui.recentrepo=D:/dpdk
credential.helper=store
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=http://dpdk.org/git/dpdk
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
branch.main.remote=origin
branch.main.merge=refs/heads/main
branch.releases.remote=origin
branch.releases.merge=refs/heads/releases

在这里插入图片描述

解决方法:
去掉 git config中的smtpuser和smtppass
smtp不支持AUTH
vi ~/.gitconfig

修改完后,发送显示如下:
$ git send-email --to dev@dpdk.org --smtp-debug=1 0001-net-iavf-eth-pattern-support-smac-and-dmac-match.patch
0001-net-iavf-eth-pattern-support-smac-and-dmac-match.patch
(mbox) Adding cc: from line ‘From: ’
(body) Adding cc: from line ‘Signed-off-by: ’

From: xxxx
To: dev@dpdk.org
Cc: xxxx
Subject: [PATCH] net/iavf: eth pattern support smac and dmac match
Date: Tue, 19 Jul 2022 12:59:31 +0800
Message-Id: <20220719045931.1043-1-xxxx>
X-Mailer: git-send-email 2.33.0.windows.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

The Cc list above has been expanded by additional
addresses found in the patch commit message. By default
send-email prompts before sending whenever this occurs.
This behavior is controlled by the sendemail.confirm
configuration setting.

For additional information, run 'git send-email --help'.
To retain the current behavior, but squelch this message,
run 'git config --global sendemail.confirm auto'.

Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
Net::SMTP>>> Net::SMTP(3.13)
Net::SMTP>>> Net::Cmd(3.13)
Net::SMTP>>> Exporter(5.76)
Net::SMTP>>> IO::Socket::IP(0.41)
Net::SMTP>>> IO::Socket(1.46)
Net::SMTP>>> IO::Handle(1.46)
Net::SMTP=GLOB(0x800ca1990)<<< 220 SG2PR02CA0121.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 19 Jul 2022 04:59:32 +0000
Net::SMTP=GLOB(0x800ca1990)>>> EHLO YBNJ0024.jaguarmicro.local
Net::SMTP=GLOB(0x800ca1990)<<< 250-SG2PR02CA0121.outlook.office365.com Hello [49.74.218.18]
Net::SMTP=GLOB(0x800ca1990)<<< 250-SIZE 157286400
Net::SMTP=GLOB(0x800ca1990)<<< 250-PIPELINING
Net::SMTP=GLOB(0x800ca1990)<<< 250-DSN
Net::SMTP=GLOB(0x800ca1990)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x800ca1990)<<< 250-STARTTLS
Net::SMTP=GLOB(0x800ca1990)<<< 250-8BITMIME
Net::SMTP=GLOB(0x800ca1990)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x800ca1990)<<< 250-CHUNKING
Net::SMTP=GLOB(0x800ca1990)<<< 250 SMTPUTF8
Net::SMTP=GLOB(0x800ca1990)>>> MAIL FROM:dexia.li@jaguarmicro.com
Net::SMTP=GLOB(0x800ca1990)<<< 451 5.7.3 STARTTLS is required to send mail [SG2PR02CA0121.apcprd02.prod.outlook.com]
5.7.3 STARTTLS is required to send mail [SG2PR02CA0121.apcprd02.prod.outlook.com]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值