Linux 공통

Delete mail queue

1. Intro Delete mail queue.   2. How to? sendmail ### show mail queue mailq /usr/bin/mailq ### Delete mail queue cd /var/spool/mqueue rm -rf *   qmail ### show mail queue /var/qmail/bin/qmail-qstat ### Delete mail queue qmHandle -D    

Continue Reading
Ubuntu

apt update 오류시

1. Intro Ubuntu에서 apt update시 Hash 오류가 나는 경우   2. Command sudo rm -rf /var/lib/apt/lists/* sudo apt-get update -o Acquire::CompressionTypes::Order::=gz sudo apt-get update && sudo apt-get upgrade  

Continue Reading
Linux 공통

Login Fail log

1. Intro Linux에서 Login 실패 로그 분석을 통해 악의적인 로그인 시도에 대한 모니터링을 해야한다.   2. Command last -f /var/log/btmp | awk ‘{print $3}’ | sort | uniq -c | more  

Continue Reading
Linux 공통

qmail

1. What’s qmail? Unix 운영체제에서 사용 가능한 MTA(Mail Transfer Agent). Sendmail 대체.   – RFC 821 – 822 931 974 1123 1413 1651 -1652 1854 1893 1939 – Search masquerading – 참고 https://puzji.tistory.com/entry/CentOS7-%ED%81%90%EB%A9%94%EC%9D%BC-QMAIL-%EC%84%9C%EB%B2%84-%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0 http://archive.linuxfromscratch.org/blfs-museum/5.0/BLFS-5.0/server/qmail.html   2. 참고 자료 http://cr.yp.to/qmail.html https://frody.tistory.com/13 https://wiki.kldp.org/wiki.php/DocbookSgml/Life_With_Qmail-TRANS?action=fullsearch&value=DocbookSgml/Life_With_Qmail-TRANS FAQ : https://cr.yp.to/qmail/faq.html  

Continue Reading
CentOS

yum 오류시

1. Intro CentOS EOS로 yum 업데이트 불가시 2. Command vi /etc/yum.repos.d/CentOS-Base.repo :%s/^mirrorlist/#mirrorlist/gl :%s/^#baseurl/baseurl/gl :%s/mirror.centos.org\/centos\/$releasever/vault.centos.org\/[Version]/gl  

Continue Reading
Back To Top