Re: mail() and exim

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 04/08/2006 12:11 AM Webmaster said the following:
> I'm not sure if this is the right list to ask this on or not....
> 
> Here's the situation... my php scripts were generating emails as
> expected.  I was shocked when they told me that exim was not responding
> to requests on port 25 and had to be restarted.  So, PHP communicates
> with exim internally and doesn't have the need for ports as far as PHP
> generated emails go?  Can anyone describe how this communication takes
> place between PHP and exim (or any mail server for that matter)??  Is
> this why exim would not send my emails via thunderbird but would send
> them via PHP???

You are a bit confused, but that is a normal confusion. You do not need
an SMTP server to send messages. The role of the SMTP server is to
receive messages, not to send them. What sends messages is an MTA (Mail
Transfer Agent). Some SMTP servers are attached to MTA, so they can
receive messages to be resent to their final recipients.

PHP under Unix/Linux calls the sendmail program. Every Unix/Linux MTA
emulates sendmail, including exim. The sendmail program just attempts to
resend the message or queue it for later delivery attempt.

Thunderbird and other mail clients could use sendmail to deliver
messages if they were running on the same machine, but they do not
support it.

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux