Brian Schang:
> In a nutshell, I have a number of virtual_mailbox_domains and 
> virtual_mailbox_maps and everything is working perfectly. Now for a 
> given virtual user, I'd like to change the virtual mailbox being used if 
> the message is over a given size.

This is not built into Postfix. It can be done only with plugins.

* policy: You could use a Postix policy plugin that replies with
  REDIRECT when the message "size" attribute exceeds some limit. The
  target of REDIRECT would be an account with a different virtual
  mailbox.

  However, REDIRECT overrides ALL recipients, not just one, so it is
  no good when a message has multiple recipients.

  http://www.postfix.org/SMTPD_POLICY_README.html
  http://www.postfix.org/access.5.html

* external content filter: best is a pass-through proxy that does
  not maintain its own queue.

  http://www.postfix.org/FILTER_README.html

* milter: The Postfix Milter plug-in currently does not support
  the "replace recipient" action.

        Wietse

> For instance, assume that I have the following entry in 
> virtual_mailbox_maps:
> u...@example.com      example.com/user/mail/inbox
> 
> And then assume that u...@example.com gets a "large" message. In this 
> case, I'd like the equivalent of the following:
> u...@example.com      example.com/user/mail/large
> 
> Is there any way to do this in native Postfix? If not, I presume that I 
> could accomplish what I'm looking for by using either procmail or 
> maildrop. But since I'm using virtual as my virtual_transport, that will 
> require some work. In this case, does anyone have any references to suggest?
> 
> Thanks.
> 
> Brian Schang
> 
> 

Reply via email to