From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jason Vas Dias" Newsgroups: gmane.emacs.devel Subject: suggestionss for best 100% Elisp Oauth2 module(s) & config for 29.4 MA-GNUS + mailx + sendmmail please ? Date: Sat, 27 Jul 2024 03:08:21 +0100 Message-ID: Reply-To: Jason Vas Dias , jason.vas.dias@gmail.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34760"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 27 04:09:22 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sXWs6-0008t9-O7 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jul 2024 04:09:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXWrI-0004Qf-8r; Fri, 26 Jul 2024 22:08:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXWrF-0004QQ-Nz for emacs-devel@gnu.org; Fri, 26 Jul 2024 22:08:29 -0400 Original-Received: from mail-wm1-x363.google.com ([2a00:1450:4864:20::363]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXWrD-0003LO-4p for emacs-devel@gnu.org; Fri, 26 Jul 2024 22:08:29 -0400 Original-Received: by mail-wm1-x363.google.com with SMTP id 5b1f17b1804b1-4280c55e488so1154055e9.0 for ; Fri, 26 Jul 2024 19:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ptt-ie.20230601.gappssmtp.com; s=20230601; t=1722046104; x=1722650904; darn=gnu.org; h=mime-version:message-id:date:reply-to:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=qPXNAnM1AStg3BBc/ZFan/UtgMRJ1MfPsbd8uv1sgT0=; b=JO9sBK19orsWpy9+1lDfgVfvlZrHzO58rSD7+I/FsJsh2l8ilVYe1g9+TJlg1ugpfQ CkU3ajgh4aAesPbu5eZ4ujbPGNw/2Wss2vtxLox7EiqYzf/P6dY/wBoaIprwjHFRk8O0 qhk9wbtS2DEZSeH0fRoNhKqYtT16FrcM3q91XGm9OjjB0k1kEsBXNDcvp0796nwf8Eu5 qV1QYCIt1jqft3sy+sSCWnESH8p4alBmuKa9e/idPoqKNyPkCjt52DfKUKTi7da7m3Si HLkkt0eVo+WK2OXkfdw1c2Yeedp5yGDB6kmXOpPdG0IEppgNmZ10X+3KxTcbOi7gp4L4 3AlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722046104; x=1722650904; h=mime-version:message-id:date:reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qPXNAnM1AStg3BBc/ZFan/UtgMRJ1MfPsbd8uv1sgT0=; b=FA07bDXurRlt9BtKJhpwUp4TPbg6hXA9X2glPnS9ZozTzKatMd7cuRGbEgR8Ttw8vG AWeRObAkSmeX9ZAE1bEBI26adKzGOs4S85mo4f8ZHZUnh7gHljDZM8usZ2XEoGcaTRq7 KlYKw88AL3rtCB9Xqg4iWDlvmbuxiELnQvCVVWMyCRl0SYJOoiGoh43zeKzzjgkt8SNY MAjMcksS1gNtHmuogHcTCwDOH6mJMjLh0/6UbqqAJDysLgBt43/D9Oz55iTj92zf/AIX umMM1pnqf7DrtDeHEGEBKCpzDPUBs8ErUiffUJ09WNfTpryFi4xSqR6qEBGbYm2VS5bk FGyg== X-Gm-Message-State: AOJu0YzCUPDZOxr6C4Gaj8XZylWyM6J2EShNDnDs1KA9soG4jJKkydc6 fwXstW3/8vB4QC5ecqJ12e2Jtd/JsQmDG6eKkDx8WVPr4lJeBVad9zKFjHudEsV8B0NthqESd8h mCnKDOavXiD3bWVMWIUWEJ4bBlIVl+lCaPtusTy1O X-Google-Smtp-Source: AGHT+IGFcBVdmCIKACNYzAWeHk0H7A6XqqqZP7qxfP9uq+Vh/8HQLJumcoNrfR9B5OMwdnPSiBmBBZaB8u1Y X-Received: by 2002:a05:600c:1c17:b0:427:ee01:ebf0 with SMTP id 5b1f17b1804b1-42811e49a14mr7132735e9.8.1722046104253; Fri, 26 Jul 2024 19:08:24 -0700 (PDT) Original-Received: from localhost.localdomain6 ([212.129.87.194]) by smtp-relay.gmail.com with ESMTPS id 5b1f17b1804b1-427f941c788sm3315365e9.50.2024.07.26.19.08.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 19:08:24 -0700 (PDT) X-Relaying-Domain: ptt.ie Original-Received: from localhost.localdomain6 (localhost.localdomain [127.0.0.1]) by localhost.localdomain6 (8.18.1/8.17.1) with ESMTPS id 46R28MAx212881 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sat, 27 Jul 2024 03:08:22 +0100 Original-Received: (from jvd@localhost) by localhost.localdomain6 (8.18.1/8.18.1/Submit) id 46R28L5R212880; Sat, 27 Jul 2024 03:08:21 +0100 Received-SPF: none client-ip=2a00:1450:4864:20::363; envelope-from=jason.vas.dias@ptt.ie; helo=mail-wm1-x363.google.com X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_REPLYTO=2.095, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322117 Archived-At: Good day - Google recently wrote me: Starting September 30, 2024, Google Workspace accounts will only allow access to apps using OAuth. Password-based access (with the exception of App Passwords) will no longer be supported. POP and IMAP are NOT going away and can still be enabled with apps that connect using OAuth. Aargh, the reason I got the WorkSpace account was because it allowed Admins to emable "Less Secure Apps" to access SMTP2 using password. I had installed mailx and the excellent 'sendmail' extension and used SMART_HOST and auth and smtp.relayagent and mailertable small patches, that select different Gmail or MS-365 SMTP2 mailers and use a plain-text (but secret in hidden 'root'-user owned directory) 'auth' file, compiled into 'auth.db' , this worked fine for my Workspace Account, which I got specially to handle my own '@ptt.ie' domain name, mailx or sendmail from command line work fine IFF I specify a 'From:' header that includes a known sender in '/etc/mail/auth.db' - this used to work. Now I have to have some Oauth2 Daemon running constantly to keep Tokens up-to-date in Emacs in order to use SMTP , when my needed google-chrome-unstable and firefox-developer-edition-v129.8 browsers are already busy each doing so for themselves ! What a waste of CPU cycles ! Please could anyone recommend any good shared Ouath2 Daemon that all of Emacs MA-GNUS / IMAP + sendmail + firefox + chrome + Google/MS-365 SMTP2+Outh2 could use ? Preferably something that could generate sendmail auth.db config to use multiple Gmail and/or MS-365 accounts for mail sending with sendmail , and bundle the correct Ouath2 tokens with each send ? How would I configure MA-GNUS and mailx / sendmail to use it ? I really don't want to have to start a separate Emacs Daemon process, as well as 2 separate Browser Oauth2 processes - my laptop is busy enough and has slow internet bandwidth usually - can't Firefox, Emacs, and Chrome be told to use the same Oauth2 Daemon ? What is it ? Thanks, Best Regards, Jason