Contributed by jose on from the secure-web-transactions dept.
(Comments are closed)
OpenBSD Journal
Contributed by jose on from the secure-web-transactions dept.
(Comments are closed)
Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]
By Eduardo Alvarenga () eduardo at thrx dot dyndns dot org on mailto:eduardo at thrx dot dyndns dot org
1-> mini_sendmail doesn't compiles well, I had to pull some patches from NetBSD (anyone interested in my personal OpenBSD port?)
2-> mini_sendmail only accepts mail from stdin, making some webmail systems (like PHP-Nuke's) unusable since the message is written according to the mail() function syntax.
3-> mini_sendmail is not so user friendly. Sometimes it gives me strange and nonsense error messages, but on the next try it works wonderfully....
I've managed this problem by installing mini-qmail on the /var/www chroot, using my main qmail server as the relay host via QMQP.
It's now working wonderfully, and after all, the mail headers are now correctlly written comparing to mini-sendmail generated ones.
By Wouter () on
Is it possible to use this mini_qmail for postfix (assuming it doesn't need any libs)? :)
Comments
By Anonymous Coward () on
I'm suprised that no one has complained about the writable /tmp required by php. Seems to me that it would have a greater impact on security than a jailed sh binary.
Comments
By Anonymous Coward () on
(nostab, nodev etc)
By sandolo () sandman@freaknet.org on mailto:sandman@freaknet.org
By dlg () dlg+obsdj@dorkzilla.org on http://www.dorkzilla.org/~dlg
Comments
By Anonymous Coward () on
Comments
By dlg () dlg+deadly@dorkzilla.org on http://www.dorkzilla.org/~dlg
carry on.
By Dave Steinberg () rt@redterror.net on http://www.redterror.net
Comments
By Eduardo Alvarenga () eduardo at thrx dot dyndns dot org on mailto:eduardo at thrx dot dyndns dot org
After I was convinced It was working perfectlly I've removed the /var/qmail directory, the qmail*/alias users and mini-qmail (pkg_delete mini-qmail) and mini-qmail worked like a charm ;-) ON the chroot.
Nice job!
By HillG () on
now following command works fine.
echo "xxxx@xxx.xxx" | /var/www/bin/qmail-inject
but when it comes to executing using php's mail() function ,it does not work.
should I change the sendmail_path in php.ini ?
or anything should I check ?
Comments
By Eduardo Alvarenga () eduardo at thrx dot dyndns dot org on mailto:eduardo at thrx dot dyndns dot org
Comments
By HillG () on
but I could not work it out.
maybe something was wrong in installing qmail process.
I'll try reinstall in clean environment when I need it.
(althogh I feel that mini-qmail is a good solution for sending mail in chrooted Apache with php. but installing shell is a bit disappointing.
My first purpose was to install XOOPS(ver.1.3.10) and make it work but now I could successfully customize it with the help of phpmailer.and now it works great on chrooted Apache.
after all,Thak you for providing a valuable information!
By Bryan () anonymous@coward.net on mailto:anonymous@coward.net
like this:
#set the variable on the fly in your script
ini_set("SMTP", "localhost");
#email like this
#taken from mail() doc's
mail("rasmus@lerdorf.on.ca", "My Subject", "Line 1nLine 2nLine 3");
Comments
By Eduardo Alvarenga () eduardo at thrx dot dyndns dot org on mailto:eduardo at thrx dot dyndns dot org
--
SMTP string
Used under Windows only: DNS name or IP address of the SMTP server PHP should use for mail sent with the mail() function.
--
By Todd T. Fries () todd@fries.net on http://FreeDaemonConsulting.com
mail() function?
I know it shouldn't be difficult, but here's to
not re-inventing the wheel! (and perhaps a
submission to ports/mail/imp...)