Apparently it's as simple as just sending an e-mail to a local account, and configuring Postfix to receive mail for the local account. Not too shabby!
Original Question
This hypothetic server would run Postfix on LAMP.
I have a contact form on a webpage, of which contents are sent with PHP mail() to the contact e-mail address.
Is there a way to just save the form contents as a mail directly to the server (using postfix) without actually sending it out of the server and receiving it again?
The reason I want to do it this way is because I want to use the user's e-mail address as the sender address, and this could be problematic wthout the correct configuration of headers and things, as far as I've come to understand in regards to blacklists etc. In addition to this, of course, it seems very redundant for the server to spend bandwidth sending mail to itself. :)
All I need is to be pointed in the right direction here, but if someone would give detailed explanations, that would be much appreciated as well.
Note: I have tried finding information on how to do this by google searching but to no avail. I have not experimented with postfix myself because I don't have any idea where to start.