PHP mail

I’m having trouble getting mail to be sent from my PHP scripts. They use the mail() PHP function. The function executes, but no mail is ever delivered.

I am testing this on my test server, so I set the “Send outgoing mail via host” to my ISP’s smtp host ( in the Postfix Configuration.

This works if I send mail from ssh using the Linux mail command. Mail is delivered to the internet.

But, with PHP scripts run by Apache, the scripts appear to work but no mail every shows up. I have no idea where it is ending up.

Hey Kevin,

Is anything in the /var/log/maillog?

Can you try setting the mail to localhost and see what happens? You should have a functioning mail server after the installation of Virtualmin (assuming you have working name resolution, and a few other simple bits working).