Peter:
> Alright, 
> 
> A technical question then; I always thought PHP connects to localhost
> just as if I did "telnet localhost 25". 
> What is the difference between an external email connecting to the email
> server and localhost PHP sending emails? Why don't I see "connection
> from localhost[127.0.0.1] in the logs?

Mail is submitted with /usr/sbin/sendmail, and picked up with the
Postfix pickup daemon. There is no SMTP involved at all.

> > > Jul 24 12:49:38 server postfix/pickup[16749]: B435A614EF: uid=48
> > > from=<apache>

Now, you *can* configure PHP to use a different sendmail-like command
that connects to Postfix over SMTP. There programs are called
something like "mini sendmail".

It may also be possible to have PHP submit mail over SMTP. I haven't
looked at PHP in a long time, and then it had no built-in support.

        Wietse

Reply via email to