Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 7 Oct 2002 00:35:38 +0200
From: Uwe Mayer <merkosh@planet-interkom.de>
Reply-To: Uwe Mayer <merkosh@planet-interkom.de>
X-Priority: 3 (Normal)
Message-ID: <663833502.20021007003538@planet-interkom.de>
To: "Elfyn" <emcb_exposure@hotmail.com>
CC: "cygml" <cygwin@cygwin.com>
Subject: Re[2]: ssmtp and cron
In-Reply-To: <OE52fDhBIpY8h9DnY9v0000625e@hotmail.com>
References: <19126873191.20021006185420@hadiko.de>
 <OE52fDhBIpY8h9DnY9v0000625e@hotmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hallo Elfyn,

Sunday, October 6, 2002, 9:49:53 PM, you wrote:

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

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

E> Sorry i didnt mention this before.

Well, thanks very much. I guess that was it. rewriteDomain was set to
m111.hadiko.de instead of hadiko.de.

After I changed that the error message:

/usr/sbin/ssmtp: smtp server didn't accept MAIL From, replied "553 5.5.4 <root>... Domain name required for sender address root".

changed into:

/usr/sbin/ssmtp: smtp server didn't accept RCPT To: command, replied "550 5.1.1 <admin@hadiko.de>... User unknown".

which was a beginning. The only place where "admin" stood was the
MAILTO=admin line in the crontab.
I found out that the MAILTO env-var specified the To: field in the
email. Setting it to "merkosh" would only work if there was a user
merkosh@hadiko.de (user merkosh known to the smtp host).
Setting it to an arbitrary e-mail adress would work if the address
existed.
According to /usr/doc/Cygwin/ssmtp-2.38.7.README, setting MAILTO=""
would send no mail and leaving MAILTO undefined will send an e-mail to
user merkosh who's address is taken from the /etc/ssmtp/revaliases
file (which works).
However, this all would just work if #FromLineOverride=YES was
commented out. Don't know why. Otherwise the "didn't accept MAIL
From..." error occured.

I probably send some time mails to root@hadiko.de during testing... ;)
Well - Thank you very much again.

Ciao
Uwe                            mailto:merkosh@planet-interkom.de


--
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/

