no hostname in mails sent with smtpd in a crontab

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Letellier
Date: Friday, October 9, 2009 - 8:48 am

Hello.

I'm on a OPENBSD_4_6. I use smtpd insted of sendmail. All works perfect 
with it, except one point. When a mail is sent from a crontab, the mail 
received has this in the header:


I have no hostname, no domain, nothing. Just the user in the From part.

This case is only when a mail is sent from a crontab (crontab -e -u root). With this line for example:


So, we wan't answer to this mail, or know who is the machine which send it. However, in other informations in the header, we wan see the domain in 'Received' parts.


See my /etc/mail/smtpd.conf:

See the end of /etc/mail/aliases


And, other question... Why "Cron Daemon" AND "root" are printed in my "From"?

Thanks.

Regards,

-- 

Nicolas
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
no hostname in mails sent with smtpd in a crontab, Nicolas Letellier, (Fri Oct 9, 8:48 am)
Re: no hostname in mails sent with smtpd in a crontab, Gilles Chehade, (Fri Oct 9, 12:38 pm)
Re: no hostname in mails sent with smtpd in a crontab, Gilles Chehade, (Mon Oct 12, 11:52 pm)
Re: no hostname in mails sent with smtpd in a crontab, Nicolas Letellier, (Tue Oct 13, 12:51 am)
Re: no hostname in mails sent with smtpd in a crontab, Gilles Chehade, (Wed Oct 14, 1:52 pm)
Re: no hostname in mails sent with smtpd in a crontab, patrick keshishian, (Wed Oct 14, 3:01 pm)
Re: no hostname in mails sent with smtpd in a crontab, Jacek Masiulaniec, (Wed Oct 14, 3:57 pm)
Re: no hostname in mails sent with smtpd in a crontab, Claus Assmann, (Wed Oct 14, 4:37 pm)
Re: no hostname in mails sent with smtpd in a crontab, Jacek Masiulaniec, (Thu Oct 15, 5:37 am)
Re: no hostname in mails sent with smtpd in a crontab, patrick keshishian, (Thu Oct 15, 7:30 pm)