Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-02-01 Thread Aki Tuomi
Possibly, not sure. Give it a try? Aki > On 01/02/2021 13:09 福田泰葵 wrote: > > > Dear Mr. Tuomi > > I created a gmail service account. > and I have implemented the process of getting an access token using a gmail > service account. > > https://developers.google.com/identity/protocols/oauth2/s

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-02-01 Thread 福田泰葵
Dear Mr. Tuomi I created a gmail service account. and I have implemented the process of getting an access token using a gmail service account. https://developers.google.com/identity/protocols/oauth2/service-account I think I then need to set the grant_url to a URL that returns an access token an

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-29 Thread Odhiambo Washington
You broke this thread. In the original thread, I remember seeing Aki gave you the configuration which he believed might work. The next thing I thought was for you to go to https://developers.google.com/identity/sign-in/web/devconsole-project and get an access token. PS: I have never configured thi

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-28 Thread 福田泰葵
Google is responding to me as Unauthorized. So I need to send my credentials such as access token in the request parameter for authentication in google’s Get User API request. But I don’t know how to configure dovecot to achieve that. Could you please help me with this? Best regards, -

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-28 Thread Odhiambo Washington
Your clue is in the log: 1611654464.207331 "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.";, 1611654464.207331 "statu

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-27 Thread 福田泰葵
Dear Mr. Tuomi Do you have any idea how to solve this problem? Best regards, - 〒163-6017 東京都新宿区西新宿6-8-1 住友不動産新宿オークタワー 株式会社 ジャストシステム 技術企画室 情報システムグループ 福田泰葵 e-mail: taiki

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-26 Thread 福田泰葵
Dear Mr. Tuomi Thank you for the instruction. I was able to output rawlogs. The following is the result. 20210126-184744.1.1.in: 1611654464.207331 HTTP/1.1 401 Unauthorized 1611654464.207331 Cache-Control: no-cache, no-store, max-age=0, must-revalidate 1611654464.207331 Pragma: no-cache 1611

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-26 Thread 福田泰葵
Dear Mr. Tuomi Sorry, I have added the setting PrivateTmp=no to /etc/systemd/system/dovecot.service.d/override.conf However, /tmp/oauth2 was not created. Best regards, -

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-26 Thread Aki Tuomi
No, the directory must exist. I'm sorry I wasn't clear enough when I replied last time, but dovecot will not create the directory. You need to create it and make it writable. Aki > On 26/01/2021 11:09 福田泰葵 wrote: > > > Dear Mr. Tuomi > > Sorry, I have added the setting PrivateTmp=no to > /

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-26 Thread 福田泰葵
Dear Mr. Tuomi I have added the setting rawlog_dir = /tmp/oauth2 to /etc/dovecot/dovecot-oauth2.conf.ext However, /tmp/oauth2 was not created. Best regards, - 〒163-6017

Re: [EXT] Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-26 Thread Aki Tuomi
That is because you are using systemd, where the unit file, by default, has PrivateTmp=yes. You can look under /tmp for dovecot private tmp directory and create the directory there, or you can temporarily disable this security measure. systemctl edit dovecot [Service] PrivateTmp=no systemctl

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-25 Thread Aki Tuomi
Yes, however I still cannot see rawlogs. Aki > On 25/01/2021 10:25 福田泰葵 wrote: > > > Yes. In my last email, I sent you the log of the result of running with oauth > debug logging enabled. > /etc/dovecot/conf.d/10-logging.conf: > ## > ## Logging verbosity and debugging. > ## > > # Log filter

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-25 Thread 福田泰葵
Yes. In my last email, I sent you the log of the result of running with oauth debug logging enabled. /etc/dovecot/conf.d/10-logging.conf: ## ## Logging verbosity and debugging. ## # Log filter is a space-separated list conditions. If any of the conditions # match, the log filter matches (i.e. th

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-25 Thread Aki Tuomi
There was also the point about rawlogs. Did you try that? Aki > On 25/01/2021 10:24 福田泰葵 wrote: > > > Yes. In my last email, I sent you the log of the result of running with oauth > debug logging enabled. > > /etc/dovecot/conf.d/10-logging.conf: > > ``` > ``` > > > >

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-25 Thread 福田泰葵
Yes. In my last email, I sent you the log of the result of running with oauth debug logging enabled. /etc/dovecot/conf.d/10-logging.conf: ``` ``` - 〒163-6017 東京都新宿区西新宿

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-25 Thread Aki Tuomi
> On 25/01/2021 10:12 福田泰葵 wrote: > > > Dear Mr. Tuomi > Google is responding to me as Unauthorized. > So I need to send my credentials such as access token in the request > parameter for authentication in google’s Get User API request. > But I don’t know how to configure dovecot to achieve t

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-25 Thread 福田泰葵
Dear Mr. Tuomi Google is responding to me as Unauthorized. So I need to send my credentials such as access token in the request parameter for authentication in google’s Get User API request. But I don’t know how to configure dovecot to achieve that. Could you please help me with this? Best regard

Re: Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-21 Thread Aki Tuomi
Your emails come through to the mailing list, you can verify this from https://dovecot.org/pipermail/dovecot Try turning on rawlogs for the oauth2 requests and see what google is sending you? You can also try log_debug=category=oauth2 (2.3.13) to get more debug logs from oauth2. Aki > On 22/

Reminder Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-21 Thread 福田泰葵
Dear Mr. Tuomi, This is just to remind you that I haven’t received your response to my e-mail I sent you. I’m afraid my e-mail may not have reached you. If you have any questions or concerns, please let me know. Best regards, 2021年1月19日(火) 18:52 福田泰葵 : > Thank you for your reply. > But I need m

Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-19 Thread 福田泰葵
Thank you for your reply. But I need more help. How do I set request parameter of https://www.googleapis.com/oauth2/v2/userinfo? Logs: dovecot[30307]: lmtp(30320): Connect from 10.243.148.174 dovecot[30307]: lmtp(30320): Disconnect from 10.243.148.174: Remote closed connection (state=READY) dove

Re: Dovecot Gmail OAuth2.0 Setting Question

2021-01-18 Thread Aki Tuomi
> On 19/01/2021 07:17 福田泰葵 wrote: > > > Dear Sir or Madam > Unable to build OAuth2.0 authentication to Gmail using dovecot as proxy. > I have a question about how to use dovecot as a proxy to perform OAuth 2.0 > authentication to Gmail using a mail client. Mail client is required, in this ca

Dovecot Gmail OAuth2.0 Setting Question

2021-01-18 Thread 福田泰葵
Dear Sir or Madam Unable to build OAuth2.0 authentication to Gmail using dovecot as proxy. I have a question about how to use dovecot as a proxy to perform OAuth 2.0 authentication to Gmail using a mail client. 1. Is the following all I need to do to authenticate to Gmail using dovecot

Dovecot Gmail OAuth2.0 Setting Question

2021-01-18 Thread 福田泰葵
Dear Sir or Madam Unable to build OAuth2.0 authentication to Gmail using dovecot as proxy. I have a question about how to use dovecot as a proxy to perform OAuth 2.0 authentication to Gmail using a mail client. 1. Is the following all I need to do to authenticate to Gmail using dovecot