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