Hi again.

I searched the mailing list and once again found a question but no answer. 
Perhaps it was answered off-list. [comment: why doesn't the mailing list set
reply-to to the list?]

Anyway, I see from the faq how to set MAILNAME for a user in their environment,
(or MAILUSER) but how do I do this for root when the root .profile isn't
sourced, such as with 'cron' and 'at'?

The way I found which seems to work is to set MAILNAME to something in
/etc/init.d/cron (called when cron starts - may also be /sbin/init.d/cron) so
that /usr/sbin/cron will run with it set, then stop and start cron using

/etc/init.d/cron stop
/etc/init.d/cron start

Hope this helps others.

BTW, sendmail gets the user's real name from /etc/passwd (or the NIS/NIS+
equivalent).  Wouldn't it be smart for qmail to do that too _if_ MAILNAME is not
set?

Cheers!

Brian

Reply via email to