Block country TLD in ISPconfig3

Discussion in 'General' started by cyrus1977, Jan 11, 2011.

  1. cyrus1977

    cyrus1977 New Member

    Let's say im trying to block a country tld (say .nl or .ru)

    I tried adding *.nl to postfix blacklist in ISPCONFIG3. somehow the mail still gets delivered.

    But if i do block an adres like this it works: [email protected]
    but doing @domain.ru doesnt nor does *@domain.ru

    anythoughts on this ? Or should i use regex better in this matter ?

    Thanks ! RObbert
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you tried to use just the domain name without * and without @?

    domain.ru
     
  3. cyrus1977

    cyrus1977 New Member

    Good one...

    Tried it and indeed it works..

    Stupid me..

    thanks!
     
  4. phreeman

    phreeman New Member

    I'm getting a lot of spam from the .science TLD. I tried blacklisting .science in ISPConfig but I am still receiving hundreds per day. This method seems to work with spamdomain.tld but not with just the tld. Any ideas?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you try to use .science and also just "science" without a dot?
     
  6. phreeman

    phreeman New Member

    Thanks. After playing around with different options I found that science worked (no dot). I tried .science and the regular expression \.science but neither stopped the spam from passing through.

    I have another (*.download) that is also causing a spam problem. I would like to use the same filter (download) but I wanted to make sure that this only filters the email address and not all the data in the header. The word download is very common and I don't want to discard valid emails. Thanks in advance fro your help. Dave
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The postfix blacklist is not a header filter, it is a list of emal addresses, domain names or tld's that the from address is matched against. so the word download matches just against the tld download as the match is right to left.
     
  8. phreeman

    phreeman New Member

    Thanks Till. This will be handy as the spammers seem to grab a new TLD and fire away. Hundreds per day ... Dave
     
  9. sjau

    sjau Local Meanie Moderator

Share This Page