Hi, I would like to configure Postfix to do the following: 1) receive messages for users in a Postgres database and hand those messages to an external script for processing (no traditional mailstore). The server handles mail for only one domain.
2) for a handful of accounts (postmaster, help, root), the messages should be forwarded to another address (different domain). Would be great for this forwarding to take place without going through the processing script in (1). A very long time ago, I had it working with content_filter (as described in http://www.postfix.org/FILTER_README.html#advanced_filter) and virtual_alias_maps. But for some reason (receive_override_options = no_address_mappings) causes the server to ignore users in virtual_alias_maps and bounce. Hence the question. I used to use qpsmtpd on port 10025 with a custom plugin (in Perl) which did the processing - but maybe there is a better way to do the same. What's the best way to get this configured? Would appreciate specific setup recommendations (relay vs virtual aliases, content_filter, etc). Happy to provide additional details. Thanks.