To clear the mail log I deleted /var/log/mail.log
and /var/log/mail.err
.
Now it seems like I've broken something as the files are not recreated as I interact with mail
:
kidmose@radagast:~$ echo "Test text" | mail -s "From radagast" [email protected]
kidmose@radagast:~$ cat /var/log/mail.log
cat: /var/log/mail.log: No such file or directory
Any ideas as how to make logging work again?
(Ideally without reinstall or reboot)
My setup:
kidmose@radagast:~$ uname -a
Linux radagast 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
kidmose@radagast:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty