i386/72915: Cron will not send emails via Exim

Matthias Fechner idefix at fechner.net
Wed Oct 20 03:30:19 PDT 2004


>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 at 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 at 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 at 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 at fechner.net
i get:
--- cut ---
2004-10-20 12:21:22 1CKDas-000DZG-Ma <= root at 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 at fechner.net H=(localhost) [127.0.0.1] P=esmtp S=858 id=E1CKDas-000DZG-Ma at server.idefix.loc
2004-10-20 12:21:24 1CKDas-000DZG-Ma => idefix at 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 at 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 at 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:


More information about the freebsd-i386 mailing list