Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with sendmail? #73

Closed
ps245 opened this issue Mar 23, 2024 · 3 comments · May be fixed by #74
Closed

How to use with sendmail? #73

ps245 opened this issue Mar 23, 2024 · 3 comments · May be fixed by #74

Comments

@ps245
Copy link

ps245 commented Mar 23, 2024

Hi'm wondering how to use this with git send-email. I read the gitcredentials and git-send-email documents but still can't figure it out. Doesn't seem to be documented anywhere really either.

Found one entry on SO https://stackoverflow.com/questions/76117242 but am still confused what I am doing wrong.

[sendemail]
	smtpserver = example.com
	smtpuser = [email protected]
	smtpencryption = ssl
	smtpserverport = 465

[credential "smtp://example.com:465"]
	username = [email protected]
	helper = gopass -o mail/example_email

the issue seems to be that when i type:

git send-email --to="[email protected]" HEAD^

It still comes up with the prompt asking me to authenticate:

Password for 'smtp://[email protected]@example.com:465'

I do have the helper installed in my path:

$ git help -a | grep credential-
   credential-cache        Helper to temporarily store passwords in memory
   credential-store        Helper to store credentials on disk
   credential-gopass
@ps245
Copy link
Author

ps245 commented Mar 24, 2024

@dominikschulz i signed up for the gopass slack, btw. if u could approve thanks.

@dngray
Copy link

dngray commented Mar 24, 2024

You need to have:

[sendemail]
	smtpserver = example.com
	smtpuser = username <-- only the user name not the domain
	smtpencryption = ssl
	smtpserverport = 465

[credential "smtp://[email protected]:465"]
	helper = gopass

Then in your gopass store it must be in:

.../gopass/stores/root/git/example.com_465/username.gpg

This last part isn't documented anywhere that I can see.

We should probably add this to the readme somewhere.

@ps245
Copy link
Author

ps245 commented Mar 24, 2024

Can confirm, this works!

@ps245 ps245 closed this as completed Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants