Wietse Venema:
> AFTER the message is received, the message size is known.

Thanks, Wietse. Makes sense now. Like this it works:

smtpd_recipient_restrictions = reject_unauth_destination
smtpd_end_of_data_restrictions = \
  check_policy_service inet:localhost:12340

It's just a bit wasteful because the email would have to be received entirely before its size can be calculated.

It sounds like a better approach would be to make Dovecot reject any email no matter what the size is (even size=0) if a user is over quota. I'll take further discussion to the dovecot mailing list then.

Kindly… Christoph

Reply via email to