Membuat Email alert untuk spamming di postfix

buat file misal check.sh nano check.sh #!/bin/bash cat /var/log/maillog |grep @aol.* > /dev/null #Email Notification if [ “$?” = “0” ]; then echo “Email send to aol” | mailx -s “Send mail spam aol#hotel-smtp” hendro@yuby.com else echo “Email send to aol” > /dev/null exit 1 fi chmod a+x check.sh crontab -e * * * * … Read more

Backup dari Debian/Ubuntu/Centos/Open BSD ke Synology

–Backup dari Debian/Ubuntu ke Synology apt-get install ftp-upload mkdir /usr/src/backup/ nano /usr/src/backup.sh chmod a+x /usr/src/backup.sh isi file : #!/bin/bash export LC_ALL=”en_US.utf8″ cd /etc/dnsdist/ tar -czf /usr/src/backup/dnsdist-$(date +%d%m%Y).tar.gz * sleep 1m ftp-upload -h lapo.games.com:221 -u server –password kucing123 -d /Provisioning/Server/DNS/ /usr/src/backup/*$(date +%d%m%Y).tar.gz find /usr/src/backup/dnsdist-* -mtime +7 -exec rm {} \; KET : -lapo.games.com:221 -> server nya … Read more

Command exim cpanel

>>To delete Frozen emails from the email queue: # grep -R -l ‘*** Frozen’ /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm # exim -bp| grep frozen | awk ‘{print $3}’| xargs exim -Mrm # exiqgrep -z -i | xargs exim -Mrm >> To delete Spam emails from the email queue: # grep -R -l [SPAM] /var/spool/exim/msglog/*|cut -b26-|xargs exim … Read more

Membuat SSL di cpanel dengan Let’s Encrypt with AutoSSL Plugin

Masuk ke root server dengan ssh , /scripts/install_lets_encrypt_autossl_provider setting di WHM pilih Home >> SSL/TLS >> Manage AutoSSL Terus pilih Let’s Encrypt™ – Current Setting , pilih I agree , create new register, save sumber : cPanel’s Official Let’s Encrypt™ Plugin https://documentation.cpanel.net/display/CKB/The+Let%27s+Encrypt+Plugin

Docker command

#Cek info versi docker docker info #Mengunduh images dari Docker hub docker pull [image name] #Menghapus image dalam docker docker rmi [image ID] #Melihat daftar image docker images #Membuat container baru docker run [image name] [command to run] #Menyetop container docker stop [container ID] #Start container docker start [container ID] #Melihat daftar kontainer docker ps … Read more