Approval message getting sent to node title instead of moderators
| Project: | Akismet |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
When posting a page through the module, a number of failure notices appear in the site administrator's email account. The email addresses the system seems to send two are pulled from text in the post.
For example:
This post:
http://www.officeproductnews.net/news/highest_image_quality_xerox_igen4
Returns 10 error emails. Here is one of them.
---
Hi. This is the qmail-send program at mail.tributemedia.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
<'highest@mail.tributemedia.com>:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
<-@mail.tributemedia.com>:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
<[office product news]@mail.tributemedia.com>:
Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
--- Below this line is a copy of the message.
Return-Path:
Received: (qmail 23435 invoked by uid 48); 15 Sep 2008 20:40:32 -0600
Date: 15 Sep 2008 20:40:32 -0600
Message-ID: <20080916024032.23432.qmail@mail.tributemedia.com>
To: [Office Product News]@mail.tributemedia.com,
moderator@mail.tributemedia.com, notification@mail.tributemedia.com,
-@mail.tributemedia.com, Posted@mail.tributemedia.com,
Newsroom@mail.tributemedia.com, 'Highest@mail.tributemedia.com,
Image@mail.tributemedia.com, Quality@mail.tributemedia.com,
Most@mail.tributemedia.com, Productive@mail.tributemedia.com,
Cut-Sheet@mail.tributemedia.com, Digital@mail.tributemedia.com,
Press@mail.tributemedia.com, Hits@mail.tributemedia.com,
the@mail.tributemedia.com, Market@mail.tributemedia.com;,
Keiger@mail.tributemedia.com, Printing@mail.tributemedia.com,
Inks@mail.tributemedia.com, First@mail.tributemedia.com,
Order@mail.tributemedia.com, for@mail.tributemedia.com,
Xerox@mail.tributemedia.com, iGen4@mail.tributemedia.com,
in@mail.tributemedia.com, North@mail.tributemedia.com,
America'@mail.tributemedia.com
Subject:
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal

#1
Looking at the settings and the debug code I put in your mail.inc, Akismet is sending the messages. Akismet and other modules that invoke hook_nodeapi() assume that the user is logged in, and the global variable $user is set. In the wlw_blogapi_blogger_edit_post() and wlw_blogapi_blogger_new_post() functions validates the user, and sets the $user variable, but does not set it globally. So when akismet_nodeapi() is ran Akismet checks user_access('post with no akismet checking'), since the $user variable is not globally set this returns false and Akismet sends off e-mails notifying the moderators about a new post that needs approval.
Then we have the problem with Akismet. Instead of sending the approval e-mails to the moderators, if you look at the list of addresses the e-mail was sent to:
Notice that all the e-mail addresses are to the domain mail.tributemedia.com. The main thing that would cause this would be if all the addresses didn't have a domain in the address, the server assumes that the messages are for users on the local server. Since these users don't exist on the system the messages are returned to sender. If you reverse engineer the list by removing the '@mail.tributemedia.com' you get:
So, this is just a guess, but it looks like instead of sending the message to the site moderators Akismet attempted to send the moderation approval messages to the node title.