delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/06/15:49:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Originating-IP: [212.135.179.210]
From: "Elfyn" <emcb_exposure AT hotmail DOT com>
To: "cygml" <cygwin AT cygwin DOT com>
References: <19126873191 DOT 20021006185420 AT hadiko DOT de>
Subject: Re: ssmtp and cron
Date: Sun, 6 Oct 2002 20:49:53 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <OE52fDhBIpY8h9DnY9v0000625e@hotmail.com>
X-OriginalArrivalTime: 06 Oct 2002 19:49:45.0973 (UTC) FILETIME=[85960A50:01C26D71]

Hi,

I forgot to mention this bit of important info...

Unless you config file has the domain that you use for email (hadiko.de) in
the rewriteDomain directive it will not work correctly. Also if you use
other names other than the one in front of the `@' it may cause probs...

Sorry i didnt mention this before.

Elfyn

----- Original Message -----
From: "Uwe Mayer" <merkosh AT hadiko DOT de>
To: <cygwin AT cygwin DOT com>
Sent: Sunday, October 06, 2002 5:54 PM
Subject: ssmtp and cron


> Can somebody enlighten me how ssmtp and cron work together, please?
>
> F.e. what is the /etc/ssmtp/revaliases file for (which looks for me):
> admin:merkosh AT hadiko DOT de:smtp.hadiko.de:25
> merkosh:merkosh AT hadiko DOT de:smtp.hadiko.de:25
>
> As far as I understood this, if mails are send *to* merkosh
> ssmtp would get the destination e-mail and smtp host from this file -
> right?
> But calling "/usr/sbin/ssmtp merkosh" from the command line won't
> work. (after supplying a dummy body)
>
> Then to the /etc/ssmtp/ssmtp.conf file (which looks for me):
> root=admin
> mailhub=smtp.hadiko.de
> rewriteDomain="Uwe Mayer"       #or: rewriteDomain=m111.hadiko.de
> hostname=m111.hadiko.de
> FromLineOverride=YES
>
> admin is the login name of the administrator. So mails to root
> should be send to user "admin" and his e-mail is looked up in
> /etc/ssmtp/revaliases ??
>
> Then the "sending mails from crontabs":
> My crontab contained:
> SHELL=/bin/bash
> MAILTO=merkosh
> * * * * * /usr/bin/date
>
> And I expected mails send to user "merkosh" (<- as in man 5 crontab)
> who's e-mail is looked up from /etc/ssmtp/revaliases...?
>
> This didn't work. I get a letter.dead file in my home folder and the
> following line in /var/log/cron.log:
>
> /usr/sbin/ssmtp: smtp server didn't accept MAIL From, replied "553 5.5.4
<root>... Domain name required for sender address root".
>
>
> What works is:
>
> * * * * * /usr/bin/date | /usr/sbin/ssmtp merkosh AT hadiko DOT de
>
> which is unsattisfying, because it should work without the pipe... :(
>
> Any ideas?
> Ciao
> Uwe
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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