Link to home
Start Free TrialLog in
Avatar of albevier
albevier

asked on

wordpress uses what kind of mail solution

I am a server admin, not a Wordpress guy. I have a LAMP server up and running and can email out from the command line using the "mail" command. Installed on the server is  procmail and a relay-only MTA package called eSMTP .

Email is relayed to an SMTP server on the same subnet (and because it is on the same private subnet, it not require authentication) and is not an open relay server to the Internet.

However, there is a Workpress web site on the server where the contact forms do not work.  I need to tell the Wordpress guy something that will allow him to understand either the kind of contact form plug-in to use, or how to configure the existing form to work with the "mail" command.

OR............

I'll install the mail package that works best with Wordpress, though I would have thought that most any form plug-in would be able to use the "mail" command.

thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of forethought
forethought

On Fedora, with SELinux enabled, there is an SELinux boolean that prohibits Apache from sending mail. If the system is running SELinux (and I'm not sure which distros are other than Fedora), simply run:

# setsebool -P http_can_sendmail on

Open in new window


And PHP should be able to use the mail() function.

This is assuming that the system is normally able to send email (via the command line, for instance).

Hope that helps.
Curse my typing, the CORRECT command is:

# setsebool -P httpd_can_sendmail on

Open in new window

Avatar of albevier

ASKER

lol - I'm with you on the typing bit forethought.

I forgot to mention that the LAMP I'm using is of the Ubuntu flavor. I think that I've got my answer, but thanks for posting an answer.

Al
Thanks Jason. It was the configuration of php.ini that the Wordpress guy did not know about and which needed to point to  the SMTP server.