How can I block particular extension emails on ISP Config?

Procédure

Why block certain extensions?

Spam is a nuisance and there are many ways of countering it. However, spammers are getting smarter and trying to get round the filters. What's more, ICANN has recently approved large gTLDs (generic top-level domains), such as .biz, .info, etc. Some of these gTLDs are used exclusively by the Internet. Some of these gTLDs are used exclusively by spammers.

ISPConfig offers some global filters and they can be used to block emails from certain extensions. We will see how to configure this.

How do I configure the global filters on ISP Config?

1. Connect to your ISP Config Panel

2. Go to the global filters configuration.

To do this, click on the "E-mail" tab in the navigation menu at the top of the page.

How can I block particular extension emails on ISP Config?


Then, in the left-hand menu, under "Global filters", click on "Content filter".

How can I block particular extension emails on ISP Config?

3. Configuring the content filter

Click on the green "Add a new content filter" button. This takes you to the content filter configuration form.

How can I block particular extension emails on ISP Config?


Server field: Indicate your server

Filter field: Select "Header Filter".

Regexp Schema field:

This is used to check whether the header of an e-mail contains an unwanted domain extension.

For example, if you want to prevent emails from a domain with the extension .xyz, you will need to enter the following in this field

Code
/<.+?@.+?\.xyz>/

Simply replace "xyz" with the extension you want.

Data field: This is where you can enter a message to find out why the email has been rejected. For example, in the case of an email with a .xyz extension, you could indicate: "We do not accept email from a .xyz domain".


Action field: Here you can indicate the action you would like to take if an email with an unwanted extension arrives. In our case, we can either choose Discard for simple deletion of the email, or Reject which refuses the email sent and gives the reason (indicated in the Data field) to the server sending the email.

To activate your filter, simply tick the box next to atif and then save. You will need to repeat this procedure for each extension you wish to reject.

Procedure in video

help.lws.net/a/820
Was this article helpful?

Yes

No

Read 22 367 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.