Posts

Showing posts from September, 2017

Whitelist and Blacklist domain in zimbra 8.6

Image
In this  tutorial, How to configure whitelist and blacklist domain in zimbra . To use amavisd.conf.in file before it's configure, To backup file /opt/zimbra/conf/amavisd.conf.in we need to score Positive is Blacklist and Negative score is whitelist. I'm running the commands with account zimbra ( su - zimbra) Links to below you maybe likes: zimbra custom spamassassin rules How to create auto Bcc for Recipient mails for Zimbra 8.6 How to add spam filters on zimbra 8.6 How to create auto Bcc for sender mails for Zimbra 8.6 list accounts that has not logged in for the last x days in zimbra Whitelist and Blacklist domain in zimbra 8.6 To backup amavisd.conf.in file su - zimbra cp /opt/zimbra/conf/amavisd.conf.in /opt/zimbra/conf/amavisd.conf.in.bak How to whitelist domain in zimbra To add whitelist domain or emailID  in amavisd.conf.in file vim /opt/zimbra/conf/amavisd.conf.in The content whitelist domain as below: { # a hash-type lookup table (associative array) &#

reverse dns lookup script

Image
How to use bash script check check reverse dns lookup. You can check online reverse dns lookup with https://mxtoolbox.com/ or http://www.dnsqueries.com/en/reverse_lookup.php , so forth. Reverse dns lookup full script     #!/bin/bash     # Author: HuuPV     # MTA Reverse DNS lookup:     # For MTA     # dig mydomain.com +short @8.8.8.8     # dig -x 111.222.121.221 +short @8.8.8.8     rm -f /tmp/reverse_lookup_MTA     IP1="111.222.121.221"     MTA="mydomain.com"     DIG1=$(dig $MTA +short @8.8.8.8)     PTR1=$(dig -x $DIG1 +short @8.8.8.8 | sed 's/.$//')     #To check MTA DNS lookup status     echo "##### MTA Reverse DNS lookup and PTR Query #####" >/tmp/reverse_lookup_MTA     if [ "$MTA" != "$PTR1" ]; then         echo "$MTA != $PTR1" >>/tmp/reverse_lookup_MTA         echo "Reverse lookup Failed!" >>/tmp/reverse_lookup_MTA     elif [ "$IP1" != "$DIG1" ]; then         echo

zimbra custom spamassassin rules

Image
How to prevent spam on zimbra. To use zimbra spamassassin filter. To backlist and whitelist all email from address or domain. To spam-check mail incoming email to system your email or To spam-check internal mail. To use zimbra 8.6 and later, The commands as below running on zimbra MTA.  Links to below you maybe likes: zimbra custom spamassassin rules How to create auto Bcc for Recipient mails for Zimbra 8.6 How to add spam filters on zimbra 8.6 How to create auto Bcc for sender mails for Zimbra 8.6 list accounts that has not logged in for the last x days in zimbra zimbra custom spamassassin rules Enabling SpamAssassin rule updates su - zimbra zmlocalconfig -e antispam_enable_rule_updates=true zmlocalconfig -e antispam_enable_restarts=true zmlocalconfig -e antispam_enable_rule_compilation=true zmamavisdctl restart zmmtactl restart To check and configure zimbra Spam Subject Tag, zimbra Spam Tag Percent, zimbra Spam Kill Percent attribute. zmprov gcf zimbraSpamSubjectTag

zimbra bounces from spam email

Image
How to block backscatter email on zimbra. How many reasons why bounces from spam email. To run commands as below su - zimbra zmprov mcf zimbraMtaEnableSmtpdPolicyd TRUE zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes zmprov mcf zimbraMtaSmtpdRejectUnlistedSender yes zmprov mcf +zimbraMtaRestriction "check_policy_service unix:private/policy" zmmtactl restart zmconfigdctl restart The solve problem Bounces backscatter from spam email