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.

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

 
discard

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

Browse other questions tagged or ask your own question.