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: Mon, 7 Oct 2002 00:35:38 +0200 From: Uwe Mayer Reply-To: Uwe Mayer X-Priority: 3 (Normal) Message-ID: <663833502.20021007003538@planet-interkom.de> To: "Elfyn" CC: "cygml" Subject: Re[2]: ssmtp and cron In-Reply-To: References: <19126873191 DOT 20021006185420 AT hadiko DOT de> 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 ... 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 ... 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 AT hadiko DOT 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 AT hadiko DOT de during testing... ;) Well - Thank you very much again. Ciao Uwe mailto:merkosh AT planet-interkom DOT 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/