Hello,

On 2019-08-03 4:29 a.m., VA wrote:
> 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.

Thank you very much for reporting the issue! I just submit [*] that is
very similar and tested fine here.

Regards,
Simon

*: https://salsa.debian.org/kolter/msmtp/merge_requests/8

Reply via email to