Email deliverability from cgi
I am having trouble sending e-mail from my cgi scripts to an address outside of my domain.
On-line references say to check my mail log, but does not tell me where that log is kept. This page (https://www.inmotionhosting.com/support/email/cpanel-logs-for-access-apache-email-error-ftp-mysql-whm/) indicates it is in /var/log, but when I access via a terminal, that directory is empty.
Some months ago, after discovering that e-mail was not being delivered, I was instructed to update my "Email deliverability" settings. Those settings are still set, and all show as valid.
How do I determine what the problem is? Where would these errors be logged?