From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 0/1] Install mail queue tool with msmtp Date: Mon, 22 Feb 2016 12:16:51 -0500 Message-ID: <20160222171651.GA2291@jasmine> References: <87oab9rsv5.fsf@igalia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXu6V-0006jZ-HZ for guix-devel@gnu.org; Mon, 22 Feb 2016 12:17:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXu6P-000151-Ki for guix-devel@gnu.org; Mon, 22 Feb 2016 12:16:59 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXu6P-00014b-Gd for guix-devel@gnu.org; Mon, 22 Feb 2016 12:16:53 -0500 Content-Disposition: inline In-Reply-To: <87oab9rsv5.fsf@igalia.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andy Wingo Cc: guix-devel@gnu.org On Mon, Feb 22, 2016 at 10:34:22AM +0100, Andy Wingo wrote: > On Mon 22 Feb 2016 06:38, Leo Famulari writes: > > > msmtp comes with a couple of scripts called msmtpq and msmtp-queue that > > will queue mail locally if necessary. > > > > https://sourceforge.net/p/msmtp/code/ci/master/tree/scripts/msmtpq/README.msmtpq > > > > I've been using them out of the Debian msmtp package, but I'd like to > > see them in Guix. > > > > Thoughts? > I realized the part of the patch that installs the README should install it in "share/doc/msmtp", so I will make that change. > Can you write up how to use it, like in > https://lists.gnu.org/archive/html/guix-devel/2015-11/msg00081.html ? Sure. Here's a basic configuration file for msmtp itself: --- defaults auth on tls on tls_trust_file /path/to/ca-certificates.crt account account-name host mail.example.com from me@example.com user me@example.com passwordeval the rest of this string is an invocation of my password manager account default : account-name --- Once you've got that in a file called ~/.msmtprc, you can do this: echo here's a patch | msmtp guix-devel@gnu.org Or: echo here's a patch | msmtpq guix-devel@gnu.org The second method will queue mail for you in ~/.msmtp.queue if necessary, and the queue is logged in ~/.msmtp.queue.log . The mail will be sent the next time you are able to send mail. In my Mutt configuration, I use it like this: set sendmail = msmtpq set sendmail_wait = -1 # background the 'sendmail' process but watch for # a return code from msmtpq. Users can inspect and work on the queue with the 'msmtp-queue' command, which "calls msmtpq with the --q-mgmt command ; it exposes routines for queue management and maintenance". Configuration of msmtpq is supposed to be done by editing the msmtpq script itself, but in my opinion the defaults are sensible and don't need to be changed. I didn't even realize it was configurable until you asked for this synopsis and I've been using for it about a year.