Le 28/04/2011 00:26, Jerry a écrit : > On Wed, 27 Apr 2011 22:11:17 +0200 > Tom Hendrikx <[email protected]> articulated: > >> On 27/04/11 18:52, Jerry wrote: >>> I am in the process of setting up a mail system with plus >>> addressing. Presently it is using Dovecot with sieve to filter the >>> mail. What I want to do is limit the number of "plus" addresses >>> that are accepted. >>> >>> Example: >>> >>> Employees: Tom, Joe, Jane >>> >>> An email to either [email protected] or [email protected] should >>> both be accepted. >>> >>> However, [email protected] should not be accepted. >>> >>> My question is how to most efficiently implement this sort of setup >>> within Postfix? Do I need a milter to accomplish this? >>> >> >> If you want a limited set of recipient email addresses, you should not >> use plus addressing. The correct solution to your problem is to create >> regular aliases to sales@ named after the person: >> >> [email protected] -> [email protected] >> [email protected] -> [email protected] > > I had considered that; however, that was not the way my client wanted > it done. I am investigating a few other possibilities though. I was > thinking that perhaps 'postfwd' might be able to manage it. I have not > tried it though. >
Either you don't need '+' addressing, and you follow Tom recommendation: create virtual alises for the + addresses that you want to accept or the opposite: accept + with exceptions. if so: simply ste a check_recipient_access with a pcre map: /^sales\+joe@example\.com$/ dunno ... /^sales\+.*@example\.com$/ REJECT User unknown in galactic table
