We're migrating our current OpenVPN setup (Centos 6, OpenVPN 2.1.1) to Centos 8 OpenVPN 2.4.9. We have a PERL connection script and a disconnect SCRIPT.
Both scripts
mostly work, they do what they're intendend to do except from sending emails calling mutt. This works fine on our old setup, not in the new one.
This is the code we use to send mails
sub send_mail
{
my($to,$subject,$str) = @_;
open(MAIL, "| /usr/bin/mutt -xs '$subject' -b alertasvpn\@company.com '$to'" );
print MAIL "$str\n";
close(MAIL);
}
Haven't found any message on the logs. Help is appreciated.