|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
X-PHP-Script: themepark.nl/ubb/admin/blabla.php for 1.2.3.4
Anything I can do to not send this on out on mail send from within ubb? I am on a shared environment so can do little in the php config department.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Why would you want this removed? Some mail servers will reject mails if they can tell it's from a php script and theres no script name/source listed
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Why would you want this removed? Some mail servers will reject mails if they can tell it's from a php script and theres no script name/source listed How about the fact that the ip number is listed there? I don't really care about naming the script, I care about slapping the IP adres there. Put a watch on a user, and voila, there's the ip adres. Put a watch on the intire forum, get every users ip adres mailed to you. Plus if you reject a user, that user gets your ip adres as a bonus. b.t.w., that line IS removed from the mails that ubbcentral sends out.
Last edited by blaaskaak; 09/24/2007 3:08 AM.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Well, it's in one of the mailer files; likely the phpmailer class in the libs directory; I don't have code in front of me right this second however to look it up
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Solution: Fill in an smtp server. If you use the php mail stuff, that headerline is added.
I would say that configuring an smtp server would be the prefered way to hide the ip adresses from users, instead of putting it hidden in the advanced stuff.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Does it really matter though? I mean, they can always just dns your domain name and have your ip address...
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
EHr, my home ip, every users home ip.
Don't forget the watch mails are generated as soon as a user posts something, so their ip address is mentioned in the mails that are sended out.
Last edited by blaaskaak; 09/25/2007 2:36 AM.
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
That's odd, it should be the SERVER ip, not the individual user... no "user" should ever know another user's ip address through the forum... If that is the case, this has to be a bug...
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
That line is added if you use the mail function in php, and it adds the ip of the user running the script. By setting an smtp server you avoid using that function and all is well again.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
It appears that your sendmail or php configuration is setup to add that. I just looked through the entire ubb directory structure, including the phpmailer class that handles all of the mail functions, and "X-PHP-Script" isn't added anywhere in the code. We do add an X-Mailer header, but nothing else.
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
I remember it was on our current host and our previous host. Does ubbcentral send out mails through an smtp server.
Like I said, I think it's php's mail() function that is adding it. I'll test on a few more hosts tonight.
Last edited by blaaskaak; 09/25/2007 11:34 AM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
We just use the standard php mail() here.
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Could be something then in the actual configuration of php?
|
|
|
|
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
|
Pooh-Bah
Joined: Jul 2006
Posts: 2,143 |
this is the phpinfo for this very server. My site is on the same server as this site. I don't see anything in here that would add or not add an xmailer php script header, but in truth I am not 100 percent sure what I am looking for either.
|
|
|
|
Joined: Jul 2006
Posts: 2,143
Pooh-Bah
|
Pooh-Bah
Joined: Jul 2006
Posts: 2,143 |
I can't remember what the -t -i flags do
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
I tested it on a different host, and it was not added. But like I said, our current provider and our previous provider did have this added somewhere on the line when you use the php mail function.
I googled en how to remove it, and saw the question more, but no answers.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I think quite a few hosts enable this somewhere. Could actually be a sendmail configuration. That way if there is a rogue script somewhere on the server that is generating email they can see not only where the script is located, but also the IP of the user generating the email.
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
So I guess the Conclusion so far is, if you have this kind of behavior at your host, setup an smtp server within ubb.threads.
|
|
|
0 members (),
375
guests, and
147
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|