|
Posted by Michael Vilain on 04/28/07 19:16
In article <f0vppv$sft$1@news2.zwoll1.ov.home.nl>,
Rik <luiheidsgoeroe@hotmail.com> wrote:
> Michael Vilain wrote:
> > In article <1177680745.238934.146880@s33g2000prh.googlegroups.com>,
> > Max <MaximGolyuk@gmail.com> wrote:
> >
> >> I have a question related to this post:
> >>
> >> We are using 2 different Linux based servers: one for web (PHP, MySQL)
> >> and another for the mail (Qmail, SquirrelMail e.t.c.). Our webserver
> >> is co-located and mail server is installed here. For the PHP mail()
> >> function to be able to use the mail server, I modified php.ini for
> >> SMTP to pointi to the mail server' IP. Yet it still uses web server's
> >> sendmail as SMTP MTA.
> >>
> >> Please help
> >
> > That's not how UNIX email works. AFAIK, php.ini tells php where the
> > local mail transport agent (MTA) is located. php uses this to spawn a
> > thread or perhaps even fork() a process to deliver the mail to the MTA.
> > There's no provision to use "remote" MTAs.
> >
> > You'll have to configure the local MTA on the web server to forward the
> > mail to the mail server if you want mail delivered.
>
> Nonsense. PHP can just as easily use a third party SMTP server, as long
> as it's configured properly, see Jerry's reply.
OK, I'll say it --slowly-- for you. AFAIK, php.ini won't allow
configuration to a REMOTE SMTP server on LINUX or UNIX systems. You
have to specify the MTA that's running on the local system (e.g.
localhost), not the remote system as the OP has done. The SMTP
directive in the php.ini file is for WINDOWS systems, not LINUX systems.
http://us2.php.net/manual/en/ref.mail.php#ini.smtp
http://us2.php.net/manual/en/ref.mail.php#ini.sendmail-from
Configure your sendmail to work on the local system and have it connect
only to the mail delivery system. Should be very simple.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
[Back to original message]
|