X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 30 Apr 2008 19:16:14 +0200 From: Gary To: cygwin AT cygwin DOT com Subject: Re: FW: ssmtp with multiple email accounts Message-ID: <20080430171614.GA2232@mimosa.garydjones.name> References: <388a57b20804281139t7b39677cu55c64ae60bc026fe AT mail DOT gmail DOT com> <20080429140253 DOT GA27238 AT marvin DOT optimis DOT net> <388a57b20804300037k6d54bddejb76b94ed5874093e AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <388a57b20804300037k6d54bddejb76b94ed5874093e@mail.gmail.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, Apr 30, 2008 at 09:37:39AM +0200, cygwin AT garydjones DOT name wrote: > >If you are intent on using ssmtp, something along the following (taken > >from an old muttrc file) should work: > [..] > >folder-hook mbox1 \ > >'set sendmail="/usr/sbin/ssmtp.exe -aufoo AT smtp1 DOT host -ap012345"' > > The ''set sendmail="/usr/sbin/ssmtp.exe -au...'' definitely works. > What I couldn't get to work was ''set sendmail="/usr/sbin/ssmtp.exe > -C'' but I haven't managed to get to the bottom of > that yet. Short version: set sendmail="/usr/bin/ssmtp -C/etc/ssmtp/" works just fine in a folder-hook. Long version: If you are reading this then I solved the problem with the previously mentioned "-C" stuff - ssmtp does not seem to allow one to specify "~/foo.conf" (for example) as the config file. If you set it to -C/etc/ssmtp/foo.conf then everything will be fine and you can happily have as many different email accounts and external mailhubs as your heart desires and you can maintain the configurations for. I don't know if not allowing the config file to be anywhere but /etc/ssmtp is a bug, a feature, or a random twist of fate, but it would be nice if the maintainer could mention it in the man file (or maybe I just missed it when I read it). -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/