SELinux and client-connect to send mail
Posted: Wed Nov 07, 2012 2:58 pm
Hello,
Maybe SELinux problems are more related to CentOS than OpenVPN, but it may still help anyway.
I have a client-connect script which send a mail each time a client connect to the VPN.
It works if I launch openVPN from the command line, but doesn't work if I launch via "/etc/init.d/openvpn start". The reason is that SELinux prevent the openvpn context to send mails.
Other programs (Apache ...) uses a boolean "httpd_can_sendmail" to manage this case.
OpenVPN has a boolean: "openvpn_enable_homedirs", but nothing about mail currently.
Should I fill some feature request ??
Regards
Bruno
Maybe SELinux problems are more related to CentOS than OpenVPN, but it may still help anyway.
I have a client-connect script which send a mail each time a client connect to the VPN.
It works if I launch openVPN from the command line, but doesn't work if I launch via "/etc/init.d/openvpn start". The reason is that SELinux prevent the openvpn context to send mails.
Other programs (Apache ...) uses a boolean "httpd_can_sendmail" to manage this case.
OpenVPN has a boolean: "openvpn_enable_homedirs", but nothing about mail currently.
Should I fill some feature request ??
Regards
Bruno