Some hosting companies do no longer accept emails sent with an other domain in the "From:" header than the one the site is hosted on. However feedback uses the email given by the sender as from adress, which probably is different from the website url when the user is anonymous.
Feedback should use a fixed From adress (eg 'noreply@sitedomain.tld') and only use the "reply-to" header for email replying.
eg

 (...)
  $name = $edit["form_field_name"];

  $headers .= "From: $name noreply@$_SERVER['HTTP_HOST']\n";
  $headers .= "Reply-To: " . $edit['form_field_email']. "\n";
  $headers .= "Return-Path: " . $edit['form_field_email']. "\n";
  $headers .= "Errors-To: " . $edit['form_field_email'] . "\n";
  $headers .= "X-Mailer: Drupal\n";
 (...)

Comments

sun’s picture

Status: Needs review » Closed (won't fix)

Development on Feedback module v1.x has ended. Beginning from 2.x, the Feedback module has been replaced with a completely different module with a different purpose. Please note that Feedback 2.x is not compatible with 1.x. See #279636: Turn Feedback into user feedback module for further information.

There will be a final 5.x-1.1 release with all existing and tested patches in the issue queue applied. If you need the functionality of the Feedback 1.x module, the Contact module in Drupal core as well as the contributed Webform module are recommended replacements. However, there is no migration path to those modules.

Marking as won't fix.

chriscjcj’s picture

I finally figured it out. The drupal module called "PHPMailer" effectively solves this issue. If you're hosted on Bluehost, here's what you need to do. Some of the steps are applicable to other hosting providers.

1. Host your mail somewhere other than bluehost. (i.e. Google apps.)

2. Go to mx_entry button in cpanel. Make sure that you remove the local mx record already there. Set the radio button to "Remote" rather than local.

3. Go to E-mail Accounts in cpanel. Create an e-mail address that you would like to display in the FROM field of drupal e-mails.

4. Ask Bluehost to put your domain on the remote domains list.

5. Install the "PHPMailer" module on your drupal site.
http://drupal.org/project/phpmailer

6. (Read the instructions and don't forget to install the PHPMailer Library, a separate download.)
http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/

7. In the PHPMail module settings, do this:
- Check "Use PHPMailer to send e-mails"
- Primary SMTP server: localhost
- SMTP Port 25
- Use secure protocol: NO
- Leave SMTP Authentication blank
- Under Advanced SMTP settings, Enter a FROM name
- Under Advanced SMTP settings, CHECK "Always set "Reply-To" address"
- Under Advanced SMTP settings, Don't check "Keep connection alive"

This makes drupal set the FROM field to be an address that Bluehost sees as legitimate (the one you created in step 3.) The reply-to is set to the address of the drupal user who sent the message using the contact form. Even thought the FROM field won't be accurate, when replying to the message, it will go to the right place.