Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I need a help to this problem. I have a mailing service which is working now using sendmail. Now i have installed qmail in the server. I would like to change sendmail to qmail. Is it required alter all my code? If i set qmail path instead of sendmail path, will it solve? What are the steps required to solve this problem? Waiting for all help from experts. Thanks

Replies are listed 'Best First'.
Re: help - convert sendmail to qmail
by tachyon (Chancellor) on Jan 05, 2003 at 12:05 UTC

    I was sorely tempted to tell you to RTFM as this is clearly set out in the INSTALL documentation. It also has nothing to do with Perl, but anyway: In a nutshell qmail has a sendmail wrapper that emulates sendmail. You install this and then forget about it, any calls to sendmail are routed through qmail transparently and all will be well.

    I highly recommend Life With Qmail as a beginners guide to qmail install, config and use. PS Although I am about to refer you to the INSTALL docs if you are actually doning a full raw install you will find the Life With Qmail guide install guide better.

    There are 3 1 page documents you need to read from the qmail-1.03.tar.gz distribution (I presume you used a RPM or you would have read them) - these are:

    INSTALL SENDMAIL REMOVE.sendmail

    I have included these three files after the READMORE tag

Re: help - convert sendmail to qmail
by hawtin (Prior) on Jan 04, 2003 at 21:30 UTC

    I don't know about qmail but I do know that smail and exim deliberately emulate all the command line options of sendmail to make it easy to replace sendmail.

    Try just replacing your calls (or put a in a symbolic link from sendmail to qmail and leave your script alone). My guess would be that it will work. (always assuming that qmail is correctly configured of course)

      This is not quite accurate, but very close. Qmail comes with a wrapper (in /var/qmail/bin/sendmail, or in the bin directory of wherever you installed Qmail) that emulates sendmail nicely.
        If i change the sendmail path and in that place if i keep /var/qmail/bin/sendmail... will it work? Thanks for your comment
Re: help - convert sendmail to qmail
by gjb (Vicar) on Jan 04, 2003 at 20:15 UTC

    You could have a look at Mail::Box which allows easy mail manipulation and conversion between many different formats.

    Hope this helps, -gjb-