git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to configure sendemail for no-auth?

From
Aastian <astian@directbox.de>
Date
Apr 5, 2018, 10:27 UTC
Message-ID
<d177a202-32b9-80a4-970f-c107c554c025@directbox.de>
In-Reply-To
<20180405092358.569e0315.olaf@aepfle.de>
astian:
Show 45 quoted lines
> Olaf Hering:> My ~/.gitconfig looks like this, because all cloned repositories require these settings:
>> [sendemail]
>>         from = Olaf Hering <olaf@aepfle.de>
>>         envelopesender = olaf@aepfle.de
>>         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:
>> 
>> [sendemail]
>>         from = Olaf Hering <a@b.c>
>>         envelopesender = a@b.c
>>         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.
>> 
>> Olaf
> 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
> repo?  E.g.:
> 
> [sendemail]
>   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.
> 
> Cheers.

Err, forgot the link: https://public-inbox.org/git/xmqqzicc6zbf.fsf@gitster.mtv.corp.google.com/T/

Cheers.
Previous: Jeff KingNext: astian
Message 12 of 13 in “How to configure sendemail for no-auth?”
  1. Olaf HeringApr 5, 2018
  2. How to undo previously set configuration?Ævar Arnfjörð Bjarmason, Apr 5, 2018
  3. Olaf HeringApr 5, 2018
  4. Ævar Arnfjörð BjarmasonApr 5, 2018
  5. Randall S. BeckerApr 5, 2018
  6. Olaf HeringApr 5, 2018
  7. Jeff KingApr 5, 2018
  8. Olaf HeringApr 6, 2018
  9. Jeff KingApr 6, 2018
  10. Rafael AscensaoApr 6, 2018
  11. Jeff KingApr 6, 2018
  12. astianApr 5, 2018
  13. astianApr 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.