When sending E-Mail, the module is not formatting the headers correctly so the Email Server tries to send a message to:

entry
guestbook
New

In addition, the From address is from apache@myserver.com, so the bounce message is causing an additonal error because apache is not a user. The From address should be the owner of the Drupal Site, not the process trying to send the message.

From the Sendmail error Log:

   ----- The following addresses had permanent fatal errors -----
entry
    (reason: 550 5.1.1 <entry@myserver.com>... User unknown)
guestbook
    (reason: 550 5.1.1 <guestbook@myserver.com>... User unknown)
New
    (reason: 550 5.1.1 <New@myserver.com>... User unknown)

Comments

sciman’s picture

Status: Active » Needs review

change this:

  drupal_mail('guestbook_notification', $iSendEmail, 'New guestbook entry', $message, $from);

to this:

   drupal_mail('guestbook', 'notify', $iSendEmail, language_default(), array('message' => $message));

Add this function:

function guestbook_mail($key, &$message, $params) {
 switch($key) {
    case 'notify':
      $message['subject'] = 'New guestbook entry';
      $message['body'] = $params['message'];
      break;
  }
}

Problem solved.

sun’s picture

Priority: Critical » Normal

According to the changelog, this should already be fixed in the latest development snapshot. Did you already test that?

sciman’s picture

>> Did you already test that?

No, I was working with the Release version like I always try to do.

Shouldn't a fix like this warrant a new Release Candidate?

Thanks.

sun’s picture

Status: Needs review » Fixed

Yes, probably. However, I want to get some other fixes from the queue into 1.0.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.