ciao e grazie per la risposta.

$to = 'webmaster@miosito.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@miosito.com' . "\r\n";

mail($to, $subject, $message, $headers);

restituisce sempre

Warning: mail() [function.mail]: SMTP server response: 553 sorry, sender mail address must correspond to local mail domain (#5.7.1) in blablabla on line 23