Nathan Fowler wrote:
> You can limit the attachment size directly by doing the
> following from console:
>
> pico /etc/e-smith/templates/var/qmail/control/databytes
> change the zero to the byte size you will allow
> /sbin/e-smith/expand-template /var/qmail/control/databytes
> /etc/rc.d/init.d/qmail.init stop
> /etc/rc.d/init.d/qmail.init start
No, Nathan, you shouldn't edit template files directly, you should instead create a custom template. See
http://www.e-smith.org/custom/.
In this case, that would be:
mkdir -p /etc/e-smith/templates-custom/var/qmail/control
echo 50000 > \
/etc/e-smith/templates-custom/var/qmail/control/databytes
/etc/rc.d/init.d/qmail.init restart
But in any case, /var/qmail/control/databytes is only used by qmail-smtpd, which is not used in any recent version of the SME server.
In SME 5.5, all that is required is to do:
/sbin/e-smith/db configuration setprop smtpfront-qmail \
MaxMessageSize nnnnn
/sbin/e-smith/signal-event email-update
Regards
Charlie