I have a PHP script that I run from cron. I never get emails.
maillog:
postfix/sendmail[2223187]: fatal: execv /usr/libexec/postfix/smtpd: Permission denied
Command-line:
* * * * * root /usr/bin/php /var/www/script.php
If I run this script from the command line or URL everything is fine. What is the difference between cron and other stuff?
From URL/command-line first step: postfix/smtpd[2222779]: connect from localhost[127.0.0.1]
From cronjob: fatal: execv /usr/libexec/postfix/smtpd: Permission denied
– VJS Mar 22 '21 at 06:14