On 09/04/2020 00: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. :/
> 
> 

Funny you should mention that - within the last half-hour I have come up with
(for header checks file):-

if /^From:.*amazon\.co\.uk/             
!/\<.*\@.*amazon\.co\.uk\>/     WARN Fake Amazon address
endif

Completely untested - it would be interesting to know if I am getting my regexp
syntax right.  :-)

Not quite what you wanted - but hope it helps.

Regards

Allen C

Reply via email to