I try to make a container with a webserver and email proxy. The email proxy is a msmtp. If I try to send an email by command line it works fine. If I try to send an email by PHP msmtp is blocked by apparmor:
But where the profile is stored? In the conainer there is no apparmor in the /etc an in the host there is no profile.
I tried to add a new profile but it is ignored. The interest question is, where I have to add the profile and what to do in it?
Hi,
On the container, you can check with the command sudo aa-status and find the profiles in the /etc/apparmor.d directory if you are using Ubuntu.
Thanks.
I dont’t know why, but as I searched the first time, the folder was not there. Now I found it. The file is inside the container, not on the host. I tried to change the profile to allow the access, but it was not successful. Apparmor is new for me.
I found an other solution with PHPMailer that works.
Thanks for helping