Page 1 of 1

SMTP via local subnet

PostPosted: 13. August 2007 13:45
by Kapinski
Hello forum!

I am running xampp on w2k server in a local net. Let's say, the IP address is 10.0.0.90. There is no smtp server running on this machine. A second w2k server is running in the same subnet as active directory controller. This server is also the home of my mail server (w/ smtp).

Now my question: Is this a valid entry in php.ini:

[mail function]
; For Win32 only.
SMTP = smtp.10.0.0.100 <-- This is the entry with the mail servers IP
smtp_port = 25

Thank you for every input and regards to all!

PostPosted: 13. August 2007 19:07
by Wiedmann
SMTP = smtp.10.0.0.100 <-- This is the entry with the mail servers IP

That's not an IP. You mean "10.0.0.100"?

PostPosted: 13. August 2007 20:54
by Kapinski
Yes, the IP address is 10.0.0.100 and it should work this way.

But it didn't.

I couldn't locate any error msg on the server with the xampp hosted. In the phpinfo() report the values for sendmail_from and sendmail_path where set to 'no value'. (Wasn't there two php.ini versions, one for each php4 and php5?)

Anyway, to finish this issue fast I am thinking about to use a local smtp server like freesmtp or so just to get this local server running.

I have nbo idea :(

PostPosted: 13. August 2007 21:00
by Wiedmann
and it should work this way.

Just to clearify. With "this way" you mean:
SMTP = 10.0.0.100

I couldn't locate any error msg on the server with the xampp hosted.

- Your testscript is?
- And more important: What can youread in the logs from your SMTP server?

Problem solved..

PostPosted: 14. August 2007 01:04
by Kapinski
!!! My goodess !!!

First: You're right. Of course it should be: SMTP = 10.0.0.100

Second: It work. But.. :shock:

I did try this before in all variations - but w/o success! The problem was, I tried this in ..\xampp\php\php.ini :evil:

But the trick is, I need set this param in ..\xampp\sendmail\sendmail.ini :P

Tanks & good luck to all!