How do I resolve the following:"Domain of sender address www-data@lamp does not exist"
Currently all my self-generated email attempts via php script is denied with that error in /var/log/mail.log
A couple of questions:
What do you mean with or without headers?
How are you trying to debug this? What shows up in the logs?
Here's a tip:
apt-get install postfix webmin-postfix
More information about formatting options