Rafael Santoni's picture

Can I change PHP to use something other than Postfix for email delivery?

Correct me if I am wrong, I thought that out of the box Drupal can use PHP mailing functions without having to piggyback from an MTA.

If that is possible, where can I change that?

Thank you,

Liraz Siri's picture

E-mail may be more complicated than you think. PHP needs a mail server to send e-mails. The only way they could avoid that is if they implemented a mail server inside PHP, and that would just be reinventing the wheel.

Luckily, you can configure PHP to use a different mail server than the local postfix running by default. You'll need to edit the mail configuration in /etc/php5/apache2/php.ini. You might also be able to do that via Webmin as well.

Another alternative would be to configure Postfix to relay e-mails to another e-mail server (e.g., your ISP's). Google 'postfix relayhost'.

Add new comment