PERL Script weird missbehaviour

How to customize and extend your OpenVPN installation.

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

Post Reply
atarallo
OpenVpn Newbie
Posts: 2
Joined: Thu Aug 20, 2020 2:50 pm

PERL Script weird missbehaviour

Post by atarallo » Thu Aug 20, 2020 8:20 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: PERL Script weird missbehaviour

Post by TinCanTech » Thu Aug 20, 2020 8:23 pm

Dropping a long line into a deep pool ..

viewtopic.php?f=30&t=22603

Post Reply