← back to blog

Fixing git send-email issues on Arch Linux

  • No fluff — it’s hard to configure.
  1. Edit ~/.gitconfig:
[sendemail]
        smtpserver = <smtp.gmail.com>
        confirm = auto
        smtpencryption=tls
        smtpserver=smtp.gmail.com
        smtpuser=adlternative@gmail.com
        smtpserverport=587
  1. In Gmail settings, enable access for less secure apps and turn on POP and IMAP, here.
  2. Fix bug1 and bug2: they require installing perl-io-socket-ssl, perl-mime-tools, and perl-authen-sasl with pacman.
  3. When running git send-email in the terminal, use a proxy: proxychains4 git send-email --smtp-debug=1 --to=adlternative@gmail.com adl/*.patch
  4. Enter your password when prompted, and the email should be sent successfully!
  • 不说废话,难配置
  1. 修改~/.gitconfig
[sendemail]
        smtpserver = <smtp.gmail.com>
        confirm = auto
        smtpencryption=tls
        smtpserver=smtp.gmail.com
        smtpuser=adlternative@gmail.com
        smtpserverport=587
  1. 在gmail的配置里面修改安全性较低的应用访问权限启用,并配置启用pop和imap,在这
  2. 修复bug1 bug2 分别要求下载 perl-io-socket-ssl,perl-mime-toolsperl-authen-sasl,使用pacman安装
  3. 终端git send-email的时候要开代理proxychains4 git send-email --smtp-debug=1 --to=adlternative@gmail.com adl/*.patch
  4. 发邮件的时候输入个密码,然后应该就发送成功了!
$ ls posts --tag git ← explore more in terminal