delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/14/19:44:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: Thu, 15 Jul 2004 09:44:45 +1000 (EST)
From: luke DOT kendall AT cisra DOT canon DOT com DOT au
Subject: Re: sending email from Cygwin
To: cygwin AT cygwin DOT com
In-Reply-To: <cd251o$t1e$1@sea.gmane.org>
MIME-Version: 1.0
Message-Id: <20040714234445.ABA0C84C1E@pessard.research.canon.com.au>

On 14 Jul, Robert R Schneck wrote:
>  > 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. 
>   
>  You should have read /usr/share/doc/Cygwin/ssmtp-2.60.9.README. 
>  It tells you how to create the config file.  It has to be done  
>  locally.   

Thanks.  And from looking through old email, I found afterwards that
there's something called ssmtp-config (it would be a nice thing to
mention in the see-also section of the ssmtp man page).
 
>  Incidentally you don't need revaliases; it can be used if you want 
>  different users on your machine to send their mail via different  
>  mailhubs. 

Thanks, Robert.

On Jul 14 12:45, Larry Hall wrote (to Corinna?):
> > At 11:07 AM 7/14/2004, you wrote:
> > >I don't think cron should contain a dependency to ssmtp though.  It would
> > >be the same as to have a dependency to exim. 
> > 
> > Well, I brought it up since it explicitly creates the link to ssmtp.  An
> > easier alternative would simply be to check if ssmtp already exists before
> > creating the link, though that might not work as well in the cases where
> > both are being installed at the same time.  
> > 
> > This isn't a big issue but it would make things more complete/correct.
> 
> Methinks that a correct approach (for a given value of correct) would
> be to create the symlink in an ssmtp postinstall script.  That's what
> exim does, too.  Creating the symlink in the cron postinstall script
> was a hack at one point.  I'd be happy to get rid of it.

Sounds good.  For cron to work properly, it must be able to send mail,
so it has a weak dependency on *some* mail system.  Tricky to describe,
I imagine.

I also imagine that if you choose to install "all", and so get both
exim and ssmtp, whichever is installed first makes the sendmail
symlink.

I think that's interesting, too.  One day it might be nice for packages
installed via setup, to interact with the user - e.g. to ask if the
current package should steal existing symlinks.

BTW, I'm replying separately to Pierre A. Humblet about the exim
permission error.

Should I submit a patch of the ssmtp man page that fixes the two
problems I noticed?  (/usr/lib/sendmail mentioned instead of
/usr/sbin/sendmail; no See Also mention of ssmtp-config.)

I also noticed that the exim man page doesn't mention that it can
replace sendmail, or that it creates a symlink to sendmail.  In fact,
it doesn't even have a FILES section.  It's auto-generated from
something else, though, so fixing that sounds awkward.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019