I'm trying to get the logs of at, which AFAIK are sent via local mail.
The problem I'm having (on Ubuntu 20.04) is that I've configured the mail, and the PATH, but any time I execute at, the syslog reports:
Dec 30 16:45:44 mymachine atd[5799]: Exec failed for mail command: No such file or directory
Specifically:
- I've installed
mailutils; a testmailcommand runs successfully (no mail); - The
mailexecutable (symlink, specifically) is under/binand/usr/bin; I've added a symlink also to/sbin; - I've modified the systemd unit to:
ExecStart=/bin/bash -c "PATH=/bin:$PATH exec /usr/sbin/atd -f"(and reloaded the system configuration, and restarted the unit) - I've even launched
atdmanually, with the unit stopped, with the extra$PATH
and still, I get the same error. What's wrong?