Block extension

Discussion in 'General' started by Steffan, Sep 4, 2019.

  1. Steffan

    Steffan Member

    Hello,
    \
    I have a multi server setup.
    A client wants to block .pro emails (spam)
    I have treid spamfilter blacklist
    user @hisdomein.com
    E-mail *@*.pro
    Prioritie 10

    But the email is not blacklisted

    Seccond i tried a mailfilter on the mailbox
    In the database it is saved as:
    ### BEGIN FILTER_ID:78
    if header :regex ["from"] [".*\.pro$"] {
    discard;
    stop;
    }
    ### END FILTER_ID:78

    Butt still no blocking.
    What am i doing wrong?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Spamfilter blacklist: The spamfilter blacklist can be used to blacklist email addresses or email domains. I don't think that it will work for whole tld's. And amavis does not use * in its syntax. See ISPConfig manual page 196

    Mailbox filter: You have to either use contains and not ends with as the email address does not end with .pro or you have to add a >. Have a look at the from header of an email in your email program. example:

    From: "John Doe" <[email protected]>
     
  3. Steffan

    Steffan Member

    oke i need a new manual i think :)
    But the > ws not what i aspected to add.
    it is not realy client friendly;-)

    But it works :)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's the way email headers are. We have not made the email protocol.
     

Share This Page