Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro
Author Message
runswithscissors
Hangin' Around


Joined: Aug 16, 2006
Posts: 40

PostPosted: Wed Oct 25, 2006 5:08 pm Reply with quote

Look the fact of the matter is that most host lock down their SMTP servers now and require authentication. So why do you guys not support this by default?? I mean it is rediculas.

I have tried every post related to smtp in this forum and none of them are complete. they go back and forth and there is no final solution that is "here is how you do it." Why?

I have been fighting with this for 4 days now. and gotten very little help.

today I find this addon. this PHPNukeMailer yeah it has a setup and adds itself to the admin panel and everything. "I bet your thinking to your self so whats the problem sounds like you got it licked" Oh No not by far!! in the read me there is a note that says you have to chage out all of the mail() funtions find this " and change it to this . That sort of thing. got to this link and here is a complete list
Only registered users can see links on this board! Get registered or login!

that is the link btw.

Well once you get there you will notice that the first 3 files that it tells you you need to modify.
admin.php
banners.php
mainfile.php

it doesn't tell you what you need to modify????

then it goes on to tell you a bunch of stuff to look for on other pages but when you go to those pages none of the stuff matches. The syntax is all different.

WTF? I mean come on can someone please step up and resolve this and then make a patch or something that is availible on this site that does this and make it a little less painful.

This is only gonna become a bigger and bigger issue as more and more hosts are locking their servers down.

Thish should be part of PHP-NUKE or at least part of raven nuke.

sorry for my tone guys but this has gotten very frustrating and I'm getting nowhere.

can someone please help me before I loose my mind!
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed Oct 25, 2006 7:09 pm Reply with quote

and what is exactly the problem ?
frustration or not.....
what work and what dont?
 
View user's profile Send private message
runswithscissors
PostPosted: Wed Oct 25, 2006 10:58 pm Reply with quote

Cant send mail of any type from the server. the smtp server on the local machine is mail enable and it requires auth.

I have this PHPNukeMailer that sounds like the solution but the notes that list all of the changes that need to be made is incomplete and the syntax doesn't match what is there.
 
hitwalker
PostPosted: Thu Oct 26, 2006 4:36 am Reply with quote

Quote:
Cant send mail of any type from the server


But is that restricted by your host?
if so you should talk to them or look for another host...,but maybe this helps ?

Lets see what it says :

1) Upload the files in the given order.
2) Execute file pnm_setup.php from your browser.
3) For security reasons, When you're done delete it from your server.
4) Open mainfile.php and add this before the closing ?>
So it looks like this:

if (file_exists(INCLUDE_PATH."includes/phpnukemailer.php")) {
include(INCLUDE_PATH."includes/phpnukemailer.php");
}
?>


5) Go to the admin system, find PhpNukeMailer, and change the variables so that they adjust to your needs.
6) Modify files calling mail() function, replace mail(); with phpnukemail();

Example: in file modules/Recommend_Us/index.php

find:
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());

replace with:

if (defined('PNM_IS_ACTIVE')) {
phpnukemail($fmail, $subject, $message, $ymail, $yname);
} else {
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
}



WHAT THEY MEAN IS THAT EVERYTHING HAS TO BE REPLACED WITH :
replace with:

if (defined('PNM_IS_ACTIVE')) {
phpnukemail($fmail, $subject, $message, $ymail, $yname);
} else {
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
}



Ok lets continue.....
So what more?



File modifications are based on PHP-Nuke 7.6, and some common third-party add-ons/modules, pay special attention to this as it may vary if you're on another version of PHP-Nuke or specified add-on/module version.



Files Needing Modifications:

admin.php
banners.php
mainfile.php
Newsletter


open: admin/modules/newsletter.php

in function newsletter_send()

find:

mail("$user_email","$subject","$content",$xheaders);
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($user_email, $subject, $content, $adminmail, $sitename);
} else {
mail("$user_email","$subject","$content",$xheaders);
}

In function massmail_send()

find:

mail("$user_email","$subject","$content",$xheaders);
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($user_email, $subject, $content, $adminmail, $sitename);
} else {
mail("$user_email","$subject","$content",$xheaders);
}

MODULES

Feedback

open: modules/Feedback/index.php

find:

mail($to, $subject, $msg, $mailheaders);
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($to, $subject, $msg, $sender_email, $sender_name);
} else {
mail($to, $subject, $msg, $mailheaders);
}

Journal

open: modules/Journal/friend.php

find:

mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($fmail, $subject, $message, $ymail, $yname);
} else {
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
}

News

open: modules/News/friend.php

in function SendStory()

find:

mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($fmail, $subject, $message, $ymail, $yname);
} else {
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
}

Recommend Us

open: modules/Recommend_Us/index.php

find:

mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($fmail, $subject, $message, $ymail, $yname);
} else {
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
}

Submit News

modules/Submit_News/index.php

