guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/1] Install mail queue tool with msmtp


From: Leo Famulari
Subject: Re: [PATCH 0/1] Install mail queue tool with msmtp
Date: Wed, 24 Feb 2016 17:39:54 -0500
User-agent: Mutt/1.5.24 (2015-08-30)

On Mon, Feb 22, 2016 at 12:16:51PM -0500, Leo Famulari wrote:
> On Mon, Feb 22, 2016 at 10:34:22AM +0100, Andy Wingo wrote:
> > On Mon 22 Feb 2016 06:38, Leo Famulari <address@hidden> 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:

Taking into account the extra information, does anyone have any
objections?

> 
> ---
> 
> defaults
> auth on
> tls on
> tls_trust_file /path/to/ca-certificates.crt
> 
> account account-name
> host mail.example.com
> from address@hidden
> user address@hidden
> 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 address@hidden
> 
> Or:
> echo here's a patch | msmtpq address@hidden
> 
> 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.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]