Page 1 of 1

PERL Script weird missbehaviour

Posted: Thu Aug 20, 2020 8:20 pm
by atarallo
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

Code: Select all

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.

Re: PERL Script weird missbehaviour

Posted: Thu Aug 20, 2020 8:23 pm
by TinCanTech
Dropping a long line into a deep pool ..

viewtopic.php?f=30&t=22603