TurnKey Linux Virtual Appliance Library

Issue with php's mail again

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

Try this.

sendmail_path =/usr/sbin/sendmail -t -i -f mailer@yourdomain.com

I've changed to postfix to

I've changed to postfix to see if it works... same crap. vBulletin manages to send emails. But a simple <?php mail("tome@mydomain", "test", "test email"); ?> doesn't work. I've tried with and without headers. The headers include all the same headers as vBulletin does! Your change made no difference.
Liraz Siri's picture

Questions

You really aren't giving enough information for anyone to make a good guess as to what could be going wrong. Mail routing problems can be complex, anything from a misconfigured hostname, DNS resolution problems, spam filter, etc.

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
Now go to the webmin web interface and see if you can configure the myhostname parameter.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)