Posted by Jerry Stuckle on 05/01/07 17:50
Max wrote:
> Thank you for your posts. I appreciate your feeback.
>
> I agree that PHP can connect to any port and SMTP port 25 is not an
> issue.
> What I want to accomplish is - instead of sending emails using
> standard route (MX pointer): 111.111.111.111 -> 121.121.121.121 ->
> 222.222.222.222
>
> I want to bypass that so that mail sent by PHP mail() function will be
> forwarded directly: 111.111.111.111 -> 222.222.222.222
>
> I will allow relay on 222.222.222.222 for 111.111.111.111.
>
> I think it is possible to do on Windows machine by adding a record in
> lmhosts file.
>
> Can I do it on Linux, by rewriting php.ini or is it Qmail config?
>
No, you can't do it by changing the PHP.INI file. On Linux you have to
connect to a smtp server on that machine. And once PHP dumps the mail
off to the MTA, there is nothing more it can do with it.
You need to follow up in a newsgroup related to your MTA and/or Linux
configuration. There isn't anything you can do with it in MySQL.
But those would all be bypasses. You should get your ISP to modify it's
MTA configuration to allow mail to be sent from your webserver also.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|