Execonmcode + msmtp
-
Good morning,
I can’t get this command to work:
echo "Subject: Scub\nImpression terminée" | msmtp scumdead@gmx.frThis works on the sbc, so msmtp is correctly installed.
Thank you for your help.
-
@scumdead It looks like ExecOnMCode is missing the
networkAccess
permission, so msmtp cannot communicate with external services. @Falcounet you may want to add it to the next version (see also here for a list of other permissions).To work-around it, you could probably enable
sudo
support (see here) and run something like this instead:sudo bash -c 'echo "Subject: Scub\nImpression terminée" | msmtp scumdead@gmx.fr'
-
@scumdead @chrishamm I may release a version to fix that.
I didn't wanted to add all the required permissions but it looks like I have to (except superUser) as that kind of plugin allow the user to do almost anything on the system. -
@chrishamm said in Execonmcode + msmtp:
sudo bash -c 'echo "Subject: Scub\nImpression terminée" | msmtp scumdead@gmx.fr'
Thank you for your answers, but it’s not working.
-
@scumdead I've released v0.3 to fix the plugins permissions : https://github.com/LoicGRENON/DSF_ExecOnMcode_Plugin/releases/download/v0.3/ExecOnMcode-0.3.zip
For the workaround to work, you first need to enable
sudo
support but that should not be needed with v0.3 -
Thanks for the new version.
Msmtp does not seem to want to work, the msmtprc file cannot exist for the DSF user.Thank you for your help.
-
@scumdead DSF user doesn't have HOME so yes you can't define a user configuration for it but you can still use the system configuration located at
/etc/msmtprc
-
It works after: chown dsf etc/msmtprc.
Do not use sudo, otherwise the body of the message does not appear.
Thanks, with your plugin, my printers will notify their status now.