Can't send mails from php scritp using mail() function

I have done a fresh install of virtualmin on debian lenny.

I have setup the virtual servers and uploaded the sites, but can’t send emails from the sites using the mail function.

Please help

What happens when you try? Do you get any error messages?

Take a look in $HOME/logs/error_log for any PHP errors, and /var/log/mail.log for any errors with the email itself.

-Eric

checked the /var/log/mail.log see results below

Feb 12 14:39:06 hosting postfix/sendmail[17730]: fatal: usage: sendmail [options]
Feb 12 14:40:01 hosting postfix/pickup[15794]: 56267DA57: uid=113 from=
Feb 12 14:40:01 hosting postfix/cleanup[17785]: 56267DA57: message-id=20100212144001.56267DA57@hosting.exeter-it.co.uk
Feb 12 14:40:01 hosting postfix/qmgr[8880]: 56267DA57: from=smmsp@exeter-it.co.uk, size=688, nrcpt=1 (queue active)
Feb 12 14:40:01 hosting postfix/error[17787]: 56267DA57: to=root@exeter-it.co.uk, orig_to=, relay=none, delay=0.11, delays=0.07/0.01/0/0.03, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Feb 12 14:40:01 hosting postfix/cleanup[17785]: 67BDBDA58: message-id=20100212144001.67BDBDA58@hosting.exeter-it.co.uk
Feb 12 14:40:01 hosting postfix/bounce[17788]: 56267DA57: sender non-delivery notification: 67BDBDA58
Feb 12 14:40:01 hosting postfix/qmgr[8880]: 67BDBDA58: from=<>, size=2524, nrcpt=1 (queue active)
Feb 12 14:40:01 hosting postfix/qmgr[8880]: 56267DA57: removed
Feb 12 14:40:01 hosting postfix/error[17787]: 67BDBDA58: to=smmsp@exeter-it.co.uk, relay=none, delay=0.05, delays=0.02/0/0/0.03, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Feb 12 14:40:01 hosting postfix/qmgr[8880]: 67BDBDA58: removed
Feb 12 14:44:06 hosting postfix/sendmail[17883]: fatal: usage: sendmail [options]
Feb 12 14:49:06 hosting postfix/sendmail[18023]: fatal: usage: sendmail [options]
Feb 12 14:54:06 hosting postfix/sendmail[18172]: fatal: usage: sendmail [options]
Feb 12 15:00:01 hosting postfix/pickup[15794]: 855FADA57: uid=113 from=
Feb 12 15:00:01 hosting postfix/cleanup[18310]: 855FADA57: message-id=20100212150001.855FADA57@hosting.exeter-it.co.uk
Feb 12 15:00:01 hosting postfix/qmgr[8880]: 855FADA57: from=smmsp@exeter-it.co.uk, size=688, nrcpt=1 (queue active)
Feb 12 15:00:01 hosting postfix/error[18312]: 855FADA57: to=root@exeter-it.co.uk, orig_to=, relay=none, delay=0.12, delays=0.07/0.01/0/0.04, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Feb 12 15:00:01 hosting postfix/cleanup[18310]: 9AC3CDA58: message-id=20100212150001.9AC3CDA58@hosting.exeter-it.co.uk
Feb 12 15:00:01 hosting postfix/qmgr[8880]: 9AC3CDA58: from=<>, size=2524, nrcpt=1 (queue active)
Feb 12 15:00:01 hosting postfix/bounce[18313]: 855FADA57: sender non-delivery notification: 9AC3CDA58
Feb 12 15:00:01 hosting postfix/qmgr[8880]: 855FADA57: removed
Feb 12 15:00:01 hosting postfix/error[18312]: 9AC3CDA58: to=smmsp@exeter-it.co.uk, relay=none, delay=0.06, delays=0.03/0/0/0.03, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Feb 12 15:00:01 hosting postfix/qmgr[8880]: 9AC3CDA58: removed
Feb 12 15:00:35 hosting postfix/sendmail[18619]: fatal: usage: sendmail [options]
Feb 12 15:02:43 hosting dovecot: ssl-build-param: SSL parameters regeneration completed

Still can’t send e-mails from php scripts please help.