219 lines
3.7 KiB
HTML
219 lines
3.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Increasing Your Softlimit</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Qmail-Scanner and ClamAV HowTo"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Configuring qmail to Use qmail-scanner-queue.pl"
|
|
HREF="c268.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Changing Your Tcp Rules"
|
|
HREF="x270.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Conclusion"
|
|
HREF="c296.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Qmail-Scanner and ClamAV HowTo</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x270.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 5. Configuring qmail to Use qmail-scanner-queue.pl</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="c296.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="AEN277"
|
|
></A
|
|
>5.2. Increasing Your Softlimit</H1
|
|
><P
|
|
>If you try to send an email message, you will most likely receive an
|
|
error from your client. The error message will say something that includes
|
|
this:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>451 qq temporary problem (#4.3.0)</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>If you followed Life with qmail, you then have a memory limit set in the
|
|
/var/qmail/supervise/qmail-smtpd/run file. Look for the line that contains
|
|
softlimit. It should look similar to this:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
>exec /usr/local/bin/softlimit -m 2000000 \</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>This example sets the memory limit for qmail-smtpd to 2M. After all of
|
|
your changes qmail-smtpd is now running the entire Perl interpreter, and
|
|
ClamAV. 2M will never be enough.</P
|
|
><P
|
|
>Each system is different, and has different requirements. It will take
|
|
some experimenting on your part to find the correct value for your system's
|
|
softlimit. Do not set softlimit to some high value! You are asking for
|
|
trouble if you do this. To find the minimal value for your system, I
|
|
recommend the following steps:</P
|
|
><P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>Increase softlimit by 1M</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>#qmailctl restart</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Send a message</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Repeat until you can successfully send an email</P
|
|
></LI
|
|
></UL
|
|
><P
|
|
>Once you have found the minimum, I recommend increasing that by 1.5M,
|
|
just for times that your email server has a heavy load.</P
|
|
><P
|
|
>After that just create a daily cronjob that runs
|
|
/var/qmail/bin/qmail-scan-queue.pl -z to cleanup any dropped SMTP sessions
|
|
that may be lying around in /var/spool/qmailscan.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x270.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c296.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Changing Your Tcp Rules</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c268.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Conclusion</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |