Imap Server

Discussion in 'Server Operation' started by jamesbond, Jun 27, 2006.

  1. jamesbond

    jamesbond New Member

    i have installed Fedora 5 ....and dovecot & sendmail & squirrel mail........i got the squirrel mail login page but .......i am not able to loging in.....it is giving an error............

    Error connecting to IMAP server: localhost.
    10941 :

    plz help me to resolve this problem.......
     
  2. platd

    platd New Member

    Does


    %telnet localhost 143
    Trying ::1...
    Connected to localhost.littlelight.org.uk.
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THRE AD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyr ight 1998-2005 Double Precision, Inc. See COPYING for distribution information.


    Give any thing ? if so did you run the squirrelmail setup script and check the server settings. If not check why your imap server is not running. Also check the permissions on the squirrelmail directory as far as your web server is concerned. Check apache error logs and stuff
     
  3. jamesbond

    jamesbond New Member

    Still not working

    i have checked permissions for squirrel mail......& i have given 777 permissions. Still i am having errror ........................


    But i am not able logging using telnet

    telnet 192.168.0.201 143
    Trying 192.168.0.201...
    telnet: connect to address 192.168.0.201: Connection refused
    telnet: Unable to connect to remote host: Connection refused

    but normal telnet is working......

    telnet 192.168.0.201
    Trying 192.168.0.201...
    Connected to *****.co.in (192.168.0.201).
    Escape character is '^]'.
    Fedora Core release 5 (Bordeaux)
    Kernel 2.6.15-1.2054_FC5 on an x86_64
    login:
     
    Last edited: Jun 27, 2006
  4. platd

    platd New Member

    looks like your imap server is not running so you need to fix that.

    oh of course dont forget firewall issues maybe depending on your setup and try
    telnet localhost 143 rather than 192.168.0.201 just out of interest

    I use bsd so can't help you much further if your imapd server is not running
    good luck :)
     
    Last edited: Jun 27, 2006
  5. jamesbond

    jamesbond New Member

    ok thx.....
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    and
    Code:
    iptables -L
    ?
     
  7. EL7oot

    EL7oot New Member

    i have same problem

    this is my "netstat -tap"

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 1853/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 1881/dovecot
    tcp 0 0 *:sunrpc *:* LISTEN 1458/portmap
    tcp 0 0 *:ndmp *:* LISTEN 2467/perl
    tcp 0 0 dwc.com.eg:50000 *:* LISTEN 1698/hpiod
    tcp 0 0 *:hosts2-ns *:* LISTEN 2282/ispconfig_http
    tcp 0 0 dwc.com.eg:50002 *:* LISTEN 1703/python
    tcp 0 0 PC52-4.yalla.com:domain *:* LISTEN 2433/named
    tcp 0 0 dwc.com.eg:domain *:* LISTEN 2433/named
    tcp 0 0 dwc.com.eg:ipp *:* LISTEN 1715/cupsd
    tcp 0 0 dwc.com.eg:rndc *:* LISTEN 2433/named
    tcp 0 0 *:smtp *:* LISTEN 2377/master
    tcp 0 0 *:48761 *:* LISTEN 1477/rpc.statd
    tcp 0 0 dwc.com.eg:50000 dwc.com.eg:40598 ESTABLISHED 1698/hpiod
    tcp 0 0 dwc.com.eg:40598 dwc.com.eg:50000 ESTABLISHED 1703/python
    tcp 0 0 *:http *:* LISTEN 2306/httpd
    tcp 0 0 *:ftp *:* LISTEN 5682/proftpd: (acce
    tcp 0 0 *:ssh *:* LISTEN 1744/sshd
    tcp 0 0 *:https *:* LISTEN 2306/httpd
    tcp 0 1964 PC52-4.yalla.com:ssh ::ffff:196.204.149.1:uohost ESTABLISHED 7286/1
    -----------------------------------------------------------
    -----------------------------------------------------------
    and iptables -L
    Chain INPUT (policy DROP)
    target prot opt source destination
    DROP tcp -- anywhere 127.0.0.0/8
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT all -- anywhere anywhere
    DROP all -- BASE-ADDRESS.MCAST.NET/4 anywhere
    PUB_IN all -- anywhere anywhere
    PUB_IN all -- anywhere anywhere
    PUB_IN all -- anywhere anywhere
    PUB_IN all -- anywhere anywhere
    DROP all -- anywhere anywhere

    Chain FORWARD (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    DROP all -- anywhere anywhere

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    PUB_OUT all -- anywhere anywhere
    PUB_OUT all -- anywhere anywhere
    PUB_OUT all -- anywhere anywhere
    PUB_OUT all -- anywhere anywhere

    Chain INT_IN (0 references)
    target prot opt source destination
    ACCEPT icmp -- anywhere anywhere
    DROP all -- anywhere anywhere

    Chain INT_OUT (0 references)
    target prot opt source destination
    ACCEPT icmp -- anywhere anywhere
    ACCEPT all -- anywhere anywhere

    Chain PAROLE (9 references)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere

    Chain PUB_IN (4 references)
    target prot opt source destination
    ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
    ACCEPT icmp -- anywhere anywhere icmp echo-reply
    ACCEPT icmp -- anywhere anywhere icmp time-exceeded
    ACCEPT icmp -- anywhere anywhere icmp echo-request
    PAROLE tcp -- anywhere anywhere tcp dpt:ftp
    PAROLE tcp -- anywhere anywhere tcp dpt:ssh
    PAROLE tcp -- anywhere anywhere tcp dpt:smtp
    PAROLE tcp -- anywhere anywhere tcp dpt:domain
    PAROLE tcp -- anywhere anywhere tcp dpt:http
    PAROLE tcp -- anywhere anywhere tcp dpt:hosts2-ns
    PAROLE tcp -- anywhere anywhere tcp dpt:pop3
    PAROLE tcp -- anywhere anywhere tcp dpt:https
    PAROLE tcp -- anywhere anywhere tcp dpt:ndmp
    ACCEPT udp -- anywhere anywhere udp dpt:domain
    DROP icmp -- anywhere anywhere
    DROP all -- anywhere anywhere

    Chain PUB_OUT (4 references)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ---------------------------------------------------------------
    ---------------------------------------------------------------


    i followed perfect setup fedora 5

    please help me
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Do you want to connect using IMAP or POP3? For IMAP you must open port 143 in your firewall and probably change /etc/dovecot.conf.
     
  9. EL7oot

    EL7oot New Member

    i want to use pop3 so the users be able to connect to server through Ms.outlook or any other program using pop3 protocol

    and SquirrelMail as webmail interface

    is this possible ????

    thanx
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Yes, sure. Which distribution do you use?
     
  11. EL7oot

    EL7oot New Member

    linux Fedora Core 5 with ISPConfig 2.2.6
    i followed perfect setup for Fedora 5
    ___________________________________
    errmsg:
    "Error connecting to IMAP server: localhost.
    111 : Connection refused"
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Did you disable SELinux?
     
  13. EL7oot

    EL7oot New Member

    yes i have disabled SELinux

    SELINUX=disabled

    thanks for your patience
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Did you enable IMAP in /etc/dovecot.conf?
     
  15. EL7oot

    EL7oot New Member

    yes
    this my /etc/dovecot.conf *

    # Protocols we want to be serving:
    # imap imaps pop3 pop3s
    #protocols = imap imaps pop3
    protocols = imap pop3
    is this correct ??
    -------------------------------------
    this opened ports from ISPconfig Local Portscanner
    Port 21 (tcp) is open (ftp)!
    Port 22 (tcp) is open (ssh)!
    Port 25 (tcp) is open (smtp)!
    Port 53 (tcp) is open (domain)!
    Port 80 (tcp) is open (http)!
    Port 81 (tcp) is open (ISPConfig)!
    Port 110 (tcp) is open (pop3)!
    Port 111 (tcp) is open (sunrpc)!
    Port 143 (tcp) is open (imap)!
    Port 443 (tcp) is open (https)!
    Port 631 (tcp) is open (ipp)!
    Port 953 (tcp) is open (rndc)!
    Port 3306 (tcp) is open (mysql)!
    thx
     
  16. falko

    falko Super Moderator Howtoforge Staff

    Looks ok. If your firewall doesn't block ports 110 and 143, your users should be able to use POP3 and IMAP.
     
  17. EL7oot

    EL7oot New Member

    but this is my output of telnet command

    [root@dwc /]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'.
    220 dwc.com.eg ESMTP Sendmail 8.13.5/8.13.5; Wed, 14 Feb 2007 20:34:48 +0200
    ehlo localhost
    250-dwc.com.eg Hello dwc.com.eg [127.0.0.1], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ETRN
    250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
    250-DELIVERBY
    250 HELP
    thanks for your patience
     
  18. falko

    falko Super Moderator Howtoforge Staff

    You said you followed the Perfect Setup in which Postfix gets installed, and now I see that you use Sendmail:
    So I guess you used your own setup?
     
  19. EL7oot

    EL7oot New Member

    i'm beginner to linux systims so i don't know how to install any thing by my self

    now i can't start postfix

    [root@dwc ~]# service postfix start
    Starting postfix: [FAILED]
    -------------------------------------------------------

    thx
     
  20. martinfst

    martinfst Member Moderator

    That's because you have installed / activated sendmail. Sendmail and Postfix are mutual exclusive on the same server.

    Remove sendmail.
    Code:
    yum remove sendmail
     

Share This Page