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

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

I'm running WordPress on an intranet VM and I need all outgoing messages to reach a remote smtp server.

In php.ini there is this specification:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

But my site is running on RHEL so where would I specify the SMTP server name?

share|improve this question
IIRC PHP mail function uses sendmail command on UNIXes. Do you have sendmail command available? Sometimes it is missing if webserver/php is chrooted... – Jiri Xichtkniha May 15 '12 at 19:24
You're right. Sendmail is the way to go. Now configuring that is complicated. You have to create a copy of using either makefile or m4. Not sure how this is going to work but I will post a new question. – AlxVallejo May 15 '12 at 20:39
sendmail doesn't need to be Sendmail. It can be even postfix which emulates sendmail binary feature... – Jiri Xichtkniha May 15 '12 at 21:23

Your Answer


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

Browse other questions tagged or ask your own question.