Wietse Venema: > Michael van Es: > > Hello, > > > > Clients on the host can use a procmail filter, the .forward file > > forwards the message to procmail [which gives the mail to Cyrus]. > > [how can Postfix "verify" find out that the Cyrus mailbox is over-quota] > > It can't, not even when Postfix gives the mail directly to Cyrus. > > Instead, you need to populate an access map or transport map based > on a periodic scan (or real-time query) of Cyrus quota. > > access map: > > u...@example.com 450 4.2.2 Mailbox is full > > transport map: > > u...@example.com error: 4.2.2 Mailbox is full
Forget about the transport map solution. The "error" results in a hard reject. That should be "retry", but unfortunately the Postfix SMTP server doesn't know that the "retry" transport rejects mail, so it would accept the mail and that is not what you want. Wietse