1

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?

AlxVallejo
  • 1,086
  • 4
  • 11
  • 19
  • IIRC PHP mail function uses sendmail command on UNIXes. Do you have sendmail command available? Sometimes it is missing if webserver/php is chrooted... – jirib 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... – jirib May 15 '12 at 21:23

0 Answers0