Configuring SendMail To Act As A SmartHost & To Rewrite From-Address
This tutorial explains how to configure a sendmail server to forward
all mails generated from localhost to another SMTP server for
sending mails to remote recipients. Also it explains how to rewrite the
from address of user@localhost.localdomain to user@example.com.
van den Burg: you should dneifitely write a cookbook article.It would also be good to mention the role of the $attributes array and how you can use tags to pass additional informations.