Skip to content

Postfix #

Find similar titles

4회 업데이트 됨.

Edit
  • 최초 작성자
    둥굴레씨
  • 최근 업데이트
    JSeo

Structured data

Category
Computer science

Postfix를 이용한 리눅스 메일 서버 구축하기 #

리눅스에서 메일을 주고 받기 위해서는 메일서버를 구축하여야하는데 대표적인 메일서버로는 PostfixSendmail가 있다. 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
0.0.1_20231010_1_v71