Nicolas Letellier wrote:
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:
From: root (Cron Daemon)
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:
*/1 * * * * echo test
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.
I've spotted this recently too, it breaks the MUA on my phone for some
reason ...
I'll look at it this week-end when i'm done with the virtual domains
code i'm working on
See my /etc/mail/smtpd.conf:
listen on sk0
hostname my.hostname.tld
map "aliases" { source db "/etc/mail/aliases.db" }
accept from all for local deliver to mbox
accept for all relay
See the end of /etc/mail/aliases
root: [email protected]
And, other question... Why "Cron Daemon" AND "root" are printed in my "From"?
what do you mean ?
can you show a sample email ?
Gilles