Posts

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

How to create auto Bcc for Recipient mails for Zimbra 8.6

Image
How to auto copy of all email from [email protected] to [email protected]. Every email recipient of [email protected] from email another, then automation bcc send to [email protected].   How to create auto Bcc for sender mails for Zimbra 8.6 To check "recipient BCC Maps" recipient_bcc_maps on your zimbra 8.6 $ postconf | egrep "recipient_bcc_maps" To configure recipient bbc maps on zimbra 8.6 # su - zimbra $ cd /opt/zimbra/postfix/conf/ To create recipient_bcc $ vim recipient_bcc Input the content as below [email protected] [email protected] To add recipient_bcc_maps in main.cf file $ vim /opt/zimbra/postfix/conf/main.cf To add the following line in below recipient_bcc_maps = lmdb:/opt/zimbra/postfix/conf/recipient_bcc To apply configure recipient_bcc_maps $ postmap /opt/zimbra/postfix/conf/recipient_bcc To restart the zimbra postfix $ postfix reload To check "Recipient BCC Maps" recipi

How to add spam filters on zimbra 8.6

Image
How to add spam filters on zimbra 8.6 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 su - zimbra To check current setting $ zmprov gacf | grep zimbraMtaRestriction To add spam filters on zimbra 8.6 $ zmprov mcf zimbraMtaRestriction reject_invalid_hostname \ zimbraMtaRestriction reject_non_fqdn_hostname \ zimbraMtaRestriction reject_non_fqdn_sender \ zimbraMtaRestriction "reject_rbl_client dnsbl.njabl.org" \ zimbraMtaRestriction "reject_rbl_client cbl.abuseat.org" \ zimbraMtaRestriction "reject_rbl_client bl.spamcop.net" \ zimbraMtaRestriction "reject_rbl_client dnsbl.sorbs.net" \ zimbraMtaRestriction "reject_rbl_client sbl.spamhaus.org" \ zimbraMtaRestriction "reject_rbl_client rela

How to create auto Bcc for sender mails for Zimbra 8.6

Image
How to auto copy of all email from [email protected] to [email protected]. Every email send from [email protected] to email another, then automation bcc to [email protected]. How to create auto Bcc for Recipient mails for Zimbra 8.6 To check "Sender BCC Maps" sender_bcc_maps on your zimbra 8.6 $ postconf | egrep "sender_bcc_maps" The output as below sender_bcc_maps = To configure sender bbc maps on zimbra 8.6 # su - zimbra $ cd /opt/zimbra/postfix/conf/ To create sender_bcc $ vim sender_bcc Input the content as below [email protected] [email protected] To add sender_bcc_maps in main.cf file $ vim /opt/zimbra/postfix/conf/main.cf To add the following line in below sender_bcc_maps = lmdb:/opt/zimbra/postfix/conf/sender_bcc To apply configure sender_bcc_maps $ postmap /opt/zimbra/postfix/conf/sender_bcc To restart the zimbra postfix $ postfix reload To check "Sender BCC Maps" sender_bc

zimbra duplicate emails issue

Image
How to remove zimbra duplicate emails in inbox. some trouble message with double message-id. The resolution enable zimbraMessageIdDedupeCacheSize attribute. The default, zimbra disable zimbraMessageIdDedupeCacheSize attribute. I'm running commands with account zimbra ( su - zimbra ) To find current value zmprov gcf zimbraMessageIdDedupeCacheSize The looks like as below zimbraMessageIdDedupeCacheSize: 3000  The modified value and zimbra mailbox service restart zmprov mcf zimbraMessageIdDedupeCacheSize 0 zmmailboxdctl restart The conclusion The solve problem, "zimbra duplicate message id", "zimbra duplicate emails". The commands use my post, support zimbra mail server version 8.6 8.5 8.0