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: Sun, 6 Oct 2002 18:54:20 +0200 From: Uwe Mayer Reply-To: Uwe Mayer X-Priority: 3 (Normal) Message-ID: <19126873191.20021006185420@hadiko.de> To: cygwin AT cygwin DOT com Subject: ssmtp and cron MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ... 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/