Author |
Message |
jlajax
Ardent RavenCMS Supporter
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Oct 12, 2006
Posts: 244
Location: Jacksonville, Florida
|
Posted:
Fri Apr 13, 2007 10:43 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Fri Apr 13, 2007 11:52 am |
|
ok good luck.. ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jlajax
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 1:20 pm |
|
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 postmaster@somedomain.com') 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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 2:18 pm |
|
well i dont understand any of it...
if thats the testing script then changes werent needed.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jlajax
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 2:48 pm |
|
Me either but I'll puzzle it out eventually |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jlajax
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 5:36 pm |
|
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 postmaster@jlajax.com'
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 postmaster@jlajax.com'), $this->extra_headers);
|
What say you experts? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Apr 13, 2007 6:17 pm |
|
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. |
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 6:24 pm |
|
Also, does your host use phpsuexec by any chance? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jlajax
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 8:21 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2007 8:45 pm |
|
phpinfo(), I believe, will tell you that. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|