delorie.com/archives/browse.cgi | search |
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-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
Path: | not-for-mail |
From: | Matthias Bobzien <bobzien AT ikg DOT uni-bonn DOT de> |
Subject: | Re: ssmtp and cron |
Date: | Fri, 03 Jan 2003 18:43:01 +0100 |
Lines: | 61 |
Message-ID: | <3E15CBA5.4030107@ikg.uni-bonn.de> |
References: | <BADF3C947A1BD54FBA75C70C241B0B9E76313A AT ex02 DOT idirect DOT net> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |
X-Accept-Language: | de-DE, en-gb, ko |
Mark and Jason, thanks for the quick responses! Harig, Mark A. wrote: > You might try setting the 'MAILTO' environment > variable in your crontab file. Please see the > crontab(5) manual page for details about setting > environment variables: > > $ man 5 crontab > I considered that before, sorry that I didn't mentioned it. The header of my crontab file reads like this: # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.2052 installed on Fri Jan 3 18:18:02 2003) # (Cron version -- $Id: crontab.c,v 1.6 2001/09/19 17:09:55 corinna Exp $) SHELL=/bin/bash MAILTO=bobzien AT ikg DOT uni-bonn DOT de I tried MAILTO="bobzien AT ikg DOT uni-bonn DOT de" as well, both failed. Jason Tishler wrote: > > I have found that some SMTP servers do not accept mail with unqualified > domain names. This may be your problem. > > In the past, I have patched cron to "send mail" via procmail. Now, I > just use exim and configure it to accept unqualified domain names from > localhost. I'm not sure if I understand that correctly - can I use exim to run as a SMTP-server on my machine? So could I change my ssmtp.conf to use my machine as a SMTP-server and exim forwards it to the machine where my mail is collected (a POP-server)? I'm a bit confused here. Usually I use two servers to handle my mail: mailout.uni-bonn.de as SMTP-server for outgoing mail and mail.ikg.uni-bonn.de as POP-server for incoming mail. So is it possible to configure exim that way that I use it between cron (or whatever) and the SMTP-server? I thought the problem lies in the combination of cron and ssmtp. Both of them work fine separately. For example the following command entered on the command line /usr/sbin/ssmtp.exe -fbobzien AT ikg DOT uni-bonn DOT de bobzien AT ikg DOT uni-bonn DOT de < input.txt with input.txt as an empty file sends an empty mail to myself. Putting that line into crontab results with the errors (can't open the smtp port (25) on mailout.uni-bonn.de..) and (unable to connect to "mailout.uni-bonn.de" port 25..) in the event log. Sorry for that lengthy posting but I'm a little bit lost with this problem. Matthias -- Matthias Bobzien E-Mail: bobzien AT ikg DOT uni-bonn 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |