From unknown Sat Aug 16 22:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72462: Having to store password in mutliple places Resent-From: Pranshu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2024 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 72462@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172278013030805 (code B ref -1); Sun, 04 Aug 2024 14:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Aug 2024 14:02:10 +0000 Received: from localhost ([127.0.0.1]:56840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saboI-00080m-6J for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:02:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:32990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saboF-00080a-JO for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:02:08 -0400 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 1sabnu-0005vp-7N for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:01:46 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sabns-0000f9-Ip for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:01:45 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-70eae5896bcso8285032b3a.2 for ; Sun, 04 Aug 2024 07:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722780101; x=1723384901; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=E4S7Vy2LJQSD6D6cOdtI20sG9ienVbGfIF/40/4LNzQ=; b=LE5r3Swf2IcGcEfK3kvmuCgWf9JqB9S8ubmS4iG7REi3N5KfXLdLDtq0ycvlpBEfiI FIc/tMdrE4DC6BltsmJYMLzMIMLB90LEh28FJ6v34kZcCjaMP20X7ant9KGPaoYauVeI R4sTjWoxyQmLtd4owjGqrOsP3FSg0KD5+49V/65yqhYWQqx3VPRw6nFCVX/Ny+9yG5WS JxZDW/EK6+3BpLcSMbUxLm4kgFM7EYJ9093W9fqm5fzd6k3W5fHEvMMcrFb+K0pRsBsY aNbBEUKxG+eP+i+5MaSIctDf2/ZiNAF5DP1NbxklN04AA5YdC5iIOBqse+0YhWYnlw5E uw0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722780101; x=1723384901; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=E4S7Vy2LJQSD6D6cOdtI20sG9ienVbGfIF/40/4LNzQ=; b=wreEgaYD9I8iJUzqM66IXiBp4rPE+kjvzUfObJKDUTdnDMnl9Agv5lMlFb7Eg3nMWp rFAU5xW31maln/xienxxA0Zxngr21LkJrW79slEqze/fCj5V2kBAMR/p1hqJSFS8vdD/ 02P9C3J+01/osXVP6mUnPK9Crzgs2aWECzaAJJ2dsWFbDlL5Wjsjl0JSsTgXNqIGbH6H KY6z69Jx17vMhIBqPxp1vNZf8Sh/zXWHN/IiN88NO10LR1iID5LeCGS9J+fM9n07WNDH +hqsydVHE7fPPXslsI7RgZnPZr8+3GRluRNOGc/6P8290yi+CU9XPf1x28Npha4Bwg0O Ea0A== X-Gm-Message-State: AOJu0YyVEaSgBwwFfPQ8dnxIQLkd6nW+nxmRItmrFShviaQfGKTKb3dQ kxZjFVBNu1IS2Uzs8dSxuy1WZPojquN3yMXCnQRIGdSykytAMH2Dootc6g== X-Google-Smtp-Source: AGHT+IEEEQhVJbgJA0qD1js+E0DiZ9aRxX32hefyQKft0+yKdGulWBU1r0kh6WlIbBlctG8WNepbKw== X-Received: by 2002:a05:6a00:4b04:b0:706:6b4e:64c7 with SMTP id d2e1a72fcca58-7106cf9cf2dmr11049251b3a.9.1722780100560; Sun, 04 Aug 2024 07:01:40 -0700 (PDT) Received: from pebl ([2001:8003:7816:8300:7f15:5962:16a0:6470]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ece0911sm3971723b3a.132.2024.08.04.07.01.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 07:01:40 -0700 (PDT) From: Pranshu Date: Mon, 05 Aug 2024 00:01:36 +1000 Message-ID: <8734nk75fj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=pranshusharma366@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Right now to get a functional gnus setup in which I can send and recive mail, I am having to store my password is 2 places, which is the mail sources variable, and the authinfo file. This makes it extremly annoying and insecure, especially since I cannot encrypt one fo the places I store the password. If I remove password from authinfo file, I can still recive mail but not send any. And if I remove password from mail sources, I cannot recive mail without typing my whole password when prompted on gnus startup. Following is the code I have: Elisp code: ---------------------------------------------------------- (setq user-mail-address "pranshusharma366@gmail.com") (setq user-full-name "Pranshu") (setq smtpmail-smtp-server "smtp.gmail.com") (setq smtpmail-smtp-service 465) (setq smtpmail-stream-type 'ssl) (setq mail-sources `((pop :server "pop.gmail.com" :user ,user-mail-address :password "**********" ; Password line :port 995))) ---------------------------------------------------------- Authinfo: ---------------------------------------------------------- machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 ---------------------------------------------------------- From unknown Sat Aug 16 22:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72462: Having to store password in mutliple places Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2024 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pranshu Cc: 72462@debbugs.gnu.org Received: via spool by 72462-submit@debbugs.gnu.org id=B72462.17227825796202 (code B ref 72462); Sun, 04 Aug 2024 14:43:02 +0000 Received: (at 72462) by debbugs.gnu.org; 4 Aug 2024 14:42:59 +0000 Received: from localhost ([127.0.0.1]:56925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacRm-0001by-WE for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:42:59 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:38734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacRl-0001bn-HD for 72462@debbugs.gnu.org; Sun, 04 Aug 2024 10:42:58 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4WcMjl0Gd1z1syBl; Sun, 4 Aug 2024 16:42:34 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4WcMjk5T9Mz1qqlS; Sun, 4 Aug 2024 16:42:34 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id CaKBm4jvmQ5M; Sun, 4 Aug 2024 16:42:34 +0200 (CEST) X-Auth-Info: COMbzwURHEHqYTjGS/w0Ovi8A5+gNjQQWlmwlY8DZTo5Nb2zkI2hogFEBZjoTTGK Received: from igel.home (aftr-82-135-83-114.dynamic.mnet-online.de [82.135.83.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 4 Aug 2024 16:42:34 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id C8ABF2C1A4F; Sun, 4 Aug 2024 16:42:33 +0200 (CEST) From: Andreas Schwab In-Reply-To: <8734nk75fj.fsf@gmail.com> (Pranshu's message of "Mon, 05 Aug 2024 00:01:36 +1000") References: <8734nk75fj.fsf@gmail.com> X-Yow: Yow! It's a hole all the way to downtown Burbank! Date: Sun, 04 Aug 2024 16:42:33 +0200 Message-ID: <87o768xsbq.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Aug 05 2024, Pranshu wrote: > Following is the code I have: > > Elisp code: > ---------------------------------------------------------- > (setq user-mail-address "pranshusharma366@gmail.com") > (setq user-full-name "Pranshu") > (setq smtpmail-smtp-server "smtp.gmail.com") > (setq smtpmail-smtp-service 465) > (setq smtpmail-stream-type 'ssl) > (setq mail-sources `((pop :server "pop.gmail.com" > :user ,user-mail-address > :password "**********" ; Password line > :port 995))) > ---------------------------------------------------------- > > > Authinfo: > ---------------------------------------------------------- > machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 > ---------------------------------------------------------- You should add an entry to authinfo for machine pop.gmail.com, then you can remove the credentials from mail-sources. That's still writing the password twice, but at least it's next to each other in the same file. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sat Aug 16 22:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72462: Having to store password in mutliple places Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2024 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pranshu Cc: 72462@debbugs.gnu.org Received: via spool by 72462-submit@debbugs.gnu.org id=B72462.17227827086583 (code B ref 72462); Sun, 04 Aug 2024 14:46:02 +0000 Received: (at 72462) by debbugs.gnu.org; 4 Aug 2024 14:45:08 +0000 Received: from localhost ([127.0.0.1]:56929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacTr-0001i7-HM for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:45:07 -0400 Received: from mout.gmx.net ([212.227.15.18]:40537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacTp-0001hH-M1 for 72462@debbugs.gnu.org; Sun, 04 Aug 2024 10:45:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1722782678; x=1723387478; i=michael.albinus@gmx.de; bh=wnsjA5PnYcPbeRE6Si19ZfET8mU8gUnw+a7pG1Dtsxk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Ky12/51xnOYfHYMS1lz5uBAvY5WgkwM2/LC3uvsS2NFIA7xydFk1lXbNva6TtcXN 658PgTDzIgYZoeMQKXouLhzRGwX3HQQzuGHO7PXfZ1S54K9gjvVMvM6hYNrvOIJF5 7vXt7WWr5x3yLELG6ZEU2YKxQ3epAdpiXY0xyO9tI8FtHV8ghonjI1dXGBME8H4sc ehU0sm0p4jS5PdW9Q3YrbtZHAOf27Ff7XrhUKVA24XTJAvmJX7zuzns1o3I4mz4tT KEnVnwhiaEsQ8rQFbfaa9J9Vy3znUDGIX4vpNqgZeB8sr559iXn7r+y9r/f8zjx+x kJF/tKd1GxaGRVzB8w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUGi9-1sih4n0diV-00L6Dk; Sun, 04 Aug 2024 16:44:38 +0200 From: Michael Albinus In-Reply-To: <8734nk75fj.fsf@gmail.com> (Pranshu's message of "Mon, 05 Aug 2024 00:01:36 +1000") References: <8734nk75fj.fsf@gmail.com> Date: Sun, 04 Aug 2024 16:44:37 +0200 Message-ID: <87a5hsxs8a.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:oCvbHDid6vO7/mwzCuxnI9E+aTKtIrA9piMB6V/cO2u0RDZoaN1 77ZIWk8b4wya9xQDTnIAHCUo0rnBLMhxao8Y3LxTxxyIAeI95SrmaL8H53g6kFHGIQlt2BR J7udopS5fBSlLyxBmi5W7ti41C+Xv3l1ESaZqThxsZCqulGD0WA1B2F901CFsCzWTH82pjr Yld1L8KzOPND/m19VXqBQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:opVIhdNoYhI=;Al3WYf+0vdlyK5TUvrOylCIq7g0 i3Hc0JHuGnZm8bTzE37dEGQ00j5o6qL0x4NdD/ocaFdbI5q1g5Rh/vjqLi4l+y+KGfTHOaETR TeI99O6mv5PoyKS9nV2LuOgSOjI5ldOgPcDD+Hyg/NOI6jXwRV3VWEjxR73RpKzB3kQ+0Kxvo hIal0OX0qsU7/s06D4/wGeVYKyh1caZGdlqC5dF2S0xxV88x2rd7Mm+GAWTmZstc/Ss7uFgEq 57Mhbj0MyjzMMeVtE6jfY7X5g3RMpFLQ2ljLD1S3lKO8gXlLrD9dHJkI/qFMtCPPqWdxHiV/d DyXDEzDUeYUvmfIlaUnJcxqZt5XOb1kLXGcAfoPnKORUVSUj7/w1scV09N8T7GyVyJ6tt7quQ lGEnl4ZeyFuM8UiiR3QCX41UeAct0SaY2BeaJ4Vwdk3VLChgtWW1Ij379BsCkPIDCG5GicddU kwhf8OtR+5oTgy0wmirg0a5T57VRSqUpUVUcfHYc0GwfsGRWHKL17xUghrxzYZBFiiUdpeswV DcIwfAwSgi1MmuXb89dcFyRGHRLmtFzPb34FGg9218gy3VkqrsBq60bYOgs6I5SImEm4Zj1v/ D3Y1IKKbRLwYFzQO67WIMUYXNJMC2I7uRJQ4Vsh2h+oRSgp3uZ2ZbN6X65EmyleuH+SBOK4pc eoVH+ByIs7W5V06USC/1wCnvWQvmPFvhsPhiLfmSX4ctXgKmpTDT/4Cs8CcKuvcoIuHhDd6Ij ND/qSwQx+v8yRuchHhsHTdb+AIeViBbH2E6Mc1KvrDrMj0NlF7HWJ/+/mMxmD4nDZgdtWhy/i b3HNPgddrfvZBHEMXwXrIW1Q== X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Pranshu writes: Hi Pranshu, > Right now to get a functional gnus setup in which I can send and recive > mail, I am having to store my password is 2 places, which is the mail > sources variable, and the authinfo file. This makes it extremly > annoying and insecure, especially since I cannot encrypt one fo the > places I store the password. > > If I remove password from authinfo file, I can still recive mail but not > send any. And if I remove password from mail sources, I cannot recive > mail without typing my whole password when prompted on gnus startup. > > Following is the code I have: > > Elisp code: > ---------------------------------------------------------- > (setq user-mail-address "pranshusharma366@gmail.com") > (setq user-full-name "Pranshu") > (setq smtpmail-smtp-server "smtp.gmail.com") > (setq smtpmail-smtp-service 465) > (setq smtpmail-stream-type 'ssl) > (setq mail-sources `((pop :server "pop.gmail.com" > :user ,user-mail-address > :password "**********" ; Password line > :port 995))) > ---------------------------------------------------------- > > > Authinfo: > ---------------------------------------------------------- > machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 > ---------------------------------------------------------- You can store both passwords in .authinfo, like --8<---------------cut here---------------start------------->8--- machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 machine pop.gmail.com login pranshusharma366@gmail.com password ********** port 995 --8<---------------cut here---------------end--------------->8--- No need to keep it in the :password slot of mail-sources. Best regards, Michael. From unknown Sat Aug 16 22:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72462: Having to store password in mutliple places Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Aug 2024 14:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: pranshusharma366@gmail.com, 72462@debbugs.gnu.org Received: via spool by 72462-submit@debbugs.gnu.org id=B72462.17227828807144 (code B ref 72462); Sun, 04 Aug 2024 14:48:03 +0000 Received: (at 72462) by debbugs.gnu.org; 4 Aug 2024 14:48:00 +0000 Received: from localhost ([127.0.0.1]:56941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacWe-0001r8-0b for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:48:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sacWc-0001qk-4J for 72462@debbugs.gnu.org; Sun, 04 Aug 2024 10:47:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sacWB-0001Q5-2g; Sun, 04 Aug 2024 10:47:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=n7De4pCW1pfd+ibPFzxJi5E5CVli4b6q6ackFi0i140=; b=go35mf+6nq91 Isb/7uzQml9adZv01JY6ExkVRJQqe6DIG/XdZ+WgVkahNxLwGxbCjjerl2ya3umw3KwZxPbAU7OqB EwsXfNE0nzIMufQa73e8Ybh0Qy4KnSbGaKaq2L4YGOAgSuuHI6H6urrBq0W8Bm66tz20dtghXzxZD eAvD1SlNWy0RaYHpxBy+uUfvKRNfHC0WEMlMU2+vQ2GIFrkkYMeFFTLrf0RHXybFjIH8GAR4D/+FV dJxr7We0Bdz21HNw97jyhhRjtDNO6E6IPbxcPI07mPd3yy9OzKOXW6IKPgAYANyivUdosZjy5Xdgl TBo05pERLNN4Mml7FCOkhA==; Date: Sun, 04 Aug 2024 17:47:28 +0300 Message-Id: <86wmkwqr9b.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87o768xsbq.fsf@igel.home> (message from Andreas Schwab on Sun, 04 Aug 2024 16:42:33 +0200) References: <8734nk75fj.fsf@gmail.com> <87o768xsbq.fsf@igel.home> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 72462@debbugs.gnu.org > From: Andreas Schwab > Date: Sun, 04 Aug 2024 16:42:33 +0200 > > On Aug 05 2024, Pranshu wrote: > > > Following is the code I have: > > > > Elisp code: > > ---------------------------------------------------------- > > (setq user-mail-address "pranshusharma366@gmail.com") > > (setq user-full-name "Pranshu") > > (setq smtpmail-smtp-server "smtp.gmail.com") > > (setq smtpmail-smtp-service 465) > > (setq smtpmail-stream-type 'ssl) > > (setq mail-sources `((pop :server "pop.gmail.com" > > :user ,user-mail-address > > :password "**********" ; Password line > > :port 995))) > > ---------------------------------------------------------- > > > > > > Authinfo: > > ---------------------------------------------------------- > > machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 > > ---------------------------------------------------------- > > You should add an entry to authinfo for machine pop.gmail.com, then you > can remove the credentials from mail-sources. That's still writing the > password twice, but at least it's next to each other in the same file. I think writing the password twice is unavoidable, since these are two separate servers/services: one for receiving email, the other for sending. Am I right? From unknown Sat Aug 16 22:47:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Pranshu Subject: bug#72462: closed (Re: bug#72462: Having to store password in mutliple places) Message-ID: References: <86a5hb4jm0.fsf@gnu.org> <8734nk75fj.fsf@gmail.com> X-Gnu-PR-Message: they-closed 72462 X-Gnu-PR-Package: emacs Reply-To: 72462@debbugs.gnu.org Date: Sat, 17 Aug 2024 08:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1723884782-5821-1" This is a multi-part message in MIME format... ------------=_1723884782-5821-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #72462: Having to store password in mutliple places which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 72462@debbugs.gnu.org. --=20 72462: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72462 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1723884782-5821-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 72462-done) by debbugs.gnu.org; 17 Aug 2024 08:52:57 +0000 Received: from localhost ([127.0.0.1]:53459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfFBA-0001Vc-NB for submit@debbugs.gnu.org; Sat, 17 Aug 2024 04:52:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfFB8-0001VO-NT for 72462-done@debbugs.gnu.org; Sat, 17 Aug 2024 04:52:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfFAP-0007yO-QY; Sat, 17 Aug 2024 04:52:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=i+MlSpEYZDhDOIUbv02nz5yMKjhNG5FzO5qNOdEhJEo=; b=KCMAtTYyEq3x RCGVfjMHCTmtEzEDaGkzZGMMYp87/iBcrcbWpA6E5BlEGNWYajWabnTkp246wFRGhmQqaKT69d9lO 8ygP8RxYiEgOfG51K3slwBbCfaE6EdUj20H8t7lQqWGOF16qzN+G6pm5YJ96iRQ4UN1iRS7VThVxf rwL7L/wy1zEgGcPRr1eb5tE0Tp8bubxXqV9HhJsFqEtl8u+oEfDAwEHPsiB0FbqmZ49tB+9KVXMgB vYawyY/xzvFLahaXZItxyyjycxaQVU0LfCkVPGMHXiepCD1Udie0MachZYueQWxZXIYDn9d4Zk8AK OoA+nUc1SPTx+DG8EHzS1Q==; Date: Sat, 17 Aug 2024 11:52:07 +0300 Message-Id: <86a5hb4jm0.fsf@gnu.org> From: Eli Zaretskii To: pranshusharma366@gmail.com In-Reply-To: <86wmkwqr9b.fsf@gnu.org> (message from Eli Zaretskii on Sun, 04 Aug 2024 17:47:28 +0300) Subject: Re: bug#72462: Having to store password in mutliple places References: <8734nk75fj.fsf@gmail.com> <87o768xsbq.fsf@igel.home> <86wmkwqr9b.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72462-done Cc: 72462-done@debbugs.gnu.org, schwab@linux-m68k.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: pranshusharma366@gmail.com, 72462@debbugs.gnu.org > Date: Sun, 04 Aug 2024 17:47:28 +0300 > From: Eli Zaretskii > > > Cc: 72462@debbugs.gnu.org > > From: Andreas Schwab > > Date: Sun, 04 Aug 2024 16:42:33 +0200 > > > > On Aug 05 2024, Pranshu wrote: > > > > > Following is the code I have: > > > > > > Elisp code: > > > ---------------------------------------------------------- > > > (setq user-mail-address "pranshusharma366@gmail.com") > > > (setq user-full-name "Pranshu") > > > (setq smtpmail-smtp-server "smtp.gmail.com") > > > (setq smtpmail-smtp-service 465) > > > (setq smtpmail-stream-type 'ssl) > > > (setq mail-sources `((pop :server "pop.gmail.com" > > > :user ,user-mail-address > > > :password "**********" ; Password line > > > :port 995))) > > > ---------------------------------------------------------- > > > > > > > > > Authinfo: > > > ---------------------------------------------------------- > > > machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 > > > ---------------------------------------------------------- > > > > You should add an entry to authinfo for machine pop.gmail.com, then you > > can remove the credentials from mail-sources. That's still writing the > > password twice, but at least it's next to each other in the same file. > > I think writing the password twice is unavoidable, since these are two > separate servers/services: one for receiving email, the other for > sending. Am I right? No further comments, so I presume the problem is solved by the above advice, and I'm therefore closing this bug. ------------=_1723884782-5821-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Aug 2024 14:02:10 +0000 Received: from localhost ([127.0.0.1]:56840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saboI-00080m-6J for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:02:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:32990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saboF-00080a-JO for submit@debbugs.gnu.org; Sun, 04 Aug 2024 10:02:08 -0400 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 1sabnu-0005vp-7N for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:01:46 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sabns-0000f9-Ip for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2024 10:01:45 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-70eae5896bcso8285032b3a.2 for ; Sun, 04 Aug 2024 07:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722780101; x=1723384901; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=E4S7Vy2LJQSD6D6cOdtI20sG9ienVbGfIF/40/4LNzQ=; b=LE5r3Swf2IcGcEfK3kvmuCgWf9JqB9S8ubmS4iG7REi3N5KfXLdLDtq0ycvlpBEfiI FIc/tMdrE4DC6BltsmJYMLzMIMLB90LEh28FJ6v34kZcCjaMP20X7ant9KGPaoYauVeI R4sTjWoxyQmLtd4owjGqrOsP3FSg0KD5+49V/65yqhYWQqx3VPRw6nFCVX/Ny+9yG5WS JxZDW/EK6+3BpLcSMbUxLm4kgFM7EYJ9093W9fqm5fzd6k3W5fHEvMMcrFb+K0pRsBsY aNbBEUKxG+eP+i+5MaSIctDf2/ZiNAF5DP1NbxklN04AA5YdC5iIOBqse+0YhWYnlw5E uw0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722780101; x=1723384901; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=E4S7Vy2LJQSD6D6cOdtI20sG9ienVbGfIF/40/4LNzQ=; b=wreEgaYD9I8iJUzqM66IXiBp4rPE+kjvzUfObJKDUTdnDMnl9Agv5lMlFb7Eg3nMWp rFAU5xW31maln/xienxxA0Zxngr21LkJrW79slEqze/fCj5V2kBAMR/p1hqJSFS8vdD/ 02P9C3J+01/osXVP6mUnPK9Crzgs2aWECzaAJJ2dsWFbDlL5Wjsjl0JSsTgXNqIGbH6H KY6z69Jx17vMhIBqPxp1vNZf8Sh/zXWHN/IiN88NO10LR1iID5LeCGS9J+fM9n07WNDH +hqsydVHE7fPPXslsI7RgZnPZr8+3GRluRNOGc/6P8290yi+CU9XPf1x28Npha4Bwg0O Ea0A== X-Gm-Message-State: AOJu0YyVEaSgBwwFfPQ8dnxIQLkd6nW+nxmRItmrFShviaQfGKTKb3dQ kxZjFVBNu1IS2Uzs8dSxuy1WZPojquN3yMXCnQRIGdSykytAMH2Dootc6g== X-Google-Smtp-Source: AGHT+IEEEQhVJbgJA0qD1js+E0DiZ9aRxX32hefyQKft0+yKdGulWBU1r0kh6WlIbBlctG8WNepbKw== X-Received: by 2002:a05:6a00:4b04:b0:706:6b4e:64c7 with SMTP id d2e1a72fcca58-7106cf9cf2dmr11049251b3a.9.1722780100560; Sun, 04 Aug 2024 07:01:40 -0700 (PDT) Received: from pebl ([2001:8003:7816:8300:7f15:5962:16a0:6470]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ece0911sm3971723b3a.132.2024.08.04.07.01.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Aug 2024 07:01:40 -0700 (PDT) From: Pranshu To: bug-gnu-emacs@gnu.org Subject: Having to store password in mutliple places Date: Mon, 05 Aug 2024 00:01:36 +1000 Message-ID: <8734nk75fj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=pranshusharma366@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Right now to get a functional gnus setup in which I can send and recive mail, I am having to store my password is 2 places, which is the mail sources variable, and the authinfo file. This makes it extremly annoying and insecure, especially since I cannot encrypt one fo the places I store the password. If I remove password from authinfo file, I can still recive mail but not send any. And if I remove password from mail sources, I cannot recive mail without typing my whole password when prompted on gnus startup. Following is the code I have: Elisp code: ---------------------------------------------------------- (setq user-mail-address "pranshusharma366@gmail.com") (setq user-full-name "Pranshu") (setq smtpmail-smtp-server "smtp.gmail.com") (setq smtpmail-smtp-service 465) (setq smtpmail-stream-type 'ssl) (setq mail-sources `((pop :server "pop.gmail.com" :user ,user-mail-address :password "**********" ; Password line :port 995))) ---------------------------------------------------------- Authinfo: ---------------------------------------------------------- machine smtp.gmail.com login pranshusharma366@gmail.com password ********** port 465 ---------------------------------------------------------- ------------=_1723884782-5821-1--