Postfix/sendmail fatal: User nginx is not allowed to submit mail
Postfix/sendmail fatal: User nginx is not allowed to submit mail You need to edit /etc/postfix/main.cf and find authorized_submit_users = root,www-data and add nginx. After that reload postfix and now you can send emails from web php forms.