Re: Rejecting emails based on address extension?

2020-04-10 Thread Tom Hendrikx
On 09-04-2020 01:01, @lbutlr wrote: Given an email address of user+ama...@example.com how can I reject all emails to that address that do not come from amazon.com? I think I did something like this once but if I did, I didn’t keep notes. :/ A slightly different take on this: I'm using addr

Re: Rejecting emails based on address extension?

2020-04-10 Thread Fred Morris
I didn't follow this to begin with, apologies. On Fri, 10 Apr 2020, Tom Hendrikx wrote: On 09-04-2020 01:01, @lbutlr wrote: Given an email address of user+ama...@example.com how can I reject all emails to that address that do not come from amazon.com? The mechanics of extracting the relevan

Re: Rejecting emails based on address extension?

2020-04-10 Thread Wietse Venema
Fred Morris: > The "destination address" is extracted from which header? To: would be the > naive choice, but Delivered-To: is probably better. However, using this > header requires that the filtering take place very close to final > delivery, as that's when the header is inserted. Why insist on a

Re: Rejecting emails based on address extension?

2020-04-10 Thread Tom Hendrikx
On 10-04-2020 18:09, Fred Morris wrote: I didn't follow this to begin with, apologies. On Fri, 10 Apr 2020, Tom Hendrikx wrote: On 09-04-2020 01:01, @lbutlr wrote:  Given an email address of user+ama...@example.com how can I reject all  emails to that address that do not come from amazon.com

Re: Rejecting emails based on address extension?

2020-04-10 Thread @lbutlr
On 08 Apr 2020, at 22:43, Bill Cole wrote: > As a result, I reject all mail with a sender that matches 'bounce@' aimed at > 'b...@scconsult.com' which is an address that has been exposed for 25 years > in Usenet but never used for any sort of subscription or transaction. One > could just as ea

Re: Rejecting emails based on address extension?

2020-04-10 Thread Fred Morris
On Fri, 10 Apr 2020, Wietse Venema wrote: Fred Morris: The "destination address" is extracted from which header? To: would be the naive choice, but Delivered-To: is probably better. If it isn't munged, the envelop address (RCPT) becomes the Delivered-To: address does it not? -- Fred

Re: Rejecting emails based on address extension?

2020-04-10 Thread Fred Morris
I like to be one step ahead... On Fri, 10 Apr 2020, Tom Hendrikx wrote: [...] in 'virtual_alias_maps.pcre': /^hi\..*@example.com$/   personal.in...@example.org [...] The only solution that the verification code provides (IMHO), is that I know (to some degree) that I actually gave out that alia

Re: Rejecting emails based on address extension?

2020-04-10 Thread Wietse Venema
Fred Morris: > On Fri, 10 Apr 2020, Wietse Venema wrote: > > Fred Morris: > >> The "destination address" is extracted from which header? To: would be the > >> naive choice, but Delivered-To: is probably better. > > If it isn't munged, the envelop address (RCPT) becomes the Delivered-To: > address

Re: Rejecting emails based on address extension?

2020-04-10 Thread @lbutlr
On 08 Apr 2020, at 17:01, @lbutlr wrote: > Given an email address of user+ama...@example.com how can I reject all emails > to that address that do not come from amazon.com? I realize after ready this whole thread that I phrased this poorly and incompletely. Yes, I want to reject all email to u