Perl error with Lite.pm when running filter to send email notification

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
desertcroc
Posts: 11
Joined: Thu Apr 12, 2018 10:28 pm

Perl error with Lite.pm when running filter to send email notification

Post by desertcroc »

Hi,

After upgrading to 1.36 (actually, a clean install, restoring DB from backup of an older version) I'm getting this error in the logs when a notification email is supposed to be sent by a filter:

07/06/2021 22:19:29.451385 zmfilter[423574].INF [main:179] [Scanning for events using filter 'EmailOnFrontDoorAlarm']
07/06/2021 22:19:29.514088 zmfilter[423574].INF [main:842] [Creating notification email]
07/06/2021 22:19:29.529666 zmfilter[423574].INF [main:850] [Sending notification email 'Alarm - Front Door']
Use of uninitialized value $cmd[0] in exec at /usr/share/perl5/MIME/Lite.pm line 2732.
Use of uninitialized value $cmd[0] in exec at /usr/share/perl5/MIME/Lite.pm line 2732.
Can't exec "": No such file or directory at /usr/share/perl5/MIME/Lite.pm line 2732.
Use of uninitialized value $p{"Sendmail"} in concatenation (.) or string at /usr/share/perl5/MIME/Lite.pm line 2732.
07/06/2021 22:19:29.579930 zmfilter[423576].ERR [main:930] [Unable to send email: can't exec : No such file or directory]

Any suggestions? I wasn't able to find anything like this from searching around.
desertcroc
Posts: 11
Joined: Thu Apr 12, 2018 10:28 pm

Re: Perl error with Lite.pm when running filter to send email notification

Post by desertcroc »

I solved this by examining the Lite.pm file and seeing that there are two methods of sending supported, with this MIME module being halfway deprecated. ssmtp is the other method, so I installed that and its dependencies, and everything is working now.
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Perl error with Lite.pm when running filter to send email notification

Post by bkjaya1952 »

Post Reply