Forum OpenACS Q&A: Re: References to qmail

Collapse
2: Re: References to qmail (response to 1)
Posted by Joel Aufrecht on
A semi-informed reply:

Qmail and sendmail can exist on the same system, and the qmail install instructions walk you through first installing qmail, then gradually migrating from sendmail to qmail.

ecommerce/tcl/qmail-procs.tcl requires qmail-inject.  In general, this is not necessary for outgoing mail with qmail, because qmail provides a sendmail lookalike.  Other parts of OpenACS, such as acs-mail-lite, use that.  Does anyone know why ecommerce uses qmail-inject?

Your options:
1) Install qmail; don't do any of the migration steps.  It should work.
2) Modify the qmail-procs.tcl commands to look more like

    ns_sendmail $to_addr $from_addr $subject $body $eh $bcc\

and less like

    set qmail_pipe [open "| /var/qmail/bin/qmail-inject -h -f$from" "w"]
    puts -nonewline $qmail_pipe $msg
    close $qmail_pipe

Collapse
3: Re: References to qmail (response to 2)
Posted by Bart Teeuwisse on
Richard,

Joel is right in his assesment. To answer his question, why does eCommerce use qmail? Only aD would know. My I'm guessing because they wanted a faster mailing solution. And probably because the rest of ACS also used qmail.

In OpenACS 4.x the eCommerce dependency on qmail is the exception to the rule and is slated to be removed. Moreover, qmail includes a replacement for sendmail which calls qmail-inject. As ns_sendmail calls sendmail, with the sendmail  replacement in place the message will be send by qmail-inject after all.

/Bart