CentOS 7 disable Automatic Updates

CentOS 7.x

Although CentOS 6.x Instructions will work for CentOS 7.0, you could upgrade the installation process to be completely CentOS 7.0 compatible:

yum install yum-cron
systemctl disable yum-cron.service
systemctl stop yum-cron.service

.conf file (Configuration) located at: /etc/yum/yum-cron.conf AND /etc/yum/yum-cron-hourly.conf.

Note that in contrast to CentOS 6.x, by default yum-cron only download updates once a day and doesn’t apply them. change to:

apply_updates = yes

In /etc/yum/yum-cron.conf if you wish to. make note that you can now define hourly updates in the /etc/yum/yum-cron-hourly.conf file.

Hapus semua file secara otomatis di linux

mencari dan mengumpulan file *.thor lalu memindahkan file tersebut dengan nama file-jahat2.txt

#find / -name “*.thor” > file-jahat2.txt

lallu menghapus file tersebut secara sekaligus.

for f in `cat file-jahat2.txt`; do rm “$f” -rf; done

atau cara simple nya adalah menghapus secara otomatis semua file dengan extention locky dan thor disemua folder

find / -name “*.locky” -delete

find / -name “*.locky” -delete

Mendeteksi Identitas Spammer dari Email Queue

#mailq

9202D6A8A66 7810 Wed Feb 22 16:01:21xxxxxxxxxxxxxxxxx(host x.x.x.x[x.x.x.x] said: 451 Too many connections, http://x.x.x.x/osfaq.php?cid=2 (in reply to RCPT TO command))

yg harus dilakukan adalah mengecek message id tersebut dengan command postcat

#postcat /opt/zimbra/postfix/sbin/postcat /opt/zimbra/data/postfix/spool/deferred/1/128F5180EE9701

perlu diketahui, jika message id berawalan

1 = /opt/zimbra/data/postfix/spool/deferred/1/
2 = /opt/zimbra/data/postfix/spool/deferred/2/
3 = /opt/zimbra/data/postfix/spool/deferred/3/
.
.
.
9 = /opt/zimbra/data/postfix/spool/deferred/9/
dan seterusnya.

maka hasilnya terlihat, selanjutnya jika alamat email terlihat, maka lakukan disable / closed alamat email tersebut agar tidak melakukan broadcast

Track messages sent and received by a user zimbra

Mencari email history di zimba adalah sebagai berikut.

Penerima (-r = Recipient address)
#/opt/zimbra/libexec/zmmsgtrace -r penerima@email.com /var/log/maillog-20161226

Pengirim (-s = Sender address)
#/opt/zimbra/libexec/zmmsgtrace -s pegirim@email.com /var/log/maillog-20161226

menggunakan file gz

/opt/zimbra/libexec/zmmsgtrace -s pegirim@email.com zimbra.log-20170113.gz

-h (help)

regards

file new failed nt_status_unsuccessful status unsuccessful samba

file_new failed: NT_STATUS_UNSUCCESSFUL
file new failed nt_status_unsuccessful status unsuccessful samba

salah-satu error di samba FC 24,  jika di cek menggunakan maka terlihat spt dibawah ini bahwa yg di cetak tebal sudah 100%

[root@pdc2 ~]# df -i

Filesystem                 Inodes  IUsed     IFree IUse% Mounted on

devtmpfs                  1003748    494   1003254    1% /dev

tmpfs                     1006507     13   1006494    1% /dev/shm

tmpfs                     1006507    736   1005771    1% /run

tmpfs                     1006507     16   1006491    1% /sys/fs/cgroup

/dev/mapper/fedora-root    655360 215569    439791   100% /

tmpfs                     1006507     30   1006477    1% /tmp

/dev/sda1                  128016    430    127586    1% /boot

/dev/mapper/fedora-home 120905728  41359 120864369    1% /home

tmpfs                     1006507     19   1006488    1% /run/user/42

tmpfs                     1006507     20   1006487    1% /run/user/1000

dan yang harus dilakukan adalah menghilangkan agar bisa berkurang di folder /var/log/journal , menghapus isi dari folder tersebut.

/dev/mapper/fedora-root    655360 215569    439791   33% /

Zimbra reports “ Error: Queue report unavailable – mail system is down ”

zcs @ zimbra: ~ $ zmcontrol status
Host zcs.ilba.cat
        antispam                Running
        antivirus               Running
        convertd                Running
        ldap                    Running
        LOGGER Running
        mailbox                 Running
        mta                     Running
        opendkim                Running
        proxy                   Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running
zimbra@zcs:~$ tail -f /var/log/mail.log
Jan 22 11:08:00 zcs postfix/postqueue[19195]: fatal: Queue report unavailable - mail system is down
root@zcs:~# locate master.pid
/opt/zimbra/data/postfix/spool/pid/master.pid

zcs root @: ~ # mv master.pid master.pid.bak.21des2016

root@zcs:~# su - zimbra
Zimbra ZCS @: ~ $ / opt / Zimbra / bin / zmmtactl start
Rewriting configuration files...done.
Starting saslauthd...already running.
/postfix-script: starting the Postfix mail system

fatal: Queue report unavailable – mail system is down

[root@webmail ~]# tail -f /var/log/maillog
Oct 13 16:24:57 webmail amavis-services[14204]: amavis-services-2.9.0 (20140506) task ‘msg-forwarder’ [14204] started. ZMQ::LibZMQ3 1.13, lib 3.2.3
Oct 13 16:24:57 webmail amavis-services[14205]: amavis-services-2.9.0 (20140506) task ‘childproc-minder’ [14205] started. ZMQ::LibZMQ3 1.13, lib 3.2.3
Oct 13 16:24:57 webmail amavis-services[14206]: amavis-services-2.9.0 (20140506) task ‘snmp-responder’ [14206] started. ZMQ::LibZMQ3 1.13, lib 3.2.3
Oct 13 16:24:58 webmail amavis-services[14205]: childproc_minder: FLUSH process states
Oct 13 16:25:00 webmail postfix/postqueue[14314]: fatal: Queue report unavailable – mail system is down
Oct 13 16:25:05 webmail amavis-services[14206]: snmp_responder: FLUSH snmp data
Oct 13 16:25:05 webmail amavis-services[14205]: childproc_minder: FLUSH process states
Oct 13 16:25:30 webmail postfix/postqueue[15496]: fatal: Queue report unavailable – mail system is down
Oct 13 16:26:00 webmail postfix/postqueue[15622]: fatal: Queue report unavailable – mail system is down
Oct 13 16:26:30 webmail postfix/postqueue[17160]: fatal: Queue report unavailable – mail system is down
Oct 13 16:27:00 webmail postfix/postqueue[17226]: fatal: Queue report unavailable – mail system is down

SOLUSI

[root@webmail /]# locate master.pid
/opt/zimbra/data/postfix/spool/pid/master.pid
[root@webmail /]# cd /opt/zimbra/data/postfix/spool/pid/

[root@webmail pid]# cp master.pid master.pid.bak

[root@webmail pid]# rm -Rf master.pid

[root@webmail pid]# su – zimbra
Last login: Thu Oct 13 16:24:45 WIB 2016 on pts/0
[zimbra@webmail ~]$ zmmtactl start
Rewriting configuration files…done.
Starting saslauthd…already running.
/postfix-script: starting the Postfix mail system
[zimbra@webmail ~]$