I'm afraid the connection between "box" for mail() and Virtualmin-Ohm no no. When you call mail(), php is not stupid calls /usr/sbin/sendmail and passes it the headers and the message. Max knows that sendmail is the UID of the process of its caller (so the address is obtained @).
\r
Another thing is that with headers, you can specify the return address and the From: field of outgoing emails and it is very simple approximately it call mail():
\r
\r
mail('Someone ', 'Subject', 'Message', "From: From whom \Reply-To: Who is responsible ");
\r
\r
Or you can even specify additional parameters to sendmail via the fifth parameter to mail():
\r
\r
mail('[email protected]', 'the subject', 'the message', null, '[email protected]');
\r
\r
but it's not that flexible for my taste.
\r
In Google there are tips to change the sendmail_from parameter in php.ini, but they are wrong — this setting only works in Windows.