How to block email address domain

Discussion in 'General' started by HenrysCat, Mar 18, 2022.

  1. HenrysCat

    HenrysCat Member

    Hi all, I am trying to block all emails from amazon from being received to all mail boxes.
    Under Email > Global filters > Content filter - I have added <.+?(@|@.*.)amazon.com> under Regexp. Pattern, then Action DISCARD, did not work.
    So I tried under Postfix blacklist > *@amazon.com as Sender, did not work.
    Probably missing something obvious here but just cant figure it out.
    Thank all
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  3. HenrysCat

    HenrysCat Member

    Thanks but I dont want to block TLD's, specifically emails from amazon sites.
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    :confused:
     
  5. HenrysCat

    HenrysCat Member

    I have also tried <.+?(@|@.*\.)amazon\.com> which does not work, one thing I noticed, usually when I make a change to ISPconfig there is red flashing 1 circle at the top, this is not happening with these changes?
     
  6. HenrysCat

    HenrysCat Member

  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Under content filter:
    Code:
    /^From: .*@amazon.com/
    with action DISCARD/REJECT.
     
    HenrysCat likes this.

Share This Page