Postfix
#
Find similar titles
- 최초 작성자
- 최근 업데이트
Structured data
- Category
- Computer science
Table of Contents
Postfix를 이용한 리눅스 메일 서버 구축하기 #
리눅스에서 메일을 주고 받기 위해서는 메일서버를 구축하여야하는데 대표적인 메일서버로는 Postfix와 Sendmail가 있다. Postfix를 이용하여 메일서버를 구축하기는 다음과 같다. (CentOS 6 버전을 기준)
설치 및 서비스 설정 #
Postfix 설치 #
yum install -y postfix
서버 재시작시 자동으로 데몬이 실행되도록 등록 #
chkconfig postfix on
환경설정 #
vi /etc/postfix/main.cf
myhostname = localhost # 호스트명 설정
# 도메인명 설정
mydomain = www.example.com # 도메인명 설정
서비스 재시작 #
service postfix restart
메일 발송 테스트 #
# echo "test message" | mail -s "test" admin@example.com