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 -> phpnuke 7.7
Author Message
jlajax
Ardent RavenCMS Supporter



Joined: Oct 12, 2006
Posts: 244
Location: Jacksonville, Florida

PostPosted: Fri Apr 13, 2007 10:43 am Reply with quote

I have daytime tech folks loooking into it at the moment. I will shoot Raven a note if my tech folks can't find something on their end. I am almost certain it is sonmething on my server side as the upgrade and new installs have identical challenges across two different Apache Servers.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Apr 13, 2007 11:52 am Reply with quote

ok good luck.. Wink
 
View user's profile Send private message
jlajax







PostPosted: Fri Apr 13, 2007 1:20 pm Reply with quote

I got this back from my tech guys if this helps at all
Quote:

Hi jlajax,

On the MailTest.php I made a few alterations to the code and got it working I changed the following:

mail($addy,'Test message','Did you get this?') or die('ERROR');

to

mail('someuser@somedomain.net','Test message','Did you get this?', '', '-f [ Only registered users can see links on this board! Get registered or login! ]') or die('ERROR');

I also commented out the:

if (isset($submit)&&!empty($addy)) {

statement, because it appears it was coded in such a way as to not ever properly set the $addy variable.

and now it successfully emails me everytime i submit the form.

I tried to setup a new account for myself inside the tggi system and when I did so I noticed the following in the maillog:

Apr 13 11:46:52 somemailserver sendmail[73626]: l3DIkp9W073626: to=someuser@somedomain.net, ctladdr=nobody (65534/65534), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30804, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l3DIkqXK073627 Message accepted for delivery)

the noteworth part being this:

ctladdr=nobody

the mail server will reject mail unless a ctladdr is being actually set, and since this is showing as nobody it's not. This also indicates that it is not sending the email via smtp, but via the local sendmail.


I have made no changes
 
hitwalker







PostPosted: Fri Apr 13, 2007 2:18 pm Reply with quote

well i dont understand any of it...
if thats the testing script then changes werent needed..
 
jlajax







PostPosted: Fri Apr 13, 2007 2:48 pm Reply with quote

Me either but I'll puzzle it out eventually
 
jlajax







PostPosted: Fri Apr 13, 2007 5:36 pm Reply with quote

Greetings again good people,

I have been on phone with my tech folks. We have tried to register users with out an smtp server, with an smtp server no userID and no PW and with smtp with a valid user ID and pw. None of these options are working. In talking with the tech folks when I change to an smtp server the portal software continues to try to sendmail via local means. They suggested the following changes


Quote:

Hiya jlajax,

Okay, I've taken a look at the code, and sending out through sendmail on silverpine should work with an edit on two lines of code on "emailer.php" in your includes folder.

If you do a search for "use_smtp", you'll find the right general vicinity. There's an if ($this->use_smtp)... skip that, and go to the else statement underneath.

Twice in the function there is a reference to "@mail", with a number of variables called after it. What you'd need to do is add one last item that would look like this:

'-f [ Only registered users can see links on this board! Get registered or login! ]'

If you'd like to see the way the entire new line should look, here you go:

$result = @mail($to, $this->subject, preg_replace("#(?msg,'-f [ Only registered users can see links on this board! Get registered or login! ]'), $this->extra_headers);



What say you experts?
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Apr 13, 2007 6:17 pm Reply with quote

First of all, there is nothing wrong with the test script, at least for the majority of users. I'll be able to comment more after you check something. Please run a phpinfo() on one of you servers and post back the sendmail_path setting. For example, I use /usr/sbin/sendmail -t -i

The -f option explained:
Quote:
-fname Sets the name of the "from" person (i.e., the envelope sender of the mail). This address may also be used in the From: header if that header is missing during initial submission. The envelope sender address is used as the recipient for delivery status notifications and may also appear in a Return-Path: header. -f should only be used by "trusted" users (normally root, daemon, and network) or if the person you are trying to become is the same as the person you are. Otherwise, an X-Authentication- Warning header will be added to the message.
 
View user's profile Send private message
Raven







PostPosted: Fri Apr 13, 2007 6:24 pm Reply with quote

Also, does your host use phpsuexec by any chance?
 
jlajax







PostPosted: Fri Apr 13, 2007 8:21 pm Reply with quote

sendmail_path /usr/sbin/sendmail -t -i both local and master settings

Day crew is gone now may take some time to get a response on the phpsuexec
 
Raven







PostPosted: Fri Apr 13, 2007 8:45 pm Reply with quote

phpinfo(), I believe, will tell you that.
 
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 -> phpnuke 7.7

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 ©