I just got drupal6 release (thanks all) installed..on Openbsd 4.2 stable.. but upon completion i get the following error:(which i kind of expected)
"Drupal installation complete
Unable to send e-mail. Please contact the site admin, if the problem persists.
Congratulations, Drupal has been successfully installed.
Please review the messages above before continuing on to your new site."
I would just work around this is the earlier versions by using the "smtp authentication" module, but don't see that it's available for this version yet. OpenBSD chroots it's apache install and thus, apache/php can't access the sendmail executable. This environment also presents itself when installing, if the database is on the same machine as apache, by setting database address to "localhost". Chrooted apache can't access mysql.sock outside of the chroot, setting it to 127.0.0.1 fixes it.
I had hoped that smtp would have been an option in this release as i'd prefer not use any of the silly little hacks to get sendmail working inside of the chroot as it's there for a reason, and smtp seems to give much more flexibility anyway.
would this constitute something to request for version 7 (egats.. seeing how 6 came out today.. it seems like a lifetime away) or is this something that could "work it's way" into 6 core sometime?
Thanks in advance..
Aaron
Comments
Dito
Exactly same prob here.
Just read other people have the same problem also.
Was also looking out for that module ... guess patience will be in order here ...
Just use mini-sendmail-chroot
Just use mini sendmail if you have mail already setup on your machine. Mini sendmail only takes the requested email and forwards it on to the local mail server with no modifications to the message.
# pkg_add mini_sendmail-chroot
Next copy sh to the chroot area - because php mail() function requires it
# cp /bin/sh /var/www/bin/sh
finally edit php.ini to reflect the proper mail location
# vi /var/www/conf/php.ini
uncomment and change the following line:
sendmail_path = "/bin/mini_sendmail -t -i"