"from" user / return-path in email sent by webserver?
I host websites for a small number of friends/clients - maybe 20. Until recently, it has never been a problem that the return-path: has always been www@mail.mydomain.com when mail is sent from a web script (i.e. PHP or other languages call sendmail locally)Now, however, I need to change this and have it be user/domain specific if possible...
What's a good solution for this? How do big web hosts handle this sort of thing for their clients? Do you somehow force PHP and other scripting languages to use local SMTP instead of calling the binary (how?) or is there a more elegant solution?
Thanks...