account default not found: no configuration file available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
msmtp (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If ~/.msmtprc is a symbolic link, the user gets the below error message, regardless of the permissions of the link's target.
This was originally reported as Debian bug 919326 (https:/
>>>>>>
$ msmtp -d <email address hidden>
ignoring system configuration file /etc/msmtprc: No such file or directory
ignoring user configuration file /home/selinger/
falling back to default account
msmtp: account default not found: no configuration file available
$ ll .msmtprc
lrwxrwxrwx 1 selinger selinger 24 Aug 13 08:06 .msmtprc -> .myconfig/
$ ll -L .msmtprc
-rw------- 1 selinger selinger 2900 Jul 23 18:31 .msmtprc
>>>>>>
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: msmtp 1.8.3-1
ProcVersionSign
Uname: Linux 5.0.0-23-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
Date: Tue Aug 13 09:39:34 2019
InstallationDate: Installed on 2013-03-26 (2330 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: msmtp
UpgradeStatus: Upgraded to disco on 2019-08-12 (0 days ago)
Hi Peter,
The failure to read your msmtp's config is probably because it's a symlink that points to a non-standard location that is not authorized by default in the Apparmor profile. The Apparmor profile allows the following locations:
/etc/msmtprc r, /**/dot_ msmtprc r, /.config/ msmtp/* r,
owner @{HOME}/.msmtp* r,
owner @{HOME}/**/.msmtprc r,
owner @{HOME}
owner @{HOME}
So you could do various thing to make it work on your setup:
1) move the config to a standard location (see above) and update the symlink d/local/ usr.bin. msmtp: /.myconfig/ msmtprc- * r,
2) add this local override rule to /etc/apparmor.
owner @{HOME}
3) disable the Apparmor profile
For 2 and 3, please refer to the README.Debian file for detailed instructions.
For now, I'll mark the bug as invalid due to the non-standard location used. If you have any questions or the above proposed solutions don't work, please let me know. Thank you!