Public bug reported:
I recently installed msmtp on my ubuntu 20.04 system and had to make the
following changes so that different users could write to the one log
file /var/log/msmtp/msmtp.log
1. Create /var/log/msmtp with group msmtp and setgid permissions drwxrws---
2. Add acl to /var/log/msmtp - setfacl -Rdm g:msmtp:rwx /var/log/msmtp
3. Remove owner for /var/log/msmtp from apparmor file
/etc/apparmor.d/usr.bin.msmtp
4. Document that msmtp users need to be in msmtp unix group.
I consider this to be a bug rather than an enhancement because
/var/log/msmtp is referenced in various places. Logging to users home
directory works fine.
Ubuntu release: Ubuntu 20.04 LTS
Package: msmtp/focal,now 1.8.6-1 amd64
Thanks to the development team for this great product.
Rick Poleshuck
** Affects: msmtp (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1876496
Title:
Using /var/log/msmtp for all users is broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/msmtp/+bug/1876496/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs