Koozali.org: home of the SME Server

Qmail Source Code for Patch

Kevin Johnson-Bade

Qmail Source Code for Patch
« on: December 17, 2003, 11:34:39 PM »
I am interested in limiting the number of recipients for TO CC and BCC for the version of Qmail running in SME 5.6. Where do I get the correct QMAIL source, so that I can add a maxrecipients parameter and recopile etc??

THANKS!

[%sig%]

Charlie Brady

Re: Qmail Source Code for Patch
« Reply #1 on: December 18, 2003, 01:01:00 AM »
Kevin Johnson-Bade wrote:

> I am interested in limiting the number of recipients for TO
> CC and BCC for the version of Qmail running in SME 5.6. Where
> do I get the correct QMAIL source, so that I can add a
> maxrecipients parameter and recopile etc??

For starters, although qmail is used as the MTA, it's not used as the SMTP daemon. Patching qmail may not achieve the result you seek.

Secondly, I don't even know that there is such a patch for qmail.

Thirdly, all source code is available from the same site you downloaded the software. But since there is only one version of qmail (distribution of modified versions is not permitted), you can get it from qmail.org and know it is the same source code that Mitel used.

Finally (and I think you'll like this bit), you can do what you want by doing:

echo 15 > /service/smtpfront-qmail/env/MAXRCPT

(assuming that 15 is the maximum number of recipients you want to allow).

Charlie