Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.