Got Sentinel running in two different sites, one is the last RN 2.3.1 and the other is a phpnuke 7.6 patched 3.1 site. When a hacker is blocked the email admin function does not work but the blocker and the htacces writing yes. (yes, the option "email" is checked in blocker configuration).
Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
Posted:
Wed Jun 24, 2009 11:38 am
In non RavenNuke (tm) sites, Nuke Sentinel (tm) will use PHP's built in phpmail() function as it is the only option available.
Using you have the blocker configuration set to email you, which your first post indicates you have, then the first thing to rule out is your host having restrictions on the phpmail() function.
Some hosts do not allow it at all but if users are getting their activation email, that also seems unlikely to be the problem.
Moving on...
Is your NS admin email address an email address associated with your domain? Some hosts restrict phpmail() is the 'sender' email address is not for the same domain it is being sent from.
In both sites the TN Mailer is installed and active the write_mail function is the same in both Sentinel versions (the installed and de included in RN). In this function the presence of TN Mailer is checked:
Code:
if (defined('TNML_IS_ACTIVE')) {
....
....
Maybe the problem is the issue with the dnsstuff?
also, my NS email is my webmaster account assosiated to my domain.
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Thu Aug 06, 2009 9:35 pm
sockettf, sorry that this took so long to get to. I have been swamped this summer. I am the author of the TegoNuke(tm) Mailer. I would back out the "fix" you applied above as essentially what you have done is force NukeSentinel(tm) to use PHP's mail() function rather than the Mailer. But, I have to ask why you are even using the Mailer and SMTP if the mail() function is enabled on your site. I would just reset that bit of code back in nukesentinel.php, turn off the Mailer and be back in business.
However, if you want the real fix, here it goes. I wasn't handling all combinations of TO addresses correctly. All the other RavenNuke(tm) code passes both the email address and a from name, but NukeSentinel(tm) does not pass the from name. I just wasn't handling that case properly and so it was trying to send to an invalid email address. To fix this (to use what I have just committed to the 2.4.0 release of RavenNuke(tm)), do this:
=== OPEN FILE ===
includes/tegonuke/mailer/mailer.php
=== FIND CODE ===
Code:
/*
* Validate to and from information and build Swift Address objects
*/
if (!is_array($to)) {
$oRecipients = new Swift_Address($to);
} elseif (count($to) == 1) {
$oRecipients = new Swift_Address($to[0][0], (isset($to[0][1])) ? $to[0][1] : null);
} else {
$oRecipients =& new Swift_RecipientList();
foreach($to as $recipient) {
$oRecipients->addTo((is_array($recipient) and isset($recipient[0])) ? $recipient[0] : $recipient, (is_array($recipient) and isset($recipient[1])) ? $recipient[1] : null);
}
}
=== REPLACE WITH ===
Code:
/*
* Validate to and from information and build Swift Address objects
*/
if (!is_array($to)) {
$oRecipients = new Swift_Address($to);
} elseif (count($to) == 1) {
$oRecipients = new Swift_Address(
(is_array($to[0])) ? $to[0][0] : $to[0],
(is_array($to[0]) && isset($to[0][1])) ? $to[0][1] : null
);
} else {
$oRecipients =& new Swift_RecipientList();
foreach($to as $recipient) {
$oRecipients->addTo(
(is_array($recipient) && isset($recipient[0])) ? $recipient[0] : $recipient,
(is_array($recipient) && isset($recipient[1])) ? $recipient[1] : null
);
}
}
The main reason for why Im using the TN Mailer SMTP is the problem with the hotmail.com accounts, my hotmail users dont receive emails from php mail function. Only using SMTP the msn users can receibe notifications and activation email.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum