From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E0CC61381F3 for ; Wed, 5 Dec 2012 05:45:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F1E1E0682; Wed, 5 Dec 2012 05:45:01 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 60F43E0652 for ; Wed, 5 Dec 2012 05:43:51 +0000 (UTC) Received: from [172.17.29.6] (vpn1.metro-data.com [65.213.236.242]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.viabit.com (Postfix) with ESMTPSA id 3YGTQG3P5Lz1hfL for ; Wed, 5 Dec 2012 00:43:50 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1354686230; bh=kbwtTGlt298GBaycc4RakXt7IzWUI9ZaacQOnWhkOgg=; h=Date:From:To:Subject:References:In-Reply-To; b=JBE9O27rYeMDwF1SVWOK5DUbdL9SumD0abG6sCWJ1yTMb63pZuu1xWoJJL2LUguOj FqcNEFaGbRnPbRNdAAS/vSvQ9ke0x36LpGFVi6/KChmaMCVpfxDkcFESsAElnWs33B rzCz+ZX78q38DN+eg4XrP8uWYxXtFruKaTsjNzOY= Message-ID: <50BEDF15.9040304@orlitzky.com> Date: Wed, 05 Dec 2012 00:43:49 -0500 From: Michael Orlitzky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121104 Thunderbird/10.0.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] ssmtp alternatives: msmtp vs. dma References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 26d6cd5c-b482-4179-8bea-3be8a0b71876 X-Archives-Hash: b794c780158206ce073d0df586537455 On 12/05/2012 12:28 AM, Grant wrote: > I was setting up ssmtp but I realized it isn't being maintained and > there are a couple of alternatives called msmtp and dma. Can anyone > recommend one of these over the other? > > I don't like how ssmtp stores the mail password in clear text in its > config file. It looks like msmtp can pull the password from gpg: > > msmtp --passwordeval 'gpg -d mypwfile.gpg' > > I don't have much experience with gpg. Does this mean I can store the > mail password encrypted on each of my systems so it can be used in an > automated fashion to get mail onto my mail server? Do I need to start > gpg-agent and enter a gpg keyring password whenever I reboot each of the > systems? > > Is this the best way to get email alerts from my various systems to my > email address? > I switched to msmtp when nbsmtp was treecleaned. The switch was uneventful; it just works, which is high praise. You can't encrypt your password unless you're going to be physically present to decrypt it (with some other password). If your machine is physically secure, you can just make the msmtp config file read-only to yourself. If someone can log in as you, they can get your password anyway. There's only a risk if e.g. you're not root, or someone else can get root (access to grub) or walk off with the hard drive. If you're worried about either of those scenarios, set up a separate account for your email alerts.