Skip to content
Snippets Groups Projects
Commit 1447d1a0 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

die if no sendmail executable is available

parent ce853fc6
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,9 @@ sub update_ssp_authsources {
sub mail_notice {
my (%args) = @_;
die "unable to send mail, no sendmail executable found"
unless -x '/usr/sbin/sendmail';
open SENDMAIL,
"|/usr/sbin/sendmail -f $args{data}->{from} $args{data}->{to}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment