From owner-freebsd-i386@FreeBSD.ORG Wed Oct 20 10:30:19 2004 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEF3416A4CE for ; Wed, 20 Oct 2004 10:30:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9265743D3F for ; Wed, 20 Oct 2004 10:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9KAUJuc032881 for ; Wed, 20 Oct 2004 10:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9KAUJGH032880; Wed, 20 Oct 2004 10:30:19 GMT (envelope-from gnats) Resent-Date: Wed, 20 Oct 2004 10:30:19 GMT Resent-Message-Id: <200410201030.i9KAUJGH032880@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Fechner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7727916A4CE for ; Wed, 20 Oct 2004 10:25:18 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ACDA43D58 for ; Wed, 20 Oct 2004 10:25:18 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9KAPHd1096085 for ; Wed, 20 Oct 2004 10:25:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i9KAPHYa096084; Wed, 20 Oct 2004 10:25:17 GMT (envelope-from nobody) Message-Id: <200410201025.i9KAPHYa096084@www.freebsd.org> Date: Wed, 20 Oct 2004 10:25:17 GMT From: Matthias Fechner To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: i386/72915: Cron will not send emails via Exim X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 10:30:19 -0000 >Number: 72915 >Category: i386 >Synopsis: Cron will not send emails via Exim >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 20 10:30:19 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Matthias Fechner >Release: 5.2.1 and 5.3-BETA7 >Organization: >Environment: FreeBSD server.idefix.loc 5.3-BETA7 FreeBSD 5.3-BETA7 #5: Sat Oct 16 15:59:18 CEST 2004 root@:/usr/obj/usr/src/sys/SERVER i386 >Description: it is not possible set in Cron an emailadress like MAILTO="idefix@fechner.net", the mail is not send correctly. I have tested now some things. At first i have write a short script like: echo $0 >> /tmp/bla ; env >> /tmp/bla Which is executed from cron, i get the following output: --- cut --- /usr/local/bin/testcron USER=root HOME=/root MAILTO=idefix@fechner.net LOGNAME=root PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin SHELL=/bin/sh --- cut --- In the exim log i can see the following output if cron try to send the email: --- cut --- 2004-10-20 12:18:00 1CKDXc-000DVc-Ae <= <> R=1CKDXc-000DVb-A8 U=mailnull P=local S=701 2004-10-20 12:18:04 1CKDXc-000DVc-Ae => root@fechner.net R=send_to_smart_host T=remote_smtp H=ipv4.fechner.net [83.120.0.234] X=TLSv1:DHE-RSA-AES256-SHA:256 2004-10-20 12:18:04 1CKDXc-000DVc-Ae Completed --- cut --- Here in the first line i miss the receipiant adress. If i sent an email via shell with user account or root account like: mail idefix@fechner.net i get: --- cut --- 2004-10-20 12:21:22 1CKDas-000DZG-Ma <= root@fechner.net U=root P=local S=321 2004-10-20 12:21:24 no IP address found for host localhost.idefix.loc (during SMTP connection from [127.0.0.1]) 2004-10-20 12:21:24 1CKDau-000DZL-Ql <= root@fechner.net H=(localhost) [127.0.0.1] P=esmtp S=858 id=E1CKDas-000DZG-Ma@server.idefix.loc 2004-10-20 12:21:24 1CKDas-000DZG-Ma => idefix@fechner.net R=amavis T=amavis H=localhost [127.0.0.1] 2004-10-20 12:21:24 1CKDas-000DZG-Ma Completed 2004-10-20 12:21:28 1CKDau-000DZL-Ql => idefix@fechner.net R=send_to_smart_host T=remote_smtp H=ipv4.fechner.net [83.120.0.234] X=TLSv1:DHE-RSA-AES256-SHA:256 2004-10-20 12:21:28 1CKDau-000DZL-Ql Completed --- cut --- And the mail is ok. >How-To-Repeat: use exim from port (exim-4.43+28) set in cron MAILTO="idefix@fechner.net" or any other email like "idefix" (local account etc.), than write something like this in cron: MAILTO="idefix" */1 * * * * root echo test >Fix: >Release-Note: >Audit-Trail: >Unformatted: