From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22563 invoked from network); 16 Dec 2022 02:28:42 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 02:28:42 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p60Sf-0007kk-HR; Thu, 15 Dec 2022 21:28:33 -0500 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 1p60Sd-0007kR-9Q for info-gnus-english@gnu.org; Thu, 15 Dec 2022 21:28:31 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p60Sa-0006rn-J6 for info-gnus-english@gnu.org; Thu, 15 Dec 2022 21:28:31 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 74C1641236 for ; Fri, 16 Dec 2022 03:28:26 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ws-xlcpmIPvC for ; Fri, 16 Dec 2022 03:28:24 +0100 (CET) From: jindam.vani@disroot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1671157704; bh=gUGEsazQtYyIw3cIHx5rcxbnsncWodduAR0UZXQsmms=; h=From:To:Subject:Date; b=YZWCcBRE1IyOnu16UnRbO1r6d1C2iZ5bjsluISZkkr0Qr3s6Z+dnEwvOyb4xS8D+E iXJWnBmL0hnjVDoIhIQvOqsJpnY83Lzd7FPjquLv4wI4EFpoT/eZvp/QhJ2QXZgUuE 0X60qjO/svzPan1r1j1jCAtu5nIkNeMBMlnCECzVzIvI8OT+wK0f/HmEwC3WmNMEQ0 LwDMUhhtVAbWfTAf+I2P7z8f9gXoLCWNuUj2IvD/BtWsuAMlkLuAmnv1BqadHT4SfA fm31Folebz57zbkXXcKgV+hYpksS9ijXBdp8kZTSOuj31FU8ZcSmgrwYp7rdzCFtWW WaJ0RUVLYQA0Q== To: info-gnus-english@gnu.org Subject: v [2.0] disroot email pop3 gnus configuration on debian gnu/linux Date: Fri, 16 Dec 2022 02:27:47 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=jindam.vani@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org * i am running debian 11 (bullseye) [1] on userland [2] ;; what is v [2.0] to minimise errors only .emacs code is provided you will receive error without creating "new, cur,=20 tmp" directories when you run getmail. error: (path: maildir subdirectory "~/.Maildir/INBOX/cur" does not exist) ;; please remember this is bare or minimum setup, nothing fancy v 1.0 =E2=80=94 https://lists.gnu.org/archive/html/info-gnus-english/2022-1= 2/msg00013.html ;; prerequisites: * emacs [3] an email client * getmail6 [4] to rerieve emails * msmtp [5] to send emails * defaultencrypt [6] to encrypted emails * gnupg/gpg [7] to create gnupg/gpg key for=20 encryption or decryption ;; you must * provide password of your disroot email id=20 and disroot email id and password when you=20 retrieve emails and send emails * update to and from email address when=20 composing email * replace 46BB3F32 with your gnupg/gpg encryption=20 key id in .emacs file * create backup of important emails * create directories for storing downloaded emails=20 and getmailrc (see: directories) ;; you cannot * send encrypted email if there is no gnupg/gpg key=20 available for recipient * view or read encrypted emails if you forgot your=20 gnupg/gpg key password * if you permentately delete emails in gnus, you=20 cannot recover emails from email provider ;; how to install prerequisites on debian [8] and=20 its derivatives [9] ;; security is first priority, i included=20 ;; sudo apt update && sudo apt full-upgrade * $ sudo apt update && sudo apt full-upgrade && sudo apt install emacs-lucid or=20 $ sudo apt update && sudo apt full-upgrade && sudo apt install emacs-gtk * $ sudo apt update && sudo apt full-upgrade && sudo apt install getmail6 * $ sudo apt update && sudo apt full-upgrade && sudo apt install msmtp * $ sudo apt update && sudo apt full-upgrade && sudo apt install gnupg ;; directories (create) * getmailrc $ mkdir -m 0700 ~/.getmail [10] ; note =E2=80=94after creating above directory, move=20 getmailrc into this directory * .Maildir, INBOX, new, cur, tmp to store=20 downloaded emails $ mkdir ~/.Maildir $ mkdir ~/.Maildir/INBOX/ $ mkdir ~/.Maildir/INBOX/{new,cur,tmp} * replace email id with your disroot email id=20 in .getmailrc ;; how to auto create .msmtprc [11] $ msmtp --configure yourmail@example.com * note =E2=80=94replace yourmail@example.com with=20 your disroot email id..... ;; replace in .msmtprc * name with your name and email id with your=20 disroot email id ;; how to retrieve or download emails using getmail6 $ getmail * note =E2=80=94provide your email password ;; .emacs (setq make-backup-files nil) (setq create-lockfiles nil) (setq auto-save-default nil) (setq frame-title-format "%b") (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(debug-on-error t) '(display-battery-mode nil) '(initial-buffer-choice "~/") '(send-mail-function 'mailclient-send-it) '(smtpmail-smtp-server "disroot.org") '(smtpmail-smtp-service 25)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "fixed" :foundry "misc" :slant normal :weight norma= l=20 :height 231 :width normal))))) (add-to-list 'load-path "~/.emacs.d/jl-encrypt") (require 'jl-encrypt) (require 'epa-file) (setq epa-file-encrypt-to "46BB3F32") *** .getmailrc [options] delete =3D True read_all =3D true [retriever] type =3D SimplePOP3SSLRetriever server =3D disroot.org username =3D email id [destination] type =3D Maildir path =3D ~/.Maildir/INBOX/ ** .msmtprc account email id host disroot.org port 587 tls on tls_starttls on auth on user name from email id ** defaultencrypt installation: ;; download jl-encrypt.el from defaultencrypt=20 repo [12] ;; create jl-encrypt directory in .emacs.d $ mkdir ~/.emacs.d/jl-encrypt ;; copy downloaded jl-encrypt.el into jl-encrypt=20 directory ;; specify directory location of jl-encrypt in .emacs (add-to-list 'load-path "~/.emacs.d/jl-encrypt") ;; add jl-encrypt in .emacs (require 'jl-encrypt) ** .gnus (setq gnus-select-method '(nnnil "")) (add-to-list 'gnus-secondary-select-methods '(nnmaildir "" (directory "~/.Maildir/") (get-new-mail t) (directory-files nnheader-directory-files-safe))) (setq read-mail-command 'gnus) (setq mail-sources '((pop :server "disroot.org" :user "email id"))) (setq send-mail-function 'smtpmail-send-it) (setq message-send-mail-function 'smtpmail-send-it) (setq smtpmail-default-smtp-server "disroot.org") (setq smtpmail-stream-type 'ssl) (setq smtpmail-servers-requiring-authorization ".*") (setq smtpmail-smtp-service 465) (setq smtpmail-starttls-credentials '(("disroot.org" 465 nil nil))) ** external links: [1] https://en.wikipedia.org/wiki/Debian_version_history#Debian_11_(Bullsey= e) [2] https://github.com/CypherpunkArmory/UserLAnd [3] https://en.wikipedia.org/wiki/Emacs [4] https://en.wikipedia.org/wiki/Getmail [5] https://en.wikipedia.org/wiki/Msmtp [6] https://gitlab.com/lechten/defaultencrypt [7] https://en.wikipedia.org/wiki/GNU_Privacy_Guard [8] https://en.wikipedia.org/wiki/Debian [9] https://en.wikipedia.org/wiki/List_of_Linux_distributions#Debian-based [10] https://getmail6.org/configuration.html#configuring [11] https://marlam.de/msmtp/msmtprc.txt [12]=20 https://gitlab.com/lechten/defaultencrypt/-/raw/master/jl-encrypt.el?inline= =3Dfalse regards, jindam, vani Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) toots: @jindam_vani@c.im others: https://w.wiki/67VT