Date: Wed, 20 Oct 2004 10:25:17 GMT From: Matthias Fechner <idefix@fechner.net> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/72915: Cron will not send emails via Exim Message-ID: <200410201025.i9KAPHYa096084@www.freebsd.org> Resent-Message-ID: <200410201030.i9KAUJGH032880@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410201025.i9KAPHYa096084>
