POP3 IMAP CentOS 5.7 x86_64 [ISPConfig 3]

Discussion in 'Installation/Configuration' started by VidalCastillo, Oct 30, 2011.

  1. VidalCastillo

    VidalCastillo New Member

    Hi team,
    great work with all the tutorials you have created so far, keep going.

    I have used the tutorial to install and configure a perfect web server :) running CentOS.
    All is just fine except the mail server, when I check in the ISPConfig 3.0.3.3 Monitor page I see:

    Web-Server: Online
    FTP-Server: Online
    SMTP-Server: Online
    POP3-Server: Offline
    IMAP-Server: Offline
    DNS-Server: Online
    mySQL-Server: Online

    1 - As I am really new, :D please let me know what should I check, post in here so you could help me bring the services up and running.

    2- I have to mention that I am behind a router and I would also have to open some ports, could you please give me a hint which should be forwarded to my LAN IP.

    3- I am using freedns.afraid.org and I have :
    mydomain.com (G) A 89.xxx.xxx.xxx
    mydomain.com (G) MX 10:mail.mydomain.com
    ftp.mydomain.com (G) A 89.xxx.xxx.xxx
    mail.mydomain.com (G) A 89.xxx.xxx.xxx
    www.mydomain.com (G)A 89.xxx.xxx.xxx

    I have also bought the manual, checked the page (24/308) - 3.2.1.3 Installing The Mail Server does not help me too much.

    Huge thanks in advance for your help

    PS:
    As I see, my questions are also related to [ISPConfig 3], so please feel fre to move my post to the appropriate section.
     
    Last edited: Oct 30, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?

    20,21 - FTP
    22 - SSH
    25 - SMTP
    53 (TCP and UDP!) - DNS
    80 - HTTP
    110 - POP3
    143 - IMAP
    443 - HTTPS
    993 - IMAPS
    995 - POP3S
     
  3. VidalCastillo

    VidalCastillo New Member

    Thank you Falko,
    here is the requested output:
    Code:
    [root@bulldozer ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 bulldozer.com:10024         *:*                         LISTEN      2670/amavisd (maste
    tcp        0      0 bulldozer.com:10025         *:*                         LISTEN      2739/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      2620/mysqld
    tcp        0      0 bulldozer.com:dyna-access   *:*                         LISTEN      2535/clamd
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      2195/portmap
    tcp        0      0 *:webcache                  *:*                         LISTEN      2798/httpd
    tcp        0      0 *:http                      *:*                         LISTEN      2798/httpd
    tcp        0      0 *:tproxy                    *:*                         LISTEN      2798/httpd
    tcp        0      0 *:721                       *:*                         LISTEN      2235/rpc.statd
    tcp        0      0 *:ftp                       *:*                         LISTEN      2814/pure-ftpd (SER
    tcp        0      0 bulldozer.com:domain        *:*                         LISTEN      2167/named
    tcp        0      0 bulldozer.com:domain        *:*                         LISTEN      2167/named
    tcp        0      0 *:ssh                       *:*                         LISTEN      2517/sshd
    tcp        0      0 *:smtp                      *:*                         LISTEN      2739/master
    tcp        0      0 bulldozer.com:rndc          *:*                         LISTEN      2167/named
    tcp        0      0 *:https                     *:*                         LISTEN      2798/httpd
    tcp        0   1924 bulldozer.com:ssh           192.168.230.254:catchpole   ESTABLISHED 2666/0
    [root@bulldozer ~]#
    
    I have just added these 2, all the other were already in my router configuration.
    993 - IMAPS
    995 - POP3S

    I have posted an extract of this file:
    more var/log/maillog
    Code:
    Oct 30 10:09:46 bulldozer sendmail[6772]: p9U99jHH006772: Authentication-Warning: bulldozer.pro: apache set sender to [email protected] using -f
    Oct 30 10:09:46 bulldozer sendmail[6772]: p9U99jHH006772: from=[email protected], size=8137, class=0, nrcpts=1, msgid=<[email protected]>, relay=apache@localhost
    Oct 30 10:09:46 bulldozer postfix/smtpd[6775]: warning: SASL: Connect to private/auth failed: No such file or directory
    Oct 30 10:09:46 bulldozer postfix/smtpd[6775]: fatal: no SASL authentication mechanisms
    Oct 30 10:09:47 bulldozer sendmail[6772]: p9U99jHH006772: to=Alin Mataselu <[email protected]>, ctladdr=[email protected] (48/48), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=38137, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connectionreset by [127.0.0.1]
    Oct 30 10:09:47 bulldozer postfix/master[2734]: warning: process /usr/libexec/postfix/smtpd pid 6775 exit status 1
    Oct 30 10:09:47 bulldozer postfix/master[2734]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Oct 30 10:10:40 bulldozer sendmail[6852]: p9U9Aemj006852: Authentication-Warning: bulldozer.pro: apache set sender to [email protected] using -f
    Oct 30 10:10:40 bulldozer sendmail[6852]: p9U9Aemj006852: from=[email protected], size=8136, class=0, nrcpts=1, msgid=<[email protected]>, relay=apache@localhost
    Oct 30 10:10:47 bulldozer postfix/smtpd[6856]: warning: SASL: Connect to private/auth failed: No such file or directory
    Oct 30 10:10:47 bulldozer postfix/smtpd[6856]: fatal: no SASL authentication mechanisms
    Oct 31 18:35:02 bulldozer postfix/smtpd[23957]: fatal: no SASL authentication mechanisms
    Oct 31 18:35:03 bulldozer postfix/master[2739]: warning: process /usr/libexec/postfix/smtpd pid 23957 exit status 1
    Oct 31 18:35:03 bulldozer postfix/master[2739]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    

    Please let me know what other details I should provide in order for you to be able to help me with my issue.

    Thank you in advance
     
    Last edited: Oct 31, 2011
  4. falko

    falko Super Moderator ISPConfig Developer

    There's no POP3/IMAP daemon running. Please start Dovecot.
     
  5. VidalCastillo

    VidalCastillo New Member

    Hi falko,

    I have done this:
    Code:
    [root@bulldozer ~]# /etc/init.d/dovecot start
    Starting Dovecot Imap: If you have trouble with authentication failures,
    enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
    This message goes away after the first successful login.
    Error: socket() failed: Address family not supported by protocol
    Fatal: listen(::, 143) failed: Address family not supported by protocol
                                                               [FAILED]
    [root@bulldozer ~]#
    
    vi /etc/dovecot.conf
    Code:
    ... and added the line listen = *:
    [CODE]
    [...]
    #listen = *, [::]
    listen = *
    [...]
    
    [/CODE]
    after reboot, this is how it looks
    Code:
    [root@bulldozer ~]# 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      2651/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      2651/dovecot
    tcp        0      0 bulldozer.com:10024         *:*                         LISTEN      2674/amavisd (maste
    tcp        0      0 bulldozer.com:10025         *:*                         LISTEN      2743/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      2619/mysqld
    tcp        0      0 *:pop3                      *:*                         LISTEN      2651/dovecot
    tcp        0      0 bulldozer.com:dyna-access   *:*                         LISTEN      2534/clamd
    tcp        0      0 *:imap                      *:*                         LISTEN      2651/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      2194/portmap
    tcp        0      0 *:webcache                  *:*                         LISTEN      2774/httpd
    tcp        0      0 *:http                      *:*                         LISTEN      2774/httpd
    tcp        0      0 *:720                       *:*                         LISTEN      2234/rpc.statd
    tcp        0      0 *:tproxy                    *:*                         LISTEN      2774/httpd
    tcp        0      0 *:ftp                       *:*                         LISTEN      2790/pure-ftpd (SER
    tcp        0      0 bulldozer.com:domain        *:*                         LISTEN      2166/named
    tcp        0      0 bulldozer.com:domain        *:*                         LISTEN      2166/named
    tcp        0      0 *:ssh                       *:*                         LISTEN      2516/sshd
    tcp        0      0 *:smtp                      *:*                         LISTEN      2743/master
    tcp        0      0 bulldozer.com:rndc          *:*                         LISTEN      2166/named
    tcp        0      0 *:https                     *:*                         LISTEN      2774/httpd
    tcp        0      0 bulldozer.com:60442         bulldozer.com:mysql         ESTABLISHED 2994/smtpd
    tcp        0      0 bulldozer.com:60443         bulldozer.com:mysql         ESTABLISHED 2994/smtpd
    tcp        0      0 bulldozer.com:60440         bulldozer.com:mysql         ESTABLISHED 2995/proxymap
    tcp        0      0 bulldozer.com:60441         bulldozer.com:mysql         ESTABLISHED 2998/trivial-rewrit
    tcp        0      0 bulldozer.com:60444         bulldozer.com:mysql         ESTABLISHED 2994/smtpd
    tcp        0      0 bulldozer.com:60439         bulldozer.com:mysql         ESTABLISHED 2995/proxymap
    tcp        0      0 bulldozer.com:mysql         bulldozer.com:60444         ESTABLISHED 2619/mysqld
    tcp        0      0 bulldozer.com:mysql         bulldozer.com:60440         ESTABLISHED 2619/mysqld
    tcp        0      0 bulldozer.com:mysql         bulldozer.com:60441         ESTABLISHED 2619/mysqld
    tcp        0      0 bulldozer.com:mysql         bulldozer.com:60442         ESTABLISHED 2619/mysqld
    tcp        0      0 bulldozer.com:mysql         bulldozer.com:60443         ESTABLISHED 2619/mysqld
    tcp        0      0 bulldozer.com:mysql         bulldozer.com:60439         ESTABLISHED 2619/mysqld
    tcp        0      0 bulldozer.com:smtp          info3.prestashop.com:54522  TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:21374 TIME_WAIT   -
    tcp        0   4444 bulldozer.com:ssh           deibp9eh1--blueice4n2:60524 ESTABLISHED 3005/0
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:22131 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:41683 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:46823 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:34699 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:31626 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:49540 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:tsilb TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2.:4793 TIME_WAIT   -
    tcp        0      0 bulldozer.com:webcache      deibp9eh1--blueice4n2:33714 TIME_WAIT   -
    [root@bulldozer ~]#
    
    in Monitor tab of ISPConfit it is the same status:

    POP3-Server: Offline
    IMAP-Server: Offline

    Please let me know what other action I can try now
     
  6. VidalCastillo

    VidalCastillo New Member

    Hi there,

    is there any hint in regards of my problem? :)

    Thank you in advance
     
  7. falko

    falko Super Moderator ISPConfig Developer

    netstat output is ok. Are POP3 and IMAP still shown as offline? If so, what are the outputs of
    Code:
    ifconfig 
    and
    Code:
    getenforce
    ?
     
  8. VidalCastillo

    VidalCastillo New Member

    Hi there,

    here are the requested details:

    Code:
    root@bulldozer ~]# ifconfig
    eth0      Link encap:Ethernet  HWaddr 6C:62:6D:E0:E9:5D
              inet addr:192.168.230.109  Bcast:192.168.230.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:196004 errors:0 dropped:0 overruns:0 frame:0
              TX packets:155444 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:83785370 (79.9 MiB)  TX bytes:96543931 (92.0 MiB)
              Interrupt:233 Base address:0x6000
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:21913 errors:0 dropped:0 overruns:0 frame:0
              TX packets:21913 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:1761472 (1.6 MiB)  TX bytes:1761472 (1.6 MiB)
    
    [root@bulldozer ~]#
    
    Code:
    [root@bulldozer ~]# getenforce
    Disabled
    [root@bulldozer ~]#
    
    Than you in advance
    
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Are POP3 and IMAP still shown as offline?

    What's the output of
    Code:
    iptables -L
    ?
     
  10. sharktech

    sharktech New Member

    i also have this error im at the dovecot stage now trying to get it to run. attached is my error and iptables-L and getenforce
     

    Attached Files:

  11. sharktech

    sharktech New Member


    APologies - ingore me instead of putting listen = * i uncommented the line above - I know im a muppet :D
     
  12. sharktech

    sharktech New Member

    and another problem now - im unable to install getmail says its not available
     
  13. falko

    falko Super Moderator ISPConfig Developer

  14. sharktech

    sharktech New Member

  15. falko

    falko Super Moderator ISPConfig Developer

    I also cannot download the repo files right now - hopefully this is just a temporary problem.
     
  16. sharktech

    sharktech New Member

  17. falko

    falko Super Moderator ISPConfig Developer

    The repo seems to be working again! :)
     

Share This Page