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=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22759 invoked from network); 7 Apr 2022 09:31:22 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 7 Apr 2022 09:31:22 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncOU3-00017q-JA for ml@inbox.vuxu.org; Thu, 07 Apr 2022 04:31:19 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1ncOU2-006zTK-ET for ml@inbox.vuxu.org; Thu, 07 Apr 2022 04:31:18 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1ncOU1-006zTE-JF for ding@lists.math.uh.edu; Thu, 07 Apr 2022 04:31:17 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncOTz-0046Ph-3O for ding@lists.math.uh.edu; Thu, 07 Apr 2022 04:31:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Hj+KsML1dHJ6j8NDFXdjIGLldDeB7G/+JYDHoLw8kYw=; b=jMiEeCjtzpzIFupEKQpBpsMGQ5 ByuxZKhLC3/iDw4XDprNofENZz5EqgNJ2uoIVep8hCnVSWDAFSdiBMvSb802IRhsvTlGbKs0uJThf 4HVWtnuZW3ravxfOlkMa9N9Ms0V+/7ZARPKMO/RTnAm+Kp1MqQ30eO0YS4Vcy7uEGQyI=; Received: from mout.kundenserver.de ([212.227.17.10]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncOTr-0007VP-GC for ding@gnus.org; Thu, 07 Apr 2022 11:31:10 +0200 Received: from x280 ([84.189.149.205]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MJn4B-1nIveS2YWH-00KAUI; Thu, 07 Apr 2022 11:31:05 +0200 From: Christian Barthel To: ding@gnus.org Cc: Emanuel Berg Subject: Re: set up Gnus to work with a remote system mailserver (with Dovecot?) References: <87fsmp1yk9.fsf@zoho.eu> Date: Thu, 07 Apr 2022 11:31:05 +0200 In-Reply-To: <87fsmp1yk9.fsf@zoho.eu> (Emanuel Berg's message of "Thu, 07 Apr 2022 03:17:58 +0200") Message-ID: <87k0c1p7dy.fsf@online.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:iAtN6rvKNXtsMCRg6WAZnIX0/HDfx9/UybC0pdwkCqURaJR0FPY hon2gt9wU+kWQKbDoVdFpP5acEOIJej+vyrFdk5fwYkr1sLrLvGMd9aks7HF0aIP1Jmxo0I f/VcRpesnx2Mi3IxrzW99gBf3ySK6s2ZlYjPyqnuhqs0gBvEK5Futbm/ky0VRFik3yV/xYx uaHTmFDBhSZx6LCVJHPFw== X-UI-Out-Filterresults: notjunk:1;V03:K0:PKd10REr19Y=:8lxZrHBmEbGH9kbOS2b6G2 dJv2NDs4ioGjMhDWZudnFijcjiwBXgwRnIbScraOMhjAUdDTnvrVBXl4hzdufTVH/AGt+kqvU KXXPZmhZW1XB4zSgQxucm2mzgdb+5LtaOgkzxFUucJ3jJd9gmmoS5mKL5JSjSgmA6J7vrOf/w u2hf/YaAaysN0Emnl7d2Rq8POxZYNKWHx7NE8RGwa0M6chT1uIiht8/lbeculq6DJtWxNU43k 2523JYUqL5G+VgIstAX6HWZRCBnckdOWUDTuGqALJxuPMd/U3CHGYmVRF0MMIiOSEyhgtOUv5 yUpqONtWDcMG65UkOpJqMuRnWOVzH+E397RqsC9RzWq1NmF0hlX8BL0IYAfbxk1EFVapgY8fC G9fGolYiFTJNHe49+ohJ39hHRbBEuyq7dtFng/VJ5y3P8uJMXDx4L+HcTmylEgVVwWBSSUZCX 1HkJJxfUGGL2Kh6B6wB3Y8lGJigVI2B6eNyoJvpgfpbNpHmpgi82bUKQUFsghWWo36ienk8UC cRYeSwmAQySK/M3ElMv0kfflFufgnIGsq6n5anLM+dWzpE126iIc99OATJ0ht8nA9MXTbUJEN 5yNZ+ZtBaQAjrx9zDHAdldgP/SswrSgO/JG/vEv0pHYnBl87p0tN8Nwkm1H08AlcTHyxZdoeF hqP0Q91vhI8mNRGIhdJvKO2Ql5VFfZALgznu+97nHqcibQ6yrpZR9Q8hri95voovHgm0= List-ID: Precedence: bulk On Thursday, April 07, 2022, Emanuel Berg wrote: > Anyone knows to setup Gnus to work with a remote system mailserver? > I've heard it is IMAP and you are supposed to do accomplish this with > something called Dovecot. [..] nnimap is the way to go, see (info "(gnus) Using IMAP") As far as I remember, the system you=E2=80=99re referring to does not expos= e=20 Dovecot on a TCP port nor does it run Dovecot as a daemon. In this case, you can use the Dovecot imap binary. The configuration should be something like this: --8<---------------cut here---------------start------------->8--- (setq gnus-select-method '(nnimap "Mail" (nnimap-stream shell) (nnimap-shell-program "ssh user@host /usr/local/libexec/dovecot/imap -o mail_location=3Dmaildir:~/Maildir/:LAYOUT=3Dfs"))) --8<---------------cut here---------------end--------------->8--- (remove the =E2=80=9Cssh user@host=E2=80=9D if you=E2=80=99re working local= ly) So, instead of talking with an IMAP Service on a network socket, it executes the shell command and reads mails from there (stdin/stdout). Make sure to setup ~/Maildir/ i.e. your incoming mail must be directed into the ~/Maildir folder. To redirect your incoming mail to fdm(1), you have to setup the =E2=80=9C.forward=E2=80=9D file in your home directory: --8<---------------cut here---------------start------------->8--- # cat ~/.forward |/usr/local/bin/fdm -m -a stdin fetch --8<---------------cut here---------------end--------------->8--- With fdm(1), something like this should work: --8<---------------cut here---------------start------------->8--- # cat ~/.fdm.conf action "inbox" maildir "/home/username/Maildir/" match all action "inbox" --8<---------------cut here---------------end--------------->8--- And then, you have to setup SMTP to send emails. Some additional pointers: https://github.com/nicm/fdm/blob/master/MANUAL#L730 https://dovecot.org/pipermail/dovecot/2009-February/037682.html https://ding.gnus.narkive.com/8JpLY6yI/how-to-debug-nnimap-stream-shell (haven=E2=80=99t used that but that seems helpful for debugging) --=20 Christian Barthel