Re: How to configure sendemail for no-auth?
- Date: Thu, 05 Apr 2018 10:24:00 +0000
- From: astian <astian@xxxxxxxxxxxx>
- Subject: Re: How to configure sendemail for no-auth?
> My ~/.gitconfig looks like this, because all cloned repositories require these settings:
> from = Olaf Hering <olaf@xxxxxxxxx>
> envelopesender = olaf@xxxxxxxxx
> chainreplyto = false
> ccover = yes
> smtpencryption = tls
> smtpdomain = sender
> smtppass = smtppass
> smtpAuth = PLAIN
> smtpserver = smtp.strato.de
> smtpuser = smtpuser
> confirm = always
> assume8bitEncoding = yes
> transferEncoding = 8bit
> Now there is that one repo that requires this:
> from = Olaf Hering <firstname.lastname@example.org>
> envelopesender = email@example.com
> smtpserver = otherhost
> That "otherhost" does just plain oldstyle unencrypted SMTP.
> How do I undo the global sendemail settings for that one repo?
> Setting the knobs to empty strings does not help:
> Command unknown: 'AUTH' at /usr/lib/git/git-send-email line 1455.
> It seems the global smtpuser is causing the error.
Hm, I remember successfully doing something like this, quite some time ago.
Couldn't you simply disable smtpEncryption in the .git/config of that one
smtpEncryption = none
You might also want to take a look at "identities" in the manual. And related
to that, there's a patch in this old (never merged) series of mine which might
be useful since I believe the documentation bug it fixes still exists.