php mail() not working

I had my virtualmin install migrated over to a new host and now the php mail() doesn’t work.

When trying to send a mail it gives me this:
Warning: mail(): Could not execute mail delivery program ‘/usr/sbin/sendmail -t -i’ in

What could be the problem?

Howdy,

Hmm, I haven’t run into an issue like that before.

Let’s start here – does /usr/sbin/sendmail exist, and is it executable?

You can determine that by running this command:

ls -l /usr/sbin/sendmail

I ran that command and it gave me this:

lrwxrwxrwx 1 root root 21 Nov 21 21:27 /usr/sbin/sendmail -> /etc/alternatives/mta

What output do you receive if you run this command:

sendmail -h