Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

qmail limit

Hi to all,

is it possible to set a limit for incoming mail in smtp-proxy (qmail)? We got problems with large e-mails. The mailserver in the dmz bounced the mails when to large back to the ASL. Then it would multibounced as long as the ASL gets overloaded!!!

How could we set qmail to the same limit as our mailserver in the dmz ?

thanks for help to our request.


This thread was automatically locked due to age.
Parents
  • I beleive I am seeing the same problem here. Our email server has a hard limit of 10MB per email. At the moment I have a large email bouncing between Astaro and our email server which has so far eaten over 200GB of network traffic!!!

    We need a way to add maximum email size to Astaro.
  • Hi Marwin, hi bonezed,

    im sorry i don't know a way to limit the email size in qmail... (our next release will include a other MTA, which allows limiting the size of emails).
  • To limit incoming message sizes, touch a file named databytes in the /var/qmail/control directory (can't remember location in ASL). The file should contain a single number- the upper limit of the bytes of a max mail message.

    Further controls are documented at Life with Qmail under "Configuration files"

    [ 06 November 2001: Message edited by: Kenn ]

Reply
  • To limit incoming message sizes, touch a file named databytes in the /var/qmail/control directory (can't remember location in ASL). The file should contain a single number- the upper limit of the bytes of a max mail message.

    Further controls are documented at Life with Qmail under "Configuration files"

    [ 06 November 2001: Message edited by: Kenn ]

Children
  • My apologies- the last message was confusing.

    The file "databytes" doesn't exist by default. If it did, the default value in the file would be a single line, with only "0" as the text/number. This signifies a no-limit situation.

    To begin enforcing limits, create the file, and enter the maximum number of bytes per message you are willing to receive. Remember, the size is the encoded size- some attachments may take more space when uuencoded or mime encoded, and the message headers and message text count towards the byte limit.
  • Hi Kenn,

    tnx for replying. I take a look at the -Life with qmail- site. Hope it works, but the tip is worth a megapoint                


    with greetings from the Knifetown Solingen DE

    MARWIN
  • A megapoint, eh? Maybe I'll get promoted to the next level above "Junior Member!"      

    Really tho, glad it helped!
  • Hi Kenn,

    thx a lot for the tip! Now i found it also in the manual.... (qmail-smtpd.8)
  • Hi Markus,

    now you know what you have to do. I think this is worth the next level     


    greetings from the sharpest guy in Solingen,

    MARWIN
  • thankyou Kenn for that wonderful advice... I had actually skimmed the Qmail manual but did not find that particular item   [:)] 

    btw, Astaro team, what will be the new MTA program?