Package: msmtp Version: 1.8.3-1 Severity: normal Dear Maintainer,
msmtp is unable to write logs into an encfs file. If I try to write the logs elsewhere everything is fine. I believe I have the same problem regarding the reading of the .msmtprc since I had to move it outside of my encfs folder too. Here is an example of error message I obtain when trying to write logs in an encfs file: message-send-mail-with-sendmail: Sending...failed to msmtp: cannot log to /home/vincent/orgd/msmtp.log: cannot open: Permission denied; msmtp: log info was: host=smtp.gmail.com tls=on auth=on user=vincent.hobe...@gmail.com from=vincent.hobe...@gmail.com recipients=someper...@gmail.com mailsize=11420 smtpstatus=250 smtpmsg='250 2.0.0 OK 1564578476 s17sm12382144ejz.70 - gsmtp' exitcode=EX_OK; Prior to Buster things worked fine with encfs. Could this be related to the apparmor settings? I am not at ease with apparmor and can't provide further debugging info. Feel free to ask me to try different settings. Thanks in advance for your time. Best regards *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (700, 'stable'), (1, 'experimental'), (1, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages msmtp depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.71 ii libc6 2.28-10 ii libgnutls30 3.6.7-4 ii libgsasl7 1.8.0-8+b2 ii ucf 3.0038+nmu1 Versions of packages msmtp recommends: ii ca-certificates 20190110 Versions of packages msmtp suggests: pn msmtp-mta <none> -- Configuration Files: /etc/apparmor.d/usr.bin.msmtp changed: /usr/bin/msmtp flags=(attach_disconnected, complain) { #include <abstractions/base> #include <abstractions/nameservice> #include <abstractions/p11-kit> #include <abstractions/ssl_certs> #include <abstractions/ssl_keys> /usr/bin/msmtp mr, /etc/aliases r, /etc/msmtprc rw, /etc/netrc r, owner @{HOME}/.msmtp* r, owner @{HOME}/.netrc r, owner @{HOME}/.tls-crls r, owner @{HOME}/.msmtp*.log wk, /var/log/msmtp wk, owner @{HOME}/orgd/msmtp.log wk, owner @{HOME}/**/.msmtprc rw, owner @{HOME}/orgd/creds/common/.msmtprc rw, owner @{HOME}/**/dot_msmtprc r, owner @{HOME}/.config/msmtp/* r, owner @{HOME}/.cache/msmtp/* r, owner @{HOME}/.cache/msmtp/*.log wk, @{PROC}/@{pid}/loginuid r, /tmp/ rw, owner /tmp/* rw, # to type password interactively owner /dev/pts/[0-9]* rw, # secret helpers /{,usr/}bin/bash Cx -> helpers, /{,usr/}bin/dash Cx -> helpers, profile helpers flags=(complain) { #include <abstractions/base> /{,usr/}bin/bash mr, /{,usr/}bin/dash mr, /tmp/ rw, owner /tmp/* rw, /usr/bin/secret-tool PUx, /usr/bin/gpg{,2} PUx, /usr/bin/pass PUx, /usr/bin/head PUx, /{,usr/}bin/cat PUx, } #include <local/usr.bin.msmtp> } -- debconf information: msmtp/maildomain: msmtp/auto_from: true msmtp/tls: false msmtp/host: msmtp/sysconfig: false msmtp/port: 25