issue #21986: hook pglistener to smtpTransport