F22 - ESMTP works from CLI but has problems with cron jobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



People,

Firstly - I have uninstalled anacron.

ESMTP works on my new WS OK and delivers mail to my server on the LAN quite happily but if try a simple cron job - with NO redirection to output file, cron tries to mail me job done information but has problems with ESMTP. If I use:

  crontab -e

and add:

  34 01 * * * echo $HOME

I get these errors in /var/log/messages:

/bin/mktemp: failed to create directory via template ���/.esmtp_queue/XXXXXXXX���: Permission denied

ie "$HOME" is empty - so in:

  /bin/esmtp-wrapper

I changed:

  qdir="$HOME/.esmtp_queue"

to:

  qdir="/home/phil/.esmtp_queue"

then the error I get is:

  crond: /usr/sbin/sendmail: line 43: /dev/stdin: Permission denied

Line 43 in the wrapper is:

  cat </dev/stdin >"$mdir/mail" || ret=1

Why is cron causing a problem where the CLI is fine?

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  phil@xxxxxxxxxxxxx
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux