Accepting only bona fide plus addresses

2011-04-27 Thread Jerry
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 sa...@example.com or sales+...@example.com should
both be accepted.

However, sales+fr...@example.com 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?

-- 
Jerry ✌
postfix-u...@seibercom.net
_
TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html


Re: Accepting only bona fide plus addresses

2011-04-27 Thread Tom Hendrikx
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 sa...@example.com or sales+...@example.com should
 both be accepted.
 
 However, sales+fr...@example.com 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:

sales-...@example.org - sa...@example.org
sales-j...@example.org - sa...@example.org


-- 

Regards,
Tom


Re: Accepting only bona fide plus addresses

2011-04-27 Thread Jerry
On Wed, 27 Apr 2011 22:11:17 +0200
Tom Hendrikx t...@whyscream.net 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 sa...@example.com or sales+...@example.com should
  both be accepted.
  
  However, sales+fr...@example.com 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:
 
 sales-...@example.org - sa...@example.org
 sales-j...@example.org - sa...@example.org

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.

-- 
Jerry ✌
postfix-u...@seibercom.net
_
TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html



Re: Accepting only bona fide plus addresses

2011-04-27 Thread mouss
Le 28/04/2011 00:26, Jerry a écrit :
 On Wed, 27 Apr 2011 22:11:17 +0200
 Tom Hendrikx t...@whyscream.net 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 sa...@example.com or sales+...@example.com should
 both be accepted.

 However, sales+fr...@example.com 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:

 sales-...@example.org - sa...@example.org
 sales-j...@example.org - sa...@example.org
 
 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