On 2/24/2011 10:06 AM, Victor Duchovni wrote:
On Thu, Feb 24, 2011 at 05:00:47PM +0100, Christian Roessner wrote:
In detail I have a couple of defined addresses that I all use for
mailing lists.
c+some_extens...@roessner-network-solutions.com
There are two problems with it:
1. I must choose the correct address that belongs to the mailing list
2. I have several computers, where I would have to setup all the
addresses.
So in my case, it really would be nice to always send with i.e.
c...@roessner-network-solutioons.com
and Postfix would do:
RCPT TO == postfix-users@postfix.org
-> Sender domain is (.*)@roessner-network-solutions.com
-> Do some canonical tricks, make local part c+postfix_org_en
This is a job for a content filter or milter. Postfix rewriting is
based on simple (key, value) lookup tables, there is no support for for
context-enriched lookups.
Can I do this with some restriction_classes
No, restriction classes are for access control, they have no effect
on rewriting.
I would use this only on the submission port, which is defined in
master.cf.
Where you can specify a custom content filter or milter.
Some mail clients have similar features for mail list support.
This isn't something postfix can do.
-- Noel Jones