in function SubmitStory()

find:

mail($notify_email, $notify_subject, $notify_message, "From: $notify_from\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($notify_email, $notify_subject, $notify_message, $notify_from, $sitename);
} else {
mail($notify_email, $notify_subject, $notify_message, "From: $notify_from\nX-Mailer: PHP/" . phpversion());
}

Surveys

modules/Surveys/admin/index.php

Web Links

open: modules/Web_Links/admin/index.php

in function LinksAddLinks()

find:

mail($email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($email, $subject, $message, $adminmail, $sitename);
} else {
mail($email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}

Your Account

open: modules/Your_Account/index.php

in function finishNewUser()

find:

mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($user_email, $subject, $message, $from, $sitename);
} else {
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}

in function mail_password()

find:

mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($user_email, $subject, $message, $adminmail, $sitename);
} else {
mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());
}

open: modules/Your_Account/admin/index.php

in function UpdateUser()

find:

mail($row2[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion());
change to:
if (defined('PNM_IS_ACTIVE')) {
phpnukemail($row2[user_email], $subject, $body, $from, $sitename);
} else {
mail($row2[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion());
}

CNB Your Account 4.4.0
modules/Your_Account/admin/activateuserconf.php
modules/Your_Account/admin/adduserconf.php
modules/Your_Account/admin/approveuserconf.php
modules/Your_Account/admin/deleteuserconf.php
modules/Your_Account/admin/modifyuserconf.php
modules/Your_Account/admin/promoteuserconf.php
modules/Your_Account/admin/removeuserconf.php
modules/Your_Account/admin/resendmailconf.php
modules/Your_Account/admin/restoreuserconf.php
modules/Your_Account/admin/suspenduserconf.php
modules/Your_Account/includes/functions.php
modules/Your_Account/public/deleteconfirm.php
modules/Your_Account/public/mailpass.php
modules/Your_Account/public/new_finish1.php
modules/Your_Account/public/new_finish2.php
modules/Your_Account/public/new_finish3.php
NSN News 2.0.0
modules/News/admin/NEsubmissionPost.php
modules/News/public/NEFriendSend.php
modules/News/public/NEReplyPost.php
modules/News/public/NESubmitPost.php
NSN GR Downloads
modules/Downloads/admin/DownloadAddSave.php
modules/Submit_Downloads/index.php
NukeSentinel
admin/nukesentinel/ABAuthEditSave.php
admin/nukesentinel/ABAuthResend.php
includes/nukesentinel.php
 
runswithscissors
PostPosted: Fri Oct 27, 2006 1:44 pm Reply with quote

ok see right off the syntax you are telling me to look for is not there it is different.

in recommend_Us/index.php

you say look for :
mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());

and the only time mail() is in the file is this line:

mail($friend_email, $subject, $msg, $mailheaders);

can I just change this to :

phpnukemail($friend_email, $subject, $msg, $mailheaders);
????

and do I need to do the "if" statement?

I mean since I'm only gonna use phpnukemail as mail() is not an option it seems kinda pointless to give it the option of useing something that does not work.
 
hitwalker
PostPosted: Fri Oct 27, 2006 2:07 pm Reply with quote

yes you probably should change that,or atleast try it.
just try it with the contact mod,see how it goes....
as far as i know of this is never been discussed here so there is no knowledge of if this works for everybody...
best thing to do is try a module and edit it with the lines that come close as you just showed.
 
runswithscissors
PostPosted: Fri Oct 27, 2006 2:53 pm Reply with quote

this doesn't work,
none of this matches and now when I try to register I get :

Parse error: parse error in C:\Inetpub\vhosts\aramcobratmedia.com\httpdocs\html\modules\Your_Account\index.php on line 807

this is rediculas.


Last edited by runswithscissors on Fri Oct 27, 2006 3:01 pm; edited 1 time in total 
hitwalker
PostPosted: Fri Oct 27, 2006 3:00 pm Reply with quote

huh....c'mon...dont blame the product...
but...
Quote:
more and more hosts are locking down their server


Who told you that?
Or where do you get this idea from ?

Absolutely not true.
You should complain to your host,or get another host...
99% of the people that use / install phpnuke has no mail problems....
 
runswithscissors
PostPosted: Fri Oct 27, 2006 3:10 pm Reply with quote

I talk to Host providers on a regular basis and the majority of them are locking their smtp servers down. maybe no there in your contry but here in the states all of them that I know do.

anway I don't get an error now but I also didn't recieve the email.
 
hitwalker
PostPosted: Fri Oct 27, 2006 3:15 pm Reply with quote

to bad....well indeed i dont have that problem here...
 
ps-rage
New Member
New Member


Joined: Aug 19, 2006
Posts: 6

PostPosted: Fri Oct 27, 2006 7:04 pm Reply with quote

Im having this same problem. My host requires authentication, Installed this and gone through and replace these lines but i can't seem to connect to my smtp server. I get this error when I attempt to register and it supposedly sends email off.
Warning: fsockopen(): unable to connect to mail.clanps.com:25 in /public_html/includes/phpnukemailer/class.smtp.php on line 105

So would this just be a problem with the smtp server im trying to use? Im confused, and been workin on this problem for many days now, getting pretty frustrated.
 
View user's profile Send private message Visit poster's website
gregexp
The Mouse Is Extension Of Arm


Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sun Oct 29, 2006 10:33 am Reply with quote

Looks more or less as if your host has locked the server port down. I know hitwalker is helping out here but thought perhaps I should add my 2 cents in. runswithscissors, if your host is all that concerned with security as to lock the ports down, have them contact cpanel forums. I and a few others have opened a few threads about e-mail security and Im sure they can find the alternative. One that does not require them to abandon the functionality of mail off their server but in fact sets it even better and allows it.

Heres the Jist of what I have been working on:

Dictionary attack, If your server is set open OR set to send a response if the e-mail does not exist in the form of headers and other things, you can set your e-mail server to kill or die to stop these. VERY EFFECTIVE and recomended fix.

Client spam, This means that the client can upload a script and that script can continually send mail and that is a form of attack, fix: Grab the username off the SCRIPT(This is important as a script being run as nobody will return no uid but the path will return the username), Then logg it and the time, If they exceed set amount, return die(); Thats right, It simply kills it using almost no resources.

These are work arounds and as you can plainly see, Very effective and Ive tested them both!!

I recomend you ask your host to investigate this further, and depending on their response, you should seek a host more suited to your needs.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
ps-rage
PostPosted: Mon Oct 30, 2006 5:08 pm Reply with quote

Ok, so I figured out why I was getting an error when trying to send the email. I had the wrong smtp server listed, once I changed it to localhost now I get no error when sending. The bad news is, I also don't ever recieve an email. I can only send to a local address, Only registered users can see links on this board! Get registered or login! , email Only registered users can see links on this board! Get registered or login! . So now what? :/ ugh. This suxorz, I managed to get rid of the error message, but that means nothing if the email still isn't being sent. lol. Any help here would be much appreciated. thanks

I just checked my error log in cpanel and I am getting these 2 errors

File does not exist: /home/roadrage/public_html/404.shtml
File does not exist: /home/roadrage/public_html/favicon.ico
 
gregexp
PostPosted: Mon Oct 30, 2006 6:57 pm Reply with quote

Those are 404 errors and looking for an icon for webbrowsers, Niether of which help in finding out the exact error.

Youll probably need to address your host with this issue and see how they are setup.

Hitwalker may have a few extra tidbits of information concerning this, if he doesnt reply, Id sudjest a pm.
 
runswithscissors
PostPosted: Wed Nov 01, 2006 6:03 pm Reply with quote

Ok so I have gotten a new host and still not getting activation emails. can someone tell me what is going on here I'm getting no errors as all I'm just not getting emails.

I have a testmail script that I can run and it works

here is the code:

ok well the code can be found in this thread Only registered users can see links on this board! Get registered or login!

Rave you forums are telling me I cannot post the axact same code you did in tha tother thread becasue it is a script attack that is the deal?

Anyway,

and it works just fine yet a fresh install of RavenNuke I'm not getting activation emails I have tried sending to like 4 different accoutn one yahoo one hotmail and the other 2 are standar pop3 business emails. yet all work with the test script.
 
ps-rage
PostPosted: Sat Nov 04, 2006 2:47 pm Reply with quote

Im right there with ya runs, still not getting my emails out as well. PhPnukemailer doesn't seem to work, or im missing something. My host put phpmailer on my site and I can test with that and it sends out emails every time. Unfortunetly I have no idea how to implement this into the your_account module to use it for activation. Not sure why but phpnukemailer will only send to a local address but the phpmail fuction seems to send anywhere. Is there anyone here that can help me get phpmail setup to send out the activation emails on my site? That would be super, as ive been working on this forever now and I seem to be getting nowhere.

thanks,
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Sun Nov 05, 2006 9:29 pm Reply with quote

Are your accounts treating these messages as spam? If so, why? How is your admin, preferences / settings, Administrator email set?

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
runswithscissors
PostPosted: Wed Nov 08, 2006 11:17 am Reply with quote

Ihave tried half a dozen account and only one got thru and that is a pop3 account that is on that domain and on the server.
 
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Tue Nov 14, 2006 8:44 am Reply with quote

hey bro
remember that your SMTP host have to accept relying from the server you are trying to send emails. and bu the way if you are using RavenNuke 7.6, i have made a patch for this distro, you can find it at: Only registered users can see links on this board! Get registered or login!

this is version 1.0.7 of the script and is experimental not a final release.
latest version is 1.0.8 download from Only registered users can see links on this board! Get registered or login!

Smile

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©