Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Looking at the manual, it specifies that the php.ini option for selecting an SMTP server is a windows-only thing. What do I do to configure it to use a specific domain/IP/port for a linux box, or otherwise?

Am I out of choices and need to use something that isn't native to PHP?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

On a Linux system php expects to call sendmail (using the sendmail_path setting to locate the binary). You can use a lightweight send-only mta like msmtp if you simply want to send all your mail to another destination. msmtp is available in Ubuntu, and the configuration is very simple.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.