Posts

awk useful commands examples

awk useful comand examples. How to Output Field Separator Variable, Number of Fields in a record, To print Non-system users and ignoring "nobody" etc.  You may reading link below : How to reset root password on centos 7 CentOS/RHEL Use yum Command To Downgrade Upgrade or Rollback Updates Generate and Verify Files with MD5 Checksum in Linux use inotify-tools on centos For example, the output passwd file use awk command $ cat /etc/passwd | awk -F':' 'BEGIN{ print "Name\tUID,GID\tHomeDirectory" }{print $1"\t"$3,$4"\t"$6}' The output as below: Name UID,GID HomeDirectory root 0 0 /root bin 1 1 /bin daemon 2 2 /sbin adm 3 4 /var/adm lp 4 7 /var/spool/lpd sync 5 0 /sbin shutdown 6 0 /sbin halt 7 0 /sbin mail 8 12 /var/spool/mail operator 11 0 /root games 12 100 /usr/games ftp 14 50 /var/ftp nobody 99 99 / systemd-bus-proxy 999 998 / systemd-network 192 192 / dbus 81 81 / polkitd 998 997 / tss 59 59 /dev/null s

zimbra enforce SPF checking for incomming email

Image
In this tutorial, I'm enable and configure spf to check for incommning email with cbpolicyd. By default, the SPF checking module is not enable and there are no SPF policies. zimbra logs with "Sender address rejected: Failed SPF check". How to zimbra enforce spf checking for incomming email as below. I'm running commands as zimbra account ( su - zimbra ) Links to below you maybe likes: zimbra 8.6 cbpolicyd example How to install and configure zimbra multi server. How to restrict to user sending mail on zimbra 8.6. How to Restrict Sending to Distribution list in zimbra mail. How to change last login time for all accounts in zimbra ldap. How to zimbra reject authenticated sender login mismatch. To check zimbra policyd spf $ zmprov gs `zmhostname` zimbraCBPolicydCheckSPFEnabled If zimbra spf checking not enable then, to enable policyd checkspf $ zmprov ms `zmhostname` zimbraCBPolicydCheckSPFEnabled TRUE To restart policyd service $ zmcbpolicydctl resta

Zimbra 8.8 releases beta

Zimbra 8.8 the best for mail server. It's useful the feature new! I like it. What is zimbra 8.8 new New Realtime backup : I like it! Now, your backup no data loss and saving on storage space New Mobile Sync New HSM & Volume Management : reduce your current zimbra storage Improved, easy-to-use Delegated Admin Zimbra Drive Zimbra Chat (BETA) Decoupled IMAP Service (BETA) Ephemeral Data Store The waiting zimbra 8.8 offical! Yeah to ready zimbra GA link download zimbra 8.8 How to install zimbra 8.8 on centos 6 step by step !

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

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