Diadem Web Hosting Knowledgebase
Search:     Advanced search

MSH filter rule: Block all incoming and outgoing emails of Gmail and yahoo from a specific email id.

Article ID: 957
Last updated: 29 Jul, 2017
Add comment
Views: 555
Comments: 0

Download MSH Filter

To download and install the Desktop module for MSH filter administration at your local system, Please use below given link.

Desktop module for MSH filter download link: http://www.mshsoftware.com/download/msh-tp/1.7.7/MSH%20Traffic%20Policy%20Setup.exe

   

Block all incoming emails of Gmail and yahoo to pawan@ayurschool.com email id.

1. After connecting the MSH filter with this server, we need to create a rule's group  Email Block (The rules must be checked on, otherwise these will not work).

2. Now we need to create the Incoming mail block rule by pressing Add Rules option.

   

3. Edit the rule and set the action - Block Messages from ADD option.
4. Type: Discard. If you want to discard those emails match with this rules.

  

5. Now we have to set the condition rule - Select Message sender - Email Address from Add option.

  

6. Message Sender condition: Add Regular Expression and Email addresses as - (.*?@gmail\.com)|(.*?@yahoo\.com)|(.*?@yahoo\.co\.in)

  

7. Message Recipient condition: With All conditions must met option and enter the email ID's list, on which this condition will be applicable.


LOG:

Jun 20 18:36:21 zimbratest postfix/smtpd[4565]: 4EAAA83AD9: client=mail-ua0-f179.google.com[209.85.217.179]

Jun 20 18:36:21 zimbratest postfix/cleanup[4831]: 4EAAA83AD9: message-id=<CAH9mz8S007GR7j7SNqSnp4rSJ6Daa9VeGfLOaNejKsxqLyd+eg@mail.gmail.com>

Jun 20 18:36:22 zimbratest postfix/cleanup[4831]: 4EAAA83AD9: milter-discard: END-OF-MESSAGE from mail-ua0-f179.google.com[209.85.217.179]: milter triggers DISCARD action; from=<contactme.anirban@gmail.com> to=<pawan@ayurschool.com> proto=ESMTP helo=<mail-ua0-f179.google.com>

         


Block all outgoing emails to Gmail and yahoo from pawan@ayurschool.com email id.

1. Please create the Outgoing mail block rule by pressing Add Rules option.

2. Now we have to set the condition rule - Select Message sender - Email Address from Add option.

3. Message sender condition: With Wildcard option and enter the email ID's list, on which this condition will be applicable.

   

4. Message Recipients condition: Add Regular Expression and Email addresses as - (.*?@gmail\.com)|(.*?@yahoo\.com)|(.*?@yahoo\.co\.in)

          

5. Set the NEXT option and set Stop Processing more rules.

   

LOG:

Jun 21 12:30:16 zimbratest postfix/smtpd[29543]: F3DB2839B1: client=zimbratest.diadem-tech.com[103.227.62.31]

Jun 21 12:30:16 zimbratest postfix/cleanup[29549]: F3DB2839B1: message-id=<1358162047.52.1498028415905.JavaMail.zimbra@ayurschool.com>

Jun 21 12:30:16 zimbratest postfix/cleanup[29549]: F3DB2839B1: milter-discard: END-OF-MESSAGE from zimbratest.diadem-tech.com[103.227.62.31]: milter triggers DISCARD action; from=<pawan@ayurschool.com> to=<contactme.anirban@gmail.com> proto=ESMTP helo=<zimbratest.diadem-tech.com>

     


Enabling LOG

1. Go to the Diagnostic Logging option and Enable diagnostic logging.

2. Also if you want to archive the log, Click on Dump messages option.

   

3. From Message option at Events History tab - we can found the message logs.

  

4.  Here we can found the brief details of message logs.

This article was:  
Add comment
Prev   Next
How to mark a particular mail as spam/not as a spam in Zimbra...     Incoming and Outgoing Message Filter in Zimbra