Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 14 Jul 2004 11:30:21 +1000 (EST) From: luke DOT kendall AT cisra DOT canon DOT com DOT au Subject: sending email from Cygwin To: cygwin AT cygwin DOT com In-Reply-To: <401DE9E4.60E61FA2@dessent.net> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20040714013022.2CBDF85081@pessard.research.canon.com.au> On 1 Feb, Brian Dessent wrote: > If you're just after 'sendmail compatibility' then both ssmtp and exim > provide symbolic links to /usr/sbin/sendmail. So any script or other > type of app that wants to just send out email by invoking the sendmail > command should work fine. I appear to have both exim and ssmtp installed; but I see that /usr/sbin/sendmail is a symlink to /usr/bin/ssmtp. Fair enough, if interesting. I also see that my /etc/ssmtp directory is completely empty. Someone on the list mentioned /usr/local/exim/README.Cygwin, but there is no /usr/local/exim directory on my machine. What I was trying to do was simply to send mail into our local Unix mail system from a shell script in Cygwin. When I tried using exim like this: exim -oi luke < /tmp/sample I got this error: set{u,g}id failed: 22 2004-07-14 10:48:44 unable to set gid=544 or uid=18 (euid=11021): privilege not needed (Which I assume means the opposite: that some privilege *is* needed.) When I tried using the ssmtp sendmail I got this error: sendmail: Cannot open mailhub:25 which I assumed was because there was no ssmtp.conf file. Is there a problem with Cygwin's install of ssmtp, in that it creates no config? Or is configuration simply expected to be done locally or manually? (From the man page, I see that there's supposed to be an ssmtp.conf and a revaliases files, but not what they should contain). BTW, I note that the man page for ssmtp mentions /usr/lib/sendmail, which doesn't exist under Cygwin: /usr/sbin/sendmail does (good!). I adapted Uwe Mayer's mail of Oct 6th last year, to produce an ssmtp.conf file for our site: root=admin mailhub=smtp rewriteDomain=cisra.canon.com.au FromLineOverride=YES The happy news to report is that following this, my simple mail delivery test worked. I don't know what the /etc/ssmtp/revaliases file is for, or what it should contain, but I thought I'd report these problems and results in case they're of interest. luke -- 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/