설치확인
sendmail -d0.1 -bv root
또는
rpm -q sendmail
설치
sudo yum install sendmail sendmail-cf -y
시작 및 부팅시 자동실행
sudo systemctl start sendmail
sudo systemctl enable sendmail
상태확인
sudo systemctl status sendmail
테스트 메일 전송
echo "This is the body of the email" | mail -s "Test Email from Sendmail" you@example.com
또는
sudo sendmail you@example.com <<EOF
Subject: Sendmail Test
From: yourname@yourdomain.com
This is a test message sent using sendmail on CentOS 7.
EOF
로그확인
sudo tail -f /var/log/maillog
'[ 서버 & DB 관련 ] > 리눅스' 카테고리의 다른 글
아파치 연관 프로세스 강제 종료 후 재실행 (0) | 2024.10.08 |
---|---|
centOS SSH 설치 및 접속 (0) | 2022.03.15 |
특정 이름으로 시작하는 파일 모두 지우기 (0) | 2021.11.01 |
Understanding logrotate utility (0) | 2021.11.01 |
★ 쉘 스크립트 (shell) ★ (0) | 2021.10.27 |