SELinux and client-connect to send mail

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
BrnVrn
OpenVpn Newbie
Posts: 9
Joined: Wed Oct 10, 2012 12:44 pm

SELinux and client-connect to send mail

Post by BrnVrn » 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

BrnVrn
OpenVpn Newbie
Posts: 9
Joined: Wed Oct 10, 2012 12:44 pm

Re: SELinux and client-connect to send mail

Post by BrnVrn » Thu Nov 08, 2012 10:27 am


Post Reply