질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

가상메일...설정..ㅡ.ㅡ;

작성자 정보

  • 김도환 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요 리눅스를 설치하고 apache + dns 셋팅을 했는데.. 가상메일 세팅이 않되서요..;;
가상메일 설정에 대해서 궁금해서요..
오후부터 하다가 하지 못하고 ㅠ.ㅠ 지금 퇴근하는 길에 글 남기고 갑니다 .ㅠㅠㅠㅠ

httpd.conf


    ServerAdmin
master@aaa.co.kr
    DocumentRoot /home/aaa/html
    ServerName aaa.co.kr
    ServerAlias
www.aaa.co.kr
    ErrorLog logs/aaa.co.kr-error_log
    CustomLog logs/aaa.co.kr-access_log common

네임서버의 zone 파일

$TTL    86400
@               IN SOA         ns.aaa.co.kr. root.aaa.co.kr. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           ns.aaa.co.kr.
                IN A            111.111.11.112
                IN MX   10      mail.aaa.co.kr.

ns              IN A            111.111.11.112
ns2             IN A            111.111.11.112
mail            IN A            111.111.11.112
www             IN CNAME        @

프로세스 확인

[root@ns1 mail]# ps ax | grep sendmail
 8476 ?        Ss     0:00 sendmail: accepting connections
 8484 ?        Ss     0:00 sendmail: Queue
runner@01:00:00 for /var/spool/clientmqueue
 8521 pts/0    S+     0:00 grep sendmail

sendmail.cf 확인

[root@ns1 mail]# cat /etc/mail/sendmail.cf | grep Cw
Cwlocalhost
[root@ns1 mail]# cat /etc/mail/sendmail.cf | grep Fw
Fw/etc/mail/local-host-names
[root@ns1 mail]# cat /etc/mail/sendmail.cf | grep local-host-names
Fw/etc/mail/local-host-names
[root@ns1 mail]# cat /etc/mail/sendmail.cf | grep Kvirtuser
Kvirtuser hash -o /etc/mail/virtusertable.db
[root@ns1 mail]# cat /etc/mail/sendmail.cf | grep Kaccess
Kaccess hash -T -o /etc/mail/access.db

먼저 수정했는건요 ... 
[root@ns1 mail]# cat /etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
aaa.co.kr    <== 도메인 추가

[root@ns1 mail]# cat /etc/mail/virtusertable
admin@aaa.co.kr       test  <==  추가

[root@ns1 mail]# makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable  확인

[root@ns1 mail]# /etc/rc.d/init.d/sendmail restart  메일 재가동..

[root@ns1 mail]# strings virtusertable.db | grep test   확인
test
admin@aaa.co.kr

[root@ns1 mail]# telnet aaa.co.kr 25
Trying  111.111.11.112...
telnet: connect to address  111.111.11.112: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@ns1 mail]# telnet aaa.co.kr 110
Trying  111.111.11.112...
telnet: connect to address  111.111.11.112: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@ns1 mail]#

결국 안되네요

[root@ns1 mail]# cat /etc/services | grep smtp
smtp            25/tcp          mail
smtp            25/udp          mail
smtps           465/tcp                         # SMTP over SSL (TLS)
[root@ns1 mail]# cat /etc/services | grep pop3
pop3            110/tcp         pop-3           # POP version 3
pop3            110/udp         pop-3
pop3s           995/tcp                         # POP-3 over SSL
pop3s           995/udp                         # POP-3 over SSL

포트는 다 열려 있는데 ㅠ.ㅠ...ㅠ.ㅠ.ㅠ.

 

고수님 도와주세요 ㅠ.ㅠ.ㅠ. 왜 가상메일이 않되는지...ㅠ.ㅠ.


 


 


 

 


 

 

관련자료

댓글 1

김상복님의 댓글

  • 김상복
  • 작성일
질문이 넘 복잡해여..ㅠㅠ

가상메일이 virtusertable 이걸 말씀하시는 건가요?

가상메일 보다는 우선은 일단 메일서버에서 메일이 나가는지부터 확인해 보시겠습니까?

만약 나간다면, netstat로 127.0.0.1 아이피로 25번 포트가 열린건 아닌가 확인해 보시구여. (포트 열린거는 services 파일로 확인하시는게 아닙니다.)

[root]# netstat -anp|grep "sendmail"
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                  LISTEN      19473/sendmail: acc
unix  2      [ ]        DGRAM                    9297647 19473/sendmail: acc

이렇게 나와야 됩니다.

제 생각에는 sendmail.cf에서 smtp 발송 주소가 127.0.0.1로 잡혔을 듯 합니다.

이 부분을 0.0.0.0으로 바꾸시면 잘 될듯 합니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,076 명
  • 현재 강좌수 :  36,001 개
  • 현재 접속자 :  284 명