Package: transmission-daemon Version: 3.00-1 Severity: normal Dear Maintainer, After upgrading to Debian 11, I found that Transmission stopped sending me emails about finished torrents. I did a bunch of troubleshooting and ensured that Transmission is properly executing the completed torrent script. I also saw that Exim still otherwise works, and can even send email as the debian-transmission user after su-ing to this user. I even did a fresh debian install on another machine and did the bare minimum configuration to get both exim4 and transmission set up on it; I witnessed the same exact error.
My smaller test script is a simple one-liner: echo "Torrent Completed: $TR_TORRENT_NAME" | mail -s "Torrent Completed" jthund...@jthundley.com > /etc/transmission-daemon/mailout 2> /etc/transmission-daemon/mailerr mailout is empty while mailerr is: mail: cannot send message: Process exited with a non-zero status mail: Cannot open file /var/lib/transmission-daemon/dead.letter: Permission denied It seems that this bug is caused by this change in Transmission: https://github.com/transmission/transmission/pull/795 After changing my /etc/systemd/system/multi-user.target.wants/transmission-daemon.service to read "NoNewPrivileges=false" instead of true and reloading the service and daemon, I find that transmission is properly sending emails again. -- System Information: Debian Release: 11.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-9-amd64 (SMP w/2 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages transmission-daemon depends on: ii adduser 3.118 ii libc6 2.31-13+deb11u2 ii libcurl4 7.74.0-1.3+b1 ii libevent-2.1-7 2.1.12-stable-1 ii libminiupnpc17 2.2.1-1 ii libnatpmp1 20150609-7.1 ii libssl1.1 1.1.1k-1+deb11u1 ii libsystemd0 247.3-6 ii lsb-base 11.1.0 ii transmission-common 3.00-1 ii zlib1g 1:1.2.11.dfsg-2 Versions of packages transmission-daemon recommends: ii transmission-cli 3.00-1 transmission-daemon suggests no packages. -- Configuration Files: /etc/transmission-daemon/settings.json [Errno 13] Permission denied: '/etc/transmission-daemon/settings.json' -- debconf information: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "en_DK.UTF-8", LC_MEASUREMENT = "en_US.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). locale: Cannot set LC_ALL to default locale: No such file or directory