Fedora 4 TPS mail problem

Discussion in 'HOWTO-Related Questions' started by Hagforce, Mar 13, 2006.

  1. Hagforce

    Hagforce New Member

    I used the Fedora 4 TPS Howto, and all worked perfeckt until right now.
    Suddenly dovecot won`t start, I get a message that the port i already in use.

    This is the services on my system:
    Code:
    [root@ ~]# service --status-all
    acpid (pid 2413) is running...
    anacron is stopped
    Nightly apt update is disabled.
    atd (pid 2726) is running...
    auditd (pid 2226) is running...
    Configured Mount Points:
    ------------------------
    /usr/sbin/automount --timeout=60 /net program /etc/auto.net
    
    Active Mount Points:
    --------------------
    /usr/sbin/automount --timeout=60 /net program /etc/auto.net
    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination                                                                                                                                
    
    Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination                                                                                                                                
    
    Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination                                                                                                                                
    hcid is stopped
    sdpd is stopped
    cpuspeed is stopped
    crond (pid 2685) is running...
    cupsd (pid 2421) is running...
    dc_client is stopped
    dc_server is stopped
    cat: /var/run/dhcdbd.pid: No such file or directory
    Device not specified in /etc/sysconfig/diskdump
    dovecot is stopped
    gpm (pid 2663) is running...
    hald (pid 2753) is running...
    Usage: /etc/init.d/hidd {start|stop|restart|reload|condrestart}
    httpd (pid 2949 2948 2947 2946 2945 2944 2943 2942 2904) is running...
    Firewall is stopped.
    irattach is stopped
    Usage: /etc/init.d/ispconfig_server {start|stop|restart}
    mdmpd is stopped
    mDNSResponder (pid 2405) is running...
    dbus-daemon (pid 2744) is running...
    mysqld (pid 2565) is running...
    number of zones: 9
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    recursive clients: 0/1000
    tcp clients: 0/100
    server is up and running
    Server address not specified in /etc/sysconfig/netdump
    netplugd is stopped
    Configured devices:
    lo eth0 eth1
    Currently active devices:
    lo eth0 eth1
    NetworkManager is stopped
    NetworkManagerDispatcher is stopped
    Shutting down NFS mountd: rpc.mountd is stopped
    nfsd is stopped
    rpc.rquotad is stopped
    rpc.statd (pid 2213) is running...
    nifd (pid 2375) is running...
    nscd is stopped
    ntpd is stopped
    portmap (pid 2196) is running...
    master (pid 2976) is running...
    proftpd (pid 3021) is running...
    Process accounting is disabled.
    rdisc is stopped
    rpc.idmapd (pid 2256) is running...
    saslauthd (pid 2737 2736 2735 2734 2733) is running...
    sendmail is stopped
    smbd is stopped
    nmbd is stopped
    spamd (pid 2676 2675 2674 2673 2672 2655) is running...
    squid is stopped
    squid: ERROR: No running copy
    sshd (pid 3251 2464) is running...
    syslogd (pid 2125) is running...
    klogd (pid 2127) is running...
    tux is stopped
    winbindd is stopped
    xfs (pid 2713) is running...
    xinetd (pid 2472) is running...
    ypbind is stopped
    Nightly yum update is disabled.
    
    Wich service is interfearing with Dovecot?

    (might be serveral services that shouldn`t be running now, I`ve played around abit)
     
    Last edited: Mar 14, 2006
  2. falko

    falko Super Moderator Howtoforge Staff

    Please post the output of
    Code:
    netstat -tap
     
  3. Hagforce

    Hagforce New Member

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:imaps                     *:*                         LISTEN      2473/xinetd
    tcp        0      0 *:pop3s                     *:*                         LISTEN      2473/xinetd
    tcp        0      0 *:mysql                     *:*                         LISTEN      2566/mysqld
    tcp        0      0 *:pop2                      *:*                         LISTEN      2473/xinetd
    tcp        0      0 *:pop3                      *:*                         LISTEN      2473/xinetd
    tcp        0      0 www.xxx.xxx:783              *:*                         LISTEN      2656/spamd.pid
    tcp        0      0 *:imap                      *:*                         LISTEN      2473/xinetd
    tcp        0      0 *:55567                     *:*                         LISTEN      2214/rpc.statd
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      2197/portmap
    tcp        0      0 *:81                        *:*                         LISTEN      2883/ispconfig_http
    tcp        0      0 *:ftp                       *:*                         LISTEN      3022/proftpd: (acce
    tcp        0      0 static47.xxxx.co:domain *:*                         LISTEN      3003/named
    tcp        0      0 static48.xxxx.co:domain *:*                         LISTEN      3003/named
    tcp        0      0 www.xxx.xx:domain           *:*                         LISTEN      3003/named
    tcp        0      0 www.xxx.xx:ipp              *:*                         LISTEN      2422/cupsd
    tcp        0      0 www.xxx.xx:5335             *:*                         LISTEN      2406/mDNSResponder
    tcp        0      0 www.xxx.xx:rndc             *:*                         LISTEN      3003/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      2977/master
    tcp        0      0 *:http                      *:*                         LISTEN      2905/httpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      2465/sshd
    tcp        0      0 ::1:rndc                    *:*                         LISTEN      3003/named
    tcp        0      0 *:https                     *:*                         LISTEN      2905/httpd
    tcp        0   2892 static48.xxx.com:ssh   static67.xxxx.com:60074 ESTABLISHED 3292/0
    
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Ok, please post the output of
    Code:
    ls -la /etc/xinetd.d/
     
  5. Hagforce

    Hagforce New Member

    Here it is:

    Code:
    total 112
    drwxr-xr-x   2 root root  4096 Mar 13 15:54 .
    drwxr-xr-x  78 root root 12288 Mar 13 18:08 ..
    -rw-r--r--   1 root root   563 Mar  8  2005 chargen
    -rw-r--r--   1 root root   580 Mar  8  2005 chargen-udp
    -rw-r--r--   1 root root   523 Aug 23  2005 cvs
    -rw-r--r--   1 root root   419 Mar  8  2005 daytime
    -rw-r--r--   1 root root   438 Mar  8  2005 daytime-udp
    -rw-r--r--   1 root root   341 Mar  8  2005 echo
    -rw-r--r--   1 root root   360 Mar  8  2005 echo-udp
    -rw-r--r--   1 root root   323 Jun 30  2005 eklogin
    -rw-r--r--   1 root root   326 Jun 30  2005 gssftp
    -rw-r--r--   1 root root   367 Mar 13 15:47 imap
    -rw-r--r--   1 root root   362 Mar 13 15:47 imaps
    -rw-r--r--   1 root root   450 Mar 13 15:47 ipop2
    -rw-r--r--   1 root root   356 Mar 13 13:44 ipop3
    -rw-r--r--   1 root root   310 Jun 30  2005 klogin
    -rw-r--r--   1 root root   323 Jun 30  2005 krb5-telnet
    -rw-r--r--   1 root root   308 Jun 30  2005 kshell
    -rw-r--r--   1 root root   332 Mar 13 15:54 pop3s
    -rw-r--r--   1 root root   317 May 17  2005 rsync
    -rw-r--r--   1 root root   497 Mar  8  2005 time
    -rw-r--r--   1 root root   518 Mar  8  2005 time-udp
    -rw-r-----   1 root root   405 Aug  2  2005 xproftpd
    
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Ok, please open /etc/xinetd.d/imap, /etc/xinetd.d/imaps, /etc/xinetd.d/ipop2 and /etc/xinetd.d/ipop3 and put

    Code:
    disable = yes
    into each of them. Then do this:

    Code:
    /etc/init.d/xinetd restart
    /etc/init.d/dovecot restart
     
  7. Hagforce

    Hagforce New Member

    When I try to restart Dovecot I get

    Code:
    Stopping Dovecot Imap:                                     [FAILED]
    Starting Dovecot Imap: Fatal: listen(995) failed: Address already in use
                                                               [FAILED]
    
    The Netstat -tap showes

    Code:
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:pop3s                     *:*                         LISTEN      2472/xinetd
    tcp        0      0 *:mysql                     *:*                         LISTEN      2565/mysqld
    tcp        0      0 *:33358                     *:*                         LISTEN      2214/rpc.statd
    tcp        0      0 www.xxx.xx:783              *:*                         LISTEN      2655/spamd.pid
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      2196/portmap
    tcp        0      0 *:81                        *:*                         LISTEN      2884/ispconfig_http
    tcp        0      0 *:ftp                       *:*                         LISTEN      3024/proftpd: (acce
    tcp        0      0 static47.xxx.xxx:domain *:*                         LISTEN      3004/named
    tcp        0      0 static48.xxx.xxx:domain *:*                         LISTEN      3004/named
    tcp        0      0 www.xxx.xx:domain           *:*                         LISTEN      3004/named
    tcp        0      0 www.xxx.xx:ipp              *:*                         LISTEN      2421/cupsd
    tcp        0      0 www.xxx.xx:5335             *:*                         LISTEN      2405/mDNSResponder
    tcp        0      0 www.xxx.xx:rndc             *:*                         LISTEN      3004/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      2978/master
    tcp        0      0 *:http                      *:*                         LISTEN      2906/httpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      2464/sshd
    tcp        0      0 localhost:rndc              *:*                         LISTEN      3004/named
    tcp        0      0 *:https                     *:*                         LISTEN      2906/httpd
    tcp        0   2072 static48.xxxx.xx:ssh   s164173.xxx.xxx.:1563 ESTABLISHED 2698/0
    
    And the ls -la /etc/xinetd.d/ showes

    Code:
    total 112
    drwxr-xr-x   2 root root  4096 Mar 13 15:54 .
    drwxr-xr-x  78 root root 12288 Mar 14 10:07 ..
    -rw-r--r--   1 root root   563 Mar  8  2005 chargen
    -rw-r--r--   1 root root   580 Mar  8  2005 chargen-udp
    -rw-r--r--   1 root root   523 Aug 23  2005 cvs
    -rw-r--r--   1 root root   419 Mar  8  2005 daytime
    -rw-r--r--   1 root root   438 Mar  8  2005 daytime-udp
    -rw-r--r--   1 root root   341 Mar  8  2005 echo
    -rw-r--r--   1 root root   360 Mar  8  2005 echo-udp
    -rw-r--r--   1 root root   323 Jun 30  2005 eklogin
    -rw-r--r--   1 root root   326 Jun 30  2005 gssftp
    -rw-r--r--   1 root root   368 Mar 14 10:00 imap
    -rw-r--r--   1 root root   363 Mar 14 10:01 imaps
    -rw-r--r--   1 root root   451 Mar 14 10:02 ipop2
    -rw-r--r--   1 root root   357 Mar 14 10:03 ipop3
    -rw-r--r--   1 root root   310 Jun 30  2005 klogin
    -rw-r--r--   1 root root   323 Jun 30  2005 krb5-telnet
    -rw-r--r--   1 root root   308 Jun 30  2005 kshell
    -rw-r--r--   1 root root   332 Mar 13 15:54 pop3s
    -rw-r--r--   1 root root   317 May 17  2005 rsync
    -rw-r--r--   1 root root   497 Mar  8  2005 time
    -rw-r--r--   1 root root   518 Mar  8  2005 time-udp
    -rw-r-----   1 root root   405 Aug  2  2005 xproftpd
    
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add "disable = yes" also in /etc/xinetd.d/pop3s

    Then restart xinetd, wait about 30 seconds and then restart dovecot.
     
  9. Hagforce

    Hagforce New Member

    Thank you so mutch guys!

    Now it works.

    I actualy think I understood the problem to, after you explained it.

    Thanks again.
     
  10. Hagforce

    Hagforce New Member

    I want to change the IP adress on the server, will it be a problem?
    Do I have to change the IP somewhere alse than in the ifconf file.....

    I see that there are some references to the ip adress in ispconfig.


    Just wanted to be sure before I change something :)
     
  11. falko

    falko Super Moderator Howtoforge Staff

  12. Hagforce

    Hagforce New Member

    So I have to change

    /etc/sysconfig/network-scripts/ifcfg-eth0
    /etc/sysconfig/network-scripts/ifcfg-eth1
    /etc/sysconfig/networkng/devices/ifcfg-eth0
    /etc/sysconfig/networkng/devices/ifcfg-eth1
    /var/named/chroot/var/named/etc files
    /etc/proftpd_ispconfig.conf

    Where is the Vhosts_ispconfig.conf file?

    Anything alse on the fedora?
    Or will the changing of ipadresses just mess things up?
     
  13. falko

    falko Super Moderator Howtoforge Staff

    It depends on your distribution. It might be in /etc/httpd/vhosts, /etc/apache/vhosts, /etc/apache2/vhosts,...

    Not if you change the IP address everywhere. :p
     
  14. Al1937

    Al1937 New Member

    Dovecot Imap Fatal listen (995) failed address already in use

    I am trying to setup Centos 4.8 Ispconfig 2

    rpc.statd is using port 995

    Dovecot Imap fails.

    How can I correct this?

    Ps: how do I get the "code" boxes to work, all I can do is copy and past the results for file such as cat etc/dovecot.conf
     

Share This Page