PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
jlajax
Worker
Worker


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

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

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 Visit poster's website Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

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


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

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

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 to the forums!
') 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
View user's profile Send private message Visit poster's website Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

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

well i dont understand any of it...
if thats the testing script then changes werent needed..
View user's profile Send private message
jlajax
Worker
Worker


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

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

Me either but I'll puzzle it out eventually
View user's profile Send private message Visit poster's website Yahoo Messenger
jlajax
Worker
Worker


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

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

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 to the forums!
'

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 to the forums!
'), $this->extra_headers);



What say you experts?
View user's profile Send private message Visit poster's website Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Also, does your host use phpsuexec by any chance?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
jlajax
Worker
Worker


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

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

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
View user's profile Send private message Visit poster's website Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

phpinfo(), I believe, will tell you that.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum