On 21/09/24 11:26, Wesley via Postfix-users wrote:
dear list,

I see both postfix and dovecot can set the limit for mailbox size and message size.
So which to set it as the better way? or both?

It depends on the delivery agent:

* For the postfix local(8) lda you would use mailbox_size_limit.

* For the postfix virtual(8) lda you would use virtual_mailbox_limit.

* For the dovecot lda or dovecot lmtp ldas you would use dovecot settings. Also note that dovecot has much more fine-tuning (per mailbox and quota features) available for this.

* Other delivery agents (e.g. Procmail) have their own settings for this as well.

message_size_limit is a postfix setting which prevents any message from being larger than the given limit. I believe this value is also shown in the SIZE EHLO response header. This should be set to a sufficiently high value so that no legitimate message will be larger, but it's not recommended to set it to 0 (unlimited) as it is a protection against certain SMTP attack vectors. If you're not sure about this just leave it at the default unless / until you have a good reason to increase it.


Peter
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to