Loading ...
Sorry, an error occurred while loading the content.
 

Re: Postfix mailbox_size_limit var overflow?

Expand Messages
  • Brian Evans - Postfix List
    ... According to the sources (2.8.4 as a reference), mailbox_size_limit is a signed 32-bit integer. (On x86(_64) arch) global/mail_params.h 580:extern
    Message 1 of 4 , Aug 30, 2011
      On 8/30/2011 3:23 PM, Tim Eberhardt wrote:
      > # postconf -n | grep mailbox_size_limit
      > mailbox_size_limit = 4294967296
      >
      > I tried reducing the number which worked and the errors siappeared:
      >
      > # postconf -n | grep mailbox_size_limit
      > mailbox_size_limit = 2000000000
      >
      > What could be the cause to this? Is this a problem of my system or a postfix
      > bug in combination with newer glibc/gcc? Beside this issue my system is
      > running fine with all services on it. Any ideas?
      >

      According to the sources (2.8.4 as a reference),
      mailbox_size_limit is a signed 32-bit integer. (On x86(_64) arch)
      <code>
      global/mail_params.h
      580:extern int var_mailbox_limit;
      </code>

      This limits the integer to 2,147,483,647.
      Even if it was unsigned, your initial value is over the 4,294,967,295
      limit of an unsigned Int.

      If you want large limits, use a different delivery agent that supports
      it. (Example: Dovecot's deliver(1.x)/dovecot-lda(2.x))
    • Tim Eberhardt
      ... Thanks for clarification Brian! The weird thing is that I use this setting since ~3-4 years now and never ran into trouble. Was there a change in 2.8?
      Message 2 of 4 , Aug 30, 2011
        Am Dienstag, 30. August 2011, 16:08:35 schrieb Brian Evans - Postfix List:
        > According to the sources (2.8.4 as a reference),
        > mailbox_size_limit is a signed 32-bit integer. (On x86(_64) arch)
        > <code>
        > global/mail_params.h
        > 580:extern int var_mailbox_limit;
        > </code>
        >
        > This limits the integer to 2,147,483,647.
        > Even if it was unsigned, your initial value is over the 4,294,967,295
        > limit of an unsigned Int.

        Thanks for clarification Brian!

        The weird thing is that I use this setting since ~3-4 years now and never ran
        into trouble. Was there a change in 2.8?
      • Brian Evans - Postfix List
        ... This is because it appears your value overflowed to ZERO. Wietse appears to have changed the parse function between 2.7 and 2.8. (file
        Message 3 of 4 , Aug 30, 2011
          On 8/30/2011 4:32 PM, Tim Eberhardt wrote:
          > Am Dienstag, 30. August 2011, 16:08:35 schrieb Brian Evans - Postfix List:
          >> According to the sources (2.8.4 as a reference),
          >> mailbox_size_limit is a signed 32-bit integer. (On x86(_64) arch)
          >> <code>
          >> global/mail_params.h
          >> 580:extern int var_mailbox_limit;
          >> </code>
          >>
          >> This limits the integer to 2,147,483,647.
          >> Even if it was unsigned, your initial value is over the 4,294,967,295
          >> limit of an unsigned Int.
          > Thanks for clarification Brian!
          >
          > The weird thing is that I use this setting since ~3-4 years now and never ran
          > into trouble. Was there a change in 2.8?
          This is because it appears your value overflowed to ZERO.

          Wietse appears to have changed the parse function between 2.7 and 2.8.
          (file src/global/mail_conf_int.c)

          This is what is alerting you when you go over the value of signed int on
          your architecture.

          Brian
        Your message has been successfully submitted and would be delivered to recipients shortly.