Package: msmtp
Version: 1.8.3-1

msmtp is capable of reading SMTP passwords in a conf file, using an external command, or reading it on the TTY. So it tests by opening /dev/tty:

https://git.marlam.de/gitweb/?p=msmtp.git;a=blob;f=src/password.c;h=aa3b1b530e6e17f3e6d45b395bf399ba99924ecc;hb=HEAD#l198

However, the AppArmor profile prevents this, so in the default configuration, msmtp cannot read the tty:

msmtp: authentication method PLAIN needs a password
msmtp: could not send mail (account xxx from xxx/.msmtprc)

It would be enough to add

#include <abstractions/consoles>

in /etc/apparmor.d/usr.bin.msmtp though.

Reply via email to