|
Posted by Jay Blanchard on 09/27/05 15:45
[snip]
[snip]
Okie dokie, I am losing it I am sure....but that's not important now.
I finally configured the IIS Virtual SMTP server as my MTA. No errors are
being thrown, but no mail is being sent either. Well, it may being sent, but
it is not arriving at its destination. Can someone clue me into some things
to check with the IIS Vistrual SMTP Server as MTA for PHP? Any help would be
greatly appreciated.
[/snip]
Furthermore, I just found the e-mail messages sitting in the Queue for IIS
c:\Inetpub\mailroot\Queue
[/snip]
I just wanted to bring this back up as it is the start of a new week. TIA!
[/snip]
Well, it turns out that the solution is pretty simple once you figure out
how to configure the virtual SMTP server as a relay. (I didn't try other
MTA's, so there may be something easier and more robust out there.) The
basic steps are this;
All on my development box, Win2K, IIS 5.0, PHP 4.4.n, MS-SQL Server;
A. Configure the local Virtual SMTP Server to relay mail only from 127.0.0.1
.. This prevents others from attempting to use the server as a spam relay.
Since PHP will be sending the e-mail for various applications all of the
e-mail will be coming from the localhost.
2. Set the outbound relay to be your network mail server by providing the IP
address of your network mail server to the virtual SMTP server on the box
where PHP resides.
All done.
Unfortunately I was unable to find a comprehensive explanation of this
anywhere and arrived at the solution after I spoke at length with my network
administrator. He was also initially unsure of how to configure this but was
appreciative of the fact that I wanted to limit the initial relay from the
PHP box to local traffic only.
OAN; I did not expect that the transition from a *nix environment to a
Microsoft environment would provide the number and types of challenges that
it has. I do find that the PHP transition has not been difficult at all
though. There has to be some adjustment in the thought and planning due to
the differences in the environment, but PHP fairs well through it all.
Navigation:
[Reply to this message]
|