Nigel Metheringham edited this page Nov 29, 2012 · 2 revisions

Q1302

Question

When using ${perl, clients sometimes disconnect having been fed garbage. This is because perl's STDERR (where warnings generated by perl libraries go) is connected to the SMTP socket. How can I fix this?

Answer

In the Perl script, set the following, which causes warnings to be logged by Exim.

$SIG{__WARN__} = sub { Exim::log_write($_[0]) };

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.