Set mailrule rules

Source: Internet
Author: User
Set maillists related rules 1. edit the maillists configuration file # vi/etc/maillists in the spam whitelist. confIsDefinitelyNotSpam/etc/maillogs/rules/whitelist. the format of the rules rule file is as follows: # vi... set maillists related rules 1. edit the maillists configuration file # vi/etc/maillists in the spam whitelist. confs Definitely Not Spam =/etc/mailstores/rules/whitelist. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/whitelist. rules # add the address included in the whitelist: From: user@domain.com yesFrom: * @ domain.com yes # add the IP address included in the whitelist From: 192.168.1. yesFrom:/^ 192 \. 168 \. 13 [4567] \. /yesFromOrTo: default no 2. edit the mailtip configuration file # vi/etc/mailtip in the spam blacklist. confs Definitely Spam =/etc/mailcharts/rules/blacklist. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/blacklist. rules # add the whitelist address: From: user@domain.com yesFrom: * @ domain.com yes # add the blacklisted IP address From: 192.16.8.1. yesFromOrTo: default no 3. sign the sent email and edit the mailtoken configuration file # vi/etc/mailmetadata/mailtoken. confSign Clean Messages =/etc/maillogs/rules/signing. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/signing. rules # add the sent domain name From: * @ domain.com yes # add the IP address From: 192.168.1. yesFromOrTo: default no 4. use different signatures for different domains to edit the mailcharts configuration file # vi/etc/mailcharts. confInline Text Signature =/etc/mailstores/rules/sig. text. rulesInline HTML Signature =/etc/maillogs/rules/sig.html. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/sig. text. rules # add different domains From: * @ domain1.com/etc/mailtables/reports/domain1.sig.txt From: * @ domain2.com/etc/maillogs/reports/domain2.sig.txt set the HTML signature used by different domains # vi/etc/maillogs/rules/sig.html. rules # add different domains From: * @ domain1.com/etc/mailtables/reports/domain1.sig.html From: * @ domain2.com/etc/maillogs/reports/domain2.sig.html 5. scan and edit the maillogs configuration file only for some domains # vi/etc/maillogs. confVirus Scanning =/etc/mailtasks/rules/virus. scanning. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/virus. scanning. rulesFromOrTo: * @ domain.com yesFromOrTo: default no 6. send an administrator notification to multiple users to edit the mailrule configuration file # vi/etc/mailrule. confNotices To =/etc/mailstores/rules/notices. to. the format of the rules rule file is as follows: # vi/etc/maillogs/rules/notices. to. rules # Add address To: @ domain1.compostmaster@domain.com admin@domain1.comTo: @ domain2.compostmaster@domain.com admin@domain2.comFromOrTo: default postmaster@domain.com 7. only isolate some viruses To edit the mailbench profile # vi/etc/mailbench. confQuarantine Infections =/etc/maillogs/rules/quarantine. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/quarantine. rules # add the Virus name Virus: sobig noVirus: default yes 8. use two conditions in the rule to edit the mailrule configuration file # vi/etc/mailrule. confSpam Actions =/etc/maillogs/rules/spam. actions. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/spam. actions. rules # add the condition From: domain.com and To: user @ * deliverFromOrTo: domain1.com and FromOrTo: domain2.com delivermorfroto: default store policy 9. use perl To match more advanced rules: rule file format: # match user@domain.com and user@sub.domain.comFrom:/[\ @ \.] domain \. com $/yes # match all. gov From :/\. gov $/yes # match the German or Danish domain From: host:/(de | dk) $/yes 10. set the Mail size rule file format as follows: # vi/etc/maillogs/rules/max. message. size. rulesTo: * @ domain1.com 10MTo: * @ domain2.com 20 MFrom: user@domain3.com 5 MFrom: * @ domain3.com 500 KFromOrTo: default 0
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.