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

안녕하세요 다람쥐메일과 큐메일을 설치했습니다.

작성자 정보

  • raemianserver 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요 다람쥐메일과 큐메일을 설치했습니다.

그런데 다람쥐 메일 configtest를 접속하니 아래와 같이 떴습니다.

SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version:1.4.22
Config file version:1.4.0
Config file last modified:02 June 2015 13:44:15
Checking PHP configuration...
    PHP version 5.3.3 OK.
    Running as N/A(N/A) / N/A(N/A)
    display_errors: 
    error_reporting: 22527
    variables_order OK: GPCS.
    PHP extensions OK. Dynamic loading is disabled.

    ERROR: You have configured PHP not to allow short tags (short_open_tag=off). This shouldn't be a problem with SquirrelMail or any plugin coded coded according to the SquirrelMail Coding Guidelines, but if you experience problems with PHP code being displayed in some of the pages and changing setting to "on" solves the problem, please file a bug report against the failing plugin. The correct contact information is most likely to be found in the plugin documentation.

Checking paths...
    Data dir OK.
    Attachment dir OK.
    Plugins are not enabled in config.
    Themes OK.
    Default language OK.
    Base URL detected as: http://www.dhsquare.net/squirrelmail/src (location base autodetected)
Checking outgoing mail service....
    SMTP server OK ()
Checking IMAP service....

        ERROR: ERROR: Error connecting to IMAP server "xxx.xx.xx.xxx:110".Server error: (110) Connection timed out



그래서 110번 포트도 열고 다 했는데도 여전히 접속이 안됩니다.

다람쥐메일 로그인 페이지에서 로그인 하면 

아래와 같은 메시지가 뜹니다.



ERROR
Error connecting to IMAP server: 117.52.74.109.
110 : Connection timed out



vi /etc/sysconfig/iptables에서 다 포트도 열어줬습니다.

# Generated by iptables-save v1.4.7 on Tue Jun  2 13:44:51 2015
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [28:3120]
:DOCKER - [0:0]
:fail2ban-SSH - [0:0]
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j fail2ban-SSH
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j fail2ban-SSH
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j fail2ban-SSH
-A INPUT -p tcp -m tcp --dport 2049 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j fail2ban-SSH
-A FORWARD -p tcp -m tcp --dport 110 -j ACCEPT
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A fail2ban-SSH -s 203.153.238.166/32 -j REJECT --reject-with icmp-port-unreachable
-A fail2ban-SSH -s 43.229.52.148/32 -j REJECT --reject-with icmp-port-unreachable
-A fail2ban-SSH -j RETURN
-A fail2ban-SSH -j RETURN
-A fail2ban-SSH -j RETURN
-A fail2ban-SSH -j RETURN
COMMIT
# Completed on Tue Jun  2 13:44:51 2015
# Generated by iptables-save v1.4.7 on Tue Jun  2 13:44:51 2015
*nat
:PREROUTING ACCEPT [195:10320]
:POSTROUTING ACCEPT [21:1516]
:OUTPUT ACCEPT [21:1516]
:DOCKER - [0:0]
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
COMMIT
# Completed on Tue Jun  2 13:44:51 2015



뭐가 문제인지 모르겠습니다.

그리고 큐메일도 다람쥐메일과 같이 어떤 구글에 있는 영어로 된 기술문서를 보고 설치를 다 했는데 도대체 테스트는 어떻게 하는건지 모르겠습니다.

인터넷에서 찾아보니 telnet 제 아이피 25 엔터친다음에 화면 뜨면 테스트 해보라고 하는데


Trying xxx.xx.xx.xxx...
이렇게 한참 뜨다가
connection time out 이라고 뜹니다.
도대체 뭐가 잘못된건지 모르겠습니다.

포트도 열어주고 다 해줬는데 말이죠...

항상 감사합니다.

관련자료

댓글 2

지유파파님의 댓글

  • 지유파파
  • 작성일
일단은 iptables는 내린 다음에 설치 및 접속 확인한 다음에 다시 올리시는 것이 좋을 것 같습니다.

Luatic님의 댓글

  • Luatic
  • 작성일
포트랑 관계없이 질문에 답이 있습니다.
PHP extensions OK. Dynamic loading is disabled.

    ERROR: You have configured PHP not to allow short tags (short_open_tag=off). This shouldn't be a problem with SquirrelMail or any plugin coded coded according to the SquirrelMail Coding Guidelines, but if you experience problems with PHP code being displayed in some of the pages and changing setting to "on" solves the problem, please file a bug report against the failing plugin. The correct contact information is most likely to be found in the plugin documentation.

공지사항


뉴스광장


  • 현재 회원수 :  60,040 명
  • 현재 강좌수 :  35,850 개
  • 현재 접속자 :  125 명