«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

VIDEOCUBE

메일 서버를 이용해 메일을 보내보자 본문

시스템

메일 서버를 이용해 메일을 보내보자

라떼청년 2017. 12. 16. 00:35

메일 서버를 구축해 보자..

CentOS 6.3 환경에서 Mail Transfer Agent 로 sendmail, postfix 중에 postfix 로 설치를 진행하려고 한다.

yum install postfix

 

 

root@mail:/root> netstat -nlp

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      878/sshd            

tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1568/master         

tcp        0      0 :::22                       :::*                        LISTEN      878/sshd            

tcp        0      0 ::1:25                      :::*                        LISTEN      1568/master  

 

25번 포트가 올라가 있는 것을 확인이 되었다.

127.0.0.1:25 >> 로 되어 있으면 외부에서는 접근이 되지 않는다.

localhost 만 접속이 되어진다.

메일을 보내보자..

Telnet 을 설치 해보자

root@mail:/root> telnet localhost 25

Trying ::1...

Connected to localhost.

Escape character is '^]'.

 

220 mail.localdomain ESMTP Postfix

 

mail from:pluto90k@videocube.lab

 

250 2.1.0 Ok

 

 

rcpt to:{받을 사람 Email 주소}

250 2.1.5 Ok

 

data

354 End data with <CR><LF>.<CR><LF>

 

Welcome

. { 메일의 끝 마침 }

250 2.0.0 Ok: queued as 3854A2BA

 

quit { 종료 }

 

221 2.0.0 Bye

 

 

 

 

undisclosed-recipients ( 공개되지 않은 수신자 ) ==> 정크 메일로 분류가 된다.

 

ㄴ 발송 서버의 IP 가 Reverse DNS 로 등록이 되지 않아서 발생하는 문제.

 

외부에서 공개된 DNS 로 질의를 보내기 때문에 사설 DNS 도 되지 않는다

 

 

 

 

 

반응형

'시스템' 카테고리의 다른 글

Window10 WSL 로 Ubuntu 설치하기  (0) 2019.01.08
FFmpeg 설치 해보자 - CentOS 6.3  (2) 2018.01.04
Python 서버 구축하기 [CGIHTTPServer]  (0) 2017.12.03
Nginx 설치하기  (0) 2017.11.25
[DNS] /var/named 폴더 경로 변경하기  (0) 2017.11.20
Comments