X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <388a57b20804300037k6d54bddejb76b94ed5874093e@mail.gmail.com> Date: Wed, 30 Apr 2008 09:37:39 +0200 From: cygwin AT garydjones DOT name To: cygwin AT cygwin DOT com Subject: Re: FW: ssmtp with multiple email accounts In-Reply-To: <20080429140253.GA27238@marvin.optimis.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <388a57b20804281139t7b39677cu55c64ae60bc026fe AT mail DOT gmail DOT com> <20080429140253 DOT GA27238 AT marvin DOT optimis DOT net> 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 See, I knew someone else must have run into this :-) George Davidovich, who would rather I didn't publish his email address, sent me this: ---------- Forwarded message ---------- > >IIRC, ssmtp is dead or dying and has a few outstanding issues, though >both ssmtp and msmtp are available for Cygwin. The following is for >msmtp. > ># ># ~/.mutt/muttrc ># >folder-hook . set sendmail="/usr/local/bin/msmtp -a REAL" >folder-hook mbox1'set sendmail="/usr/local/bin/msmtp -a REAL"' >folder-hook mbox2'set sendmail="/usr/local/bin/msmtp -a OTHER"' > ># ># ~/.msmtprc ># >account REAL >host my.smtp.host1 >from >auth login >user foo >password 012345 > >account OTHER >host my.smtp.host2 >from >auth login >user bar >password 012345 > >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. I kept getting a message something like "Couldn't connect to mailhub:25" which was a bit odd because in the referenced config file I specified port 465 as I recall, so it isn't clear if it isn't picking up the file correctly or if there is an issue or incorrect error message in ssmtp, or what. I'm not so keen on using the folder-hook since I have *lots* of folders and so would need to keep the hooks sync'd with creation/deletion of folders, but it works fine for what it is. If I make any further advances I'll post to the list, but meanwhile I hope someone finds this info useful. -- 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/