Scripsit Russ Allbery <rra@debian.org>
More generally, Perl modules to send mail rather than using
/usr/sbin/sendmail are often useful with web applications (or other
applications that need security isolation) that are running in a
chroot.
To use /usr/sbin/sendmail in the chroot requires setting up a chroot
maildrop, and while there are packages to do this, using some
module that
can speak SMTP is often the path of least resistance.
Why not just install some software that can speak SMTP as the chroot's
/usr/bin/sendmail? E.g. nullmailer.