Block .autos TLD from server per client

Discussion in 'Installation/Configuration' started by rbartz, Mar 28, 2023.

  1. rbartz

    rbartz Member HowtoForge Supporter

    Is there an easy way to block all emails from the .autos TLD from an entire email domain rather than have to go in mailbox by mailbox and make filters?
    We are getting dozens of these stupid rewards emails from a wide vaiety or *.autos domains every hour.
    Frustrated,
    Richard
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. DDArt

    DDArt Member

    I am testing the following.
    Code:
    /<[^@]+@(?!(.*.)?domain.tld)[^@]+>/i
    That blocks *.domain.tld including sub-domains.
    For *.auto domains this might work, you'll have to test and report back.

    Code:
    /<[^@]+@(?!(.*.)?auto.[^@]+$)[^@]+>/i
    Let us know,
     
  4. rbartz

    rbartz Member HowtoForge Supporter

    Thank you so much Taleman, the REGEX explained in the post was what I needed to make this happen. I thought I searched the tutorials for this but must h ave missed it or searched for the wrong thing.
    Regards,
    Richard
     

Share This Page