cara blok sender email di postix

cara memblok email sender supaya tidak bisa menggunakan smtp relay. nano /etc/postfix/sender_access isi file nya test@games.com REJECT lalu setting di /etc/postfix/main.cf tambahkan baris erikut : check_sender_access hash:/etc/postfix/sender_acces sehingga menjadi : smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_recipient, permit_mynetworks, reject_unauth_destination lalu masukan ke database postfix nya postmap /etc/postfix/sender_access restart service nya /etc/init.d/postfix restart silahkan di coba. NOte : … Read more

Blocked BAD-HEADER-0 in amavisd-new

problem : Dec 21 14:34:16 smtp50 amavis[11961]: (11961-13) Blocked BAD-HEADER-0 {BouncedOpenRelay,Quarantined}, [150.129.57.34]:55449 [150.129.57.34] <ekayuniari@nusaduahotel.com> -> <abctourbali@hotmail.com>, Queue-ID: CBE0F22D0295, Message-ID: <3C16E26581B1B04F873F78775DB4912053F05F27@MAILSVR.nusaduahotel.com>, mail_id: kapn1E_TRfvI, Hits: -, size: 223548, 70 ms Dec 21 14:34:16 smtp50 postfix/lmtp[12582]: CBE0F22D0295: to=<abctourbali@hotmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.51, delays=0.44/0/0/0.07, dsn=2.5.0, status=sent (250 2.5.0 Ok <abctourbali@hotmail.com>, DSN was sent (554 5.6.0 Bounce, id=11961-13 – BAD HEADER)) solusi … Read more

script auto free RAM jika penuh

#!/bin/bash if [ `free -m | grep Mem | awk ‘{print $3}’` -ge 14000 ] then sync; echo 3 > /proc/sys/vm/drop_caches /etc/init.d/pdns stop fi   ket : jika RAM lebih besar dari 14 GB maka sync; echo 3 > /proc/sys/vm/drop_caches ( di bersihkan ) restart service DNS  

membuat script auto restart DNS

#!/bin/bash nslookup google.com localhost > /dev/null if [ $? -eq 1 ] then /etc/init.d/pdns stop echo $(date) >> /tmp/monitor.log fi ket : lookup google ke localhost $? artinya jika benar hasilnya 0 , jika gagal hasilnya 1 -eq 1 artinya jika hasilnya 1 ( gagal ) maka service DNS akan di restart echo $(date) artinya … Read more