Closed hdurdle closed 7 years ago
Have you tried enabling TLS? Try it and see what happens.
I'd stick with the .exe
as you'd need the perfect environment setup for it to work, and the stock activeperl or strawberry perl will not work perfectly, even with the right perl modules. The .exe is bundled, so it just works and doesn't require perl at all.
The only suggesting I'd have right now is to test using a gmail account and a stock config.
Turning on TLS with no other changes resulted in the same error.
Leaving my config.pl intact, but adding smtp.gmail.com with a valid username and password, and turning on TLS works.
I've tried several unauthenticated servers (either on my local network, or my ISPs) and have received the same error each time.
Should the script/underlying Perl module be able to send via an unauthenticated and unencrypted SMTP server?
FWIW, i fixed this same issue on my system by replacing localhost
with 127.0.0.1
in the config
Environment plexwatch.exe on Windows Server 2012 R2 (fully patched) and plexwatch.pl perl script under ActivePerl x64 v5.20.2 on the same system.
Using the default
config.pl-dist-win32
renamed toconfig.pl
with an SMTP server added (mailhost.zen.co.uk
, my ISPs "open" relay) and with the 'to' and 'from' addresses populated, I set 'enabled' to 1. No auth required for this SMTP server.Issue If I run
plexwatch.pl --test_notify=start
I receive this error:I get exactly the same error if I use the Windows executable.
There is no firewall blocking access - I can telnet to port 25 of that SMTP server from the affected machine and manually send an email which is successfully delivered.
The account running the script (or .exe) has full control over all the files it needs to read or touch.
Other command lines work perfectly (so
plexwatch.exe --watched
returns the data I'd expect).What can I try next?
Partially redacted EMAIL config section: