On Feb 12, 2015, at 10:06, Wietse Venema <wie...@porcupine.org> wrote: > > LuKreme: >> I have a account that is managed via sql and has an alias in >> >> mysql_virtual_alias_maps.cf >> >> I would like to do some processing on emails before they are >> forwarded along to the alias, but I don?t see a way to interject >> some process (say, procmail or spam or clamav) in that part of the >> process. > > That is correct. Virtual aliases are processed while mail is received. > > To process mail outside Postfix before virtual alias expansion, you > would need to use an "after queue" content filter, with virtual > alias expansion disabled before the filter, and virtual alias > expansion enabled after the filter.
That's what I thought. > It's kind-of kludgy with many moving parts: > > http://www.postfix.org/FILTER_README.html > http://www.postfix.org/postconf.5.html#receive_override_options > http://www.postfix.org/postconf.5.html#content_filter I think it's going to be easier to just process the mail and then use pro mail to forward it along. Oh well, it was an idea.