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

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

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: https://s3.eu-west-1.amazonaws.com/mshsoftware.com/download/msh-tp/1.9.35/MSHTrafficPolicySetup-1.9.35.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.

Note: Here if you select ''True only if at least one recipient is matched' then the rule will be applied when the mentioned email addresses are in any of the 'TO, CC and BCC' fields. And if you select  ''True only if all recipients are matched' then the rule will be applied when the mentioned email addresses are in each of the 'TO, CC and BCC' fields.

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)

Note: Here if you select ''True only if at least one recipient is matched' then the rule will be applied when the mentioned email addresses are in any of the 'TO, CC and BCC' fields. And if you select  ''True only if all recipients are matched' then the rule will be applied when the mentioned email addresses are in each of the 'TO, CC and BCC' fields.

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.



    • Related Articles

    • Spamexperts Outgoing Spam Filter Settings

      Spam Experts Outgoing Spam filters are very effective at blocking a large percentage of outbound spam/viruses, to prevent issues with your network reputation, the spam filter can be monitored and the spammer can be blocked. Configuration in Spam ...
    • Incoming and Outgoing Message Filter in Zimbra

      Zimbra filter works as rules set in MUAs and in this filter we can organise our inbox according to our need, create folder move important mails and specific mails to folders. The process is shown as below: The key benefit is that the filter are ...
    • How to Fetch External Email into Gmail

      1. Open the Gmail account you want to import from. 2. Click on the gear icon in the upper right corner of the page and select Settings as shown in the picture below. 3. Click On See All settings 4. Go to the Accounts and Imports section and click on ...
    • Bulk email ID creation on Plesk

      Bulk email ID creation on Plesk Follow the below steps to create Bulk Email ID on Plesk 1.Connect to the server via SSH/RDP. 2.Create a file mail.txt using any text editor with a list of mail addresses and passwords for it: example1@example.com ...
    • Server-Wide Email Settings in Plesk

      Server-wide Email Settings in Plesk For managing Server Wide Email Settings in Plesk, you may follow the below options once you Login into the Plesk Panel. General options Outgoing mail mode Relay options Turn on limitations on outgoing email ...