Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

http://ca3.php.net/manual/en/mail.configuration.php#ini.smtp

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.