Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon Content Filter > How to exclude links from the body of the letter?

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon Content Filter  /

How to exclude links from the body of the letter?

[Gusev, Vitaliy]
Vitaliy Gusev
Newbie
Newbie
Posts: 2
Vitaliy Gusev - 08:50am, Mar 12 2015

Hello!
Due to the fact that on my server receive many letters containing the body of the email links to viruses and malicious resources, I decided to write a rule to filter such messages. The problem is that I don't know how to do it. At first, I decided to filter by the presence in the body of the letter the words: "http://", "https://", "www.". At this stage, have any difficulty with the action that should be performed for such messages. Just delete such messages is a bad option. Among them may be useful for messages that do not pose a threat. How to make the filter replaced the link in the email to plain text, in which all the letters separated by a space? For example, received a letter containing the link www.mail.ru. The filter removes the link in the email and replaces the text, behind which was hidden the link to "w w w . m a i l . r u". If this is not possible, then the required sample filter, which simply removes links from emails.

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Tyler Davis - Mar 17, 2015 3:31 pm (#1 Total: 1)  

Alt-N Technical Support  

Photo of Author
Tyler Davis
Novice
Novice
Posts: 228

MDaemon
RelayFax
SecurityGateway
Outlook Connector
SecurityPlus
ProtectionPlus
WebAdmin
Hello,

You can use the content filter to find and replace text inside of a message body. For example, select if ALL MESSAGES as the Condition and Search and replace with BODY as the Action. In the specify information section, enter HTTP in the Search Expression and H T T P in the Replace with section. This would essentially corrupt any URL in all emails. However, the main issue here is that the rule is going to invalidate much more than just URLs. Images in HTML messages are also going to be incorrectly associated and will not display.

If you're seeing a common set of characters or a particular string inside of these messages, then perhaps you can use that instead of "http" in my example. If the string can be searched, it can be modified.

Regards,

--
Tyler Davis
Alt-N Technologies, Ltd.
http://www.altn.com

Sent using Alt-N's own MDaemon Messaging Server
Now available with BYOD Mobile Device Management,
Document Sharing, Hijacked Account Detection and more.

Get to know the Alt-N family by liking us on Facebook!



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.