I'm using msmtp to send mails. I have different accounts that log to different logfiles. Unfortunately whenever it tries to log the following error appears:
send-mail: cannot log to /var/log/mail/[logfile].log: cannot open: Permission denied
I tried the following:
- change owner/group of the file
- tried 777 on the logfiles
- edited the file as the user running the command (which worked)
- disabled apparmor
Nothing has worked so far. I've run out of ideas... what am I doing wrong?
Thanks all for your help!