Should cgi files be mapped to PERLis.dll or Perl.exe?
I used Perl.exe.

I am still getting the same error with this new install of PERL:

An error has occurred:

Unable to connect to the SMTP server. The following error was returned: Unknown error

The server either does not exist, or rejected the connection.

Please ensure that the UBB is allowed to relay mail through the server.