pop3 service alone is failed in "The Perfect Setup - Debian Sarge (3.1)"

Discussion in 'HOWTO-Related Questions' started by nandhu, Oct 22, 2005.

  1. nandhu

    nandhu New Member

    Hi Falko,

    This time I tried Debian Sarge 3.1 instructions on my Kanotix RC-11 version.

    Everything went fine not even a single error. Also I omitted Courier section.

    After installing ISPConfig and logged in as admin. I selected the Services section and found the following:-

    Web-Server: Online
    FTP-Server: Online
    SMTP-Server: Online
    POP3-Server: Offline
    BIND-Server: Online
    mySQL-Server: Online

    and my nmap on localhost shows the following, i could not see any 110 port in it. Could you please tell me what might have gone wrong and how can I now get the Pop3 service running, which in the above ISPConfig would change from Offline to Online.

    Please see my nmap output below:-

    Code:
    root@aasai:~# nmap localhost
    
    Starting nmap 3.93 ( http://www.insecure.org/nmap/ ) at 2005-10-22 20:45 BST
    Interesting ports on localhost.localdomain (127.0.0.1):
    (The 1659 ports scanned but not shown below are in state: closed)
    PORT     STATE SERVICE
    21/tcp   open  ftp
    25/tcp   open  smtp
    53/tcp   open  domain
    80/tcp   open  http
    81/tcp   open  hosts2-ns
    443/tcp  open  https
    631/tcp  open  ipp
    953/tcp  open  rndc
    3306/tcp open  mysql
    
    Nmap finished: 1 IP address (1 host up) scanned in 0.218 seconds
    root@aasai:~#
    
    Please help me to get this one right.

    Many thanks for your excellent article.

    Nandhu.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Why did you omitt courier? It's the best pop3 and mailserver for ISPConfig under DEBIAN?

    As you can see in your nmap scan you currently have no pop3 and imap server installed.
     
  3. nandhu

    nandhu New Member

    Hi Till,

    As far as I understood the steps, as described in the below section:

    Code:
    Postfix/POP3/IMAP
    
    In order to install Postfix with SMTP-AUTH and TLS as well as a POP3 server that also does POP3s (port 995) and an IMAP server that is also capable of IMAPs (port 993) do the following steps:
    
    and Also as mentioned in the Courier Section, which is described below:

    Code:
    Courier-IMAP/Courier-POP3
    
    If you want to use a POP3/IMAP daemon that has Maildir support (if you do not want to use the traditional Unix mailbox format) you can install Courier-IMAP/Courier-IMAP-SSL (for IMAPs on port 993) and Courier-POP3/Courier-POP3-SSL (for POP3s on port 995). Otherwise you can proceed with the Apache configuration.
    
    apt-get install courier-imap courier-imap-ssl courier-pop courier-pop-ssl
    
    <- No
    
    
    ipopd and UW-IMAP will then be replaced.
    I thought Courier section is optional and if I want Maildir support or if I want the ipopd and Uw-IMAP servers to be replaced.

    I thought I already have installed pop3 and pop3s as mentioned in the Postfix section, so why bother with Courier section.

    So, is it not optional and should i do it now, will it work if I do it now, or should I start from the begining?

    Many thanks,

    Nandhu.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    The Courier part is optional, you don't have to use it if you're happy with a POP3/IMAP daemon that uses mbox. If you want to have Maildir, then install Courier.

    So you can

    a) install Courier as per the instructions in the howto,

    or

    b) stay with your current setup and try to fix the POP3 problem. To do so, please have a look at /etc/inetd.conf and search for appropriate entries for POP3 and IMAP. You can also post your /etc/inetd.conf here so that we can see where the problem might be.
     
  5. nandhu

    nandhu New Member

    Hi Falko,

    Correct, that's what I thought too. And that's the reason I did not proceed further to install the optional Courier.

    Basically I tried when I followed the tutorial 1st time, I ended up installing Courier and ISPConfig still showed me with POP3 Service alone as Offline, and so I reinstalled Kanotix from the begining and then started all from second time. So this time I thought I will not install the optional Courier Step to find out whether it will work out this time without Courier's involvement.

    Following is my /etc/inetd.conf

    Code:
    #<off># # /etc/inetd.conf:  see inetd(8) for further informations.
    #
    #<off># # Internet server configuration database
    #
    #
    #<off># # Lines starting with "#:LABEL:" or "#<off>#" should not
    #<off># # be changed unless you know what you are doing!
    #
    #<off># # If you want to disable an entry so it isn't touched during
    #<off># # package updates just comment it out with a single '#' character.
    #
    #<off># # Packages should modify this file by using update-inetd(8)
    #
    # <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
    #
    #<off># #:INTERNAL: Internal services
    #<off># #echo		stream	tcp	nowait	root	internal
    #<off># #echo		dgram	udp	wait	root	internal
    #<off># #chargen	stream	tcp	nowait	root	internal
    #<off># #chargen	dgram	udp	wait	root	internal
    #<off># discard		stream	tcp	nowait	root	internal
    #<off># discard		dgram	udp	wait	root	internal
    #<off># daytime		stream	tcp	nowait	root	internal
    #<off># #daytime	dgram	udp	wait	root	internal
    #<off># time		stream	tcp	nowait	root	internal
    #<off># #time		dgram	udp	wait	root	internal
    
    #<off># #:STANDARD: These are standard services.
    #<off># ftp		stream	tcp	nowait	root	/usr/sbin/tcpd	/usr/sbin/in.ftpd
    
    #<off># #:BSD: Shell, login, exec and talk are BSD protocols.
    
    #<off># #:MAIL: Mail, news and uucp services.
    
    #<off># #:INFO: Info services
    #<off># #<off># ident		stream	tcp	nowait	nobody	/usr/sbin/nullidentd	nullidentd
    
    #<off># #:BOOT: Tftp service is provided primarily for booting.  Most sites
    #<off># # run this only on machines acting as "boot servers."
    
    #<off># #:RPC: RPC based services
    
    #:HAM-RADIO: amateur-radio services
    
    #<off># #:OTHER: Other services
    #<off># #<off># netbios-ssn	stream	tcp	nowait	root	/usr/sbin/tcpd	/usr/sbin/smbd
    #<off># vboxd	stream	tcp	nowait	root	/usr/sbin/tcpd	/usr/sbin/vboxd
    
    pop3	stream	tcp	nowait	root	/usr/sbin/tcpd /usr/sbin/ipop3d
    pop3s	stream	tcp	nowait	root	/usr/sbin/tcpd /usr/sbin/ipop3d
    imap2	stream	tcp	nowait	root	/usr/sbin/tcpd /usr/sbin/imapd
    imaps	stream	tcp	nowait	root	/usr/sbin/tcpd /usr/sbin/imapd
    
    Please see what I could do to correct this problem.

    Many thanks,

    Nandhu.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, courier is optional but you wont get happy with an mbox based mailserver if you get more traffic on your server :) And that's what i told you above ....
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. Can you restart inetd:
    Code:
    /etc/init.d/inetd restart
    and post the output of
    Code:
    netstat -tap
    here?
     
  8. nandhu

    nandhu New Member

    Hi Falko,

    Excellent, after restarting the inetd it worked like a charm.

    I think you should add a script to start mysql,inetd,bind9,apache2,proftpd,postfix automatically after reboot as part of your Perfect Setup. Its only a suggestion. I'm sure many linux/unix guys would know to do it straightway. But it would help many budding unix chaps like me. :)

    Anyway, following is my netstat -tap after restarting, inetd, proftpd, bind9, apache, mysql and postfix :-

    Code:
    root@aasai:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:imaps                 *:*                     LISTEN     7974/inetd
    tcp        0      0 *:pop3s                 *:*                     LISTEN     7974/inetd
    tcp        0      0 localhost.localdo:mysql *:*                     LISTEN     8426/mysqld
    tcp        0      0 *:pop3                  *:*                     LISTEN     7974/inetd
    tcp        0      0 *:imap2                 *:*                     LISTEN     7974/inetd
    tcp        0      0 *:www                   *:*                     LISTEN     8513/apache2
    tcp        0      0 *:81                    *:*                     LISTEN     4905/ispconfig_http
    tcp        0      0 aasai.grandize.c:domain *:*                     LISTEN     8932/named
    tcp        0      0 localhost.locald:domain *:*                     LISTEN     8932/named
    tcp        0      0 *:ftp                   *:*                     LISTEN     8828/proftpd: (acce
    tcp        0      0 *:ipp                   *:*                     LISTEN     4763/cupsd
    tcp        0      0 localhost.localdoma:953 *:*                     LISTEN     8932/named
    tcp        0      0 *:smtp                  *:*                     LISTEN     8638/master
    tcp        0      0 *:https                 *:*                     LISTEN     8513/apache2
    root@aasai:~#
    
    Do you think I can now go ahead and install Courier-IMAP/POP3 now as Till says it is the best to have.

    Thanks Till for your suggesstion.

    Thanks a lot to Falko and team for yet another tutorial.

    I'm sure you can say that this debian sarge one works for Kanotix_RC11 as well. :)))

    - Nandhu.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Sure - but if you don't have much email traffic then your current setup might be sufficient. :)
     
  10. nandhu

    nandhu New Member

    Hi,

    With the Current Step Up without Courier thing.

    I installed the webmail package from ispconfig.org website and I can get to the homepage of the mail login.

    From there when I try to login using my username and password that I created using the ISPConfig system, I get the following error on the login page.
    Code:
    ------------------------------------------------------------------------------------------------------
    
    Login error
    
    You cannot login with the username and password entered.
    
    Please check your username and password and try again.
    
                                  Back
    ------------------------------------------------------------------------------------------------------
    
    And I get the following error message in /var/log/mail.log

    Code:
    Oct 24 19:23:05 aasai ipop3d[7171]: pop3 service init from 127.0.0.1
    Oct 24 19:23:05 aasai ipop3d[7171]: Command stream end of file while reading line user=??? host=localhost.localdomain [127.0.0.1]
    
    Any hint as what is causing this problem?

    Thanks.

    Nandhu.
     
  11. falko

    falko Super Moderator ISPConfig Developer

    You have to use the email address (not the username) and the password.
     
  12. nandhu

    nandhu New Member

    Hi Falko,

    I think I tried username as well, but I cannot really say that now, because I installed courier now :)

    After installing courier my inetd.conf is now fully commented now each and every line including the previous pop3 stuff posted above. And my pop3 was showing offline in ISPConfig, but then I figured to start the following five daemons and it worked.

    courier-authdaemon
    courier-imap
    courier-imap-ssl
    courier-pop
    courier-pop-ssl

    Could you post some instructions as how to get these things and other ISPConfig required services started automatically after a server reboot?. I know its bit of out of scope, but it would be a very useful stuff for me :)

    And now I've got the email working as well. And I tried: [email protected] and it worked straightaway.

    Thanks a lot for your help.

    Nanda.
     
  13. falko

    falko Super Moderator ISPConfig Developer

    Normally these services start automatically at boot time. But to go sure, you can run
    Code:
    update-rc.d courier-pop defaults
    to make courier-pop start at boot time.
     
  14. cyelinek

    cyelinek New Member

    POP3 Service Offline while using Courier POP3/IMAP demons

    Hi Falko,

    I followed your awsome tutorial on Debian 3.1. I have been using ISPConfig for sometime and have not had any problems however, last week my POP3 service went offline since there has been no change to the server and nothing reported in the /var/log/syslog files I'm am at a loss to know what to do. This is my company server so it is vital that I get it up and running again ASAP. I installed Courrier POP3/IMAP with the -SSL option and they both start fine so why would ISP say that there is no POP3 service when its running in the process list ps -A.

    Also, when the server starts up all demons load fine except ISPConfig which is the last one to load. It just hangs while saying: "Starting ISPConfig System..."

    Thanks for all your hard work and for the help.

    Best Regards

    Christopher Yelinek
    Owner Cat 'N Mouse Computers
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    netstat -tap
     
  16. cyelinek

    cyelinek New Member

    Output of Netstat -tap

    Here is my output of netstat -tap:


    tcp 0 0 *:mysql *:* LISTEN 3079/mysqld
    tcp 0 0 *:netbios-ssn *:* LISTEN 4093/smbd
    tcp 0 0 *:sunrpc *:* LISTEN 2464/portmap
    tcp 0 0 *:81 *:* LISTEN 3151/ispconfig_http
    tcp 0 0 gatekeeper.catnm:domain *:* LISTEN 6394/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 6394/named
    tcp 0 0 *:ftp *:* LISTEN 3442/proftpd: (acce
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 6394/named
    tcp 0 0 *:smtp *:* LISTEN 4773/master
    tcp 0 0 *:microsoft-ds *:* LISTEN 4093/smbd
    tcp 0 0 gatekeeper:microsoft-ds 192.168.0.100:3607 ESTABLISHED4108/smbd
    tcp6 0 0 *:imaps *:* LISTEN 3599/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 3583/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 3297/apache2
    tcp6 0 0 *:ssh *:* LISTEN 2997/sshd
    tcp6 0 0 ::1:953 *:* LISTEN 6394/named
    tcp6 0 0 *:smtp *:* LISTEN 4773/master
    tcp6 0 0 *:https *:* LISTEN 3297/apache2
    tcp6 0 148 gatekeeper.catnmous:ssh ::ffff:192.168.0.1:3777 ESTABLISHED4318/0


    I had to bring my server up in Debian 2.6 Recovery mode so not all services may be running.

    Also if I try to start Tomcat the server freezes

    Thanks for your help
     
  17. cyelinek

    cyelinek New Member

    POP3d-ssl/IMAPd-ssl are running

    I wanted to say that

    POP3d-ssl/IMAPd-ssl are running

    Just so you know
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig shows pop3 offline because pop3 is not running, you are just running pop3s. Eiteher you enable pop3 or you ignore that ISPConfig shows that the service is offline.
     
  19. cyelinek

    cyelinek New Member

    POP3/IMAPd's are both running

    It doesn't make a diffrence I tried that already and ISPConfig still shows POP3 offline.
     
  20. cyelinek

    cyelinek New Member

    New netstat -tap

    tcp 0 0 *:mysql *:* LISTEN 3079/mysqld
    tcp 0 0 *:netbios-ssn *:* LISTEN 4093/smbd
    tcp 0 0 *:sunrpc *:* LISTEN 2464/portmap
    tcp 0 0 *:81 *:* LISTEN 3151/ispconfig_http
    tcp 0 0 gatekeeper.catnm:domain *:* LISTEN 6394/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 6394/named
    tcp 0 0 *:ftp *:* LISTEN 3442/proftpd: (acce
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 6394/named
    tcp 0 0 *:smtp *:* LISTEN 4773/master
    tcp 0 0 *:microsoft-ds *:* LISTEN 4093/smbd
    tcp 0 0 gatekeeper:microsoft-ds 192.168.0.100:3607 ESTABLISHED4108/smbd
    tcp6 0 0 *:imaps *:* LISTEN 3599/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 3583/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 7084/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 3297/apache2
    tcp6 0 0 *:ssh *:* LISTEN 2997/sshd
    tcp6 0 0 ::1:953 *:* LISTEN 6394/named
    tcp6 0 0 *:smtp *:* LISTEN 4773/master
    tcp6 0 0 *:https *:* LISTEN 3297/apache2
     

Share This Page