Page 1 of 1

SELinux and client-connect to send mail

Posted: Wed Nov 07, 2012 2:58 pm
by BrnVrn
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

Re: SELinux and client-connect to send mail

Posted: Thu Nov 08, 2012 10:27 am
by BrnVrn