Courier POP3

Discussion in 'Installation/Configuration' started by HiJacker, Nov 14, 2009.

  1. HiJacker

    HiJacker New Member

    Hello guys, I installed ISPconfig more times before, but this time, after i was done with it, pop3 (receiving email) wasnt working, i have no clue where should be the problem.

    Here is file /etc/courier/pop3d
    Code:
    ##VERSION: $Id: pop3d.dist.in,v 1.16 2005/07/05 12:42:51 mrsam Exp $
    #
    # pop3d created from pop3d.dist by sysconftool
    #
    # Do not alter lines that begin with ##, they are used when upgrading
    # this configuration.
    #
    #  Copyright 1998 - 2004 Double Precision, Inc.  See COPYING for
    #  distribution information.
    #
    #  Courier POP3 daemon configuration
    #
    ##NAME: PIDFILE:0
    #
    
    PIDFILE=/var/run/courier/pop3d.pid
    
    ##NAME: MAXDAEMONS:0
    #
    #  Maximum number of POP3 servers started
    #
    
    MAXDAEMONS=40
    
    ##NAME: MAXPERIP:4
    #
    #  Maximum number of connections to accept from the same IP address
    
    MAXPERIP=4
    
    ##NAME: POP3AUTH:1
    #
    # To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
    # variable:
    #
    # POP3AUTH="LOGIN"
    #
    # If you have configured the CRAM-MD5, CRAM-SHA1 or CRAM-SHA256, set POP3AUTH
    # to something like this:
    #
    # POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"
    
    POP3AUTH=""
    
    ##NAME: POP3AUTH_ORIG:1
    #
    # For use by webadmin
    
    POP3AUTH_ORIG="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
    
    ##NAME: POP3AUTH_TLS:1
    #
    # To also advertise SASL PLAIN if SSL is enabled, uncomment the
    # POP3AUTH_TLS environment variable:
    #
    # POP3AUTH_TLS="LOGIN PLAIN"
    
    POP3AUTH_TLS=""
    
    ##NAME: POP3AUTH_TLS_ORIG:0
    #
    # For use by webadmin
    
    POP3AUTH_TLS_ORIG="LOGIN PLAIN"
    
    ##NAME: POP3_PROXY:0
    #
    # Enable proxying.  See README.proxy
    
    POP3_PROXY=0
    
    ##NAME: PROXY_HOSTNAME:0
    #
    # Override value from gethostname() when checking if a proxy connection is
    # required.
    
    # PROXY_HOSTNAME=
    
    ##NAME: PORT:1
    #
    # Port to listen on for connections.  The default is port 110.
    #
    #  Multiple port numbers can be separated by commas.  When multiple port
    #  numbers are used it is possibly to select a specific IP address for a
    #  given port as "ip.port".  For example, "127.0.0.1.900,192.68.0.1.900"
    #  accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
    #  The ADDRESS setting is a default for ports that do not have a specified
    #  IP address.
    
    PORT=110
    
    ##NAME: ADDRESS:0
    #
    # IP address to listen on.  0 means all IP addresses.
    
    ADDRESS=0
    
    ##NAME: TCPDOPTS:0
    #
    # Other couriertcpd(1) options.  The following defaults should be fine.
    #
    
    TCPDOPTS="-nodnslookup -noidentlookup"
    
    ##NAME: LOGGEROPTS:0
    #
    # courierlogger(1) options.
    #
    
    LOGGEROPTS="-name=pop3d"
    
    ##NAME: DEFDOMAIN:0
    #
    # Optional default domain. If the username does not contain the
    # first character of DEFDOMAIN, then it is appended to the username.
    # If DEFDOMAIN and DOMAINSEP are both set, then DEFDOMAIN is appended
    # only if the username does not contain any character from DOMAINSEP.
    # You can set different default domains based on the the interface IP
    # address using the -access and -accesslocal options of couriertcpd(1).
    
    #DEFDOMAIN="@example.com"
    
    ##NAME: POP3DSTART:0
    #
    # POP3DSTART is not referenced anywhere in the standard Courier programs
    # or scripts.  Rather, this is a convenient flag to be read by your system
    # startup script in /etc/rc.d, like this:
    #
    #  . /etc/courier/pop3d
    #  case x$POP3DSTART in
    #  x[yY]*)
    #        /usr/lib/courier/pop3d.rc start
    #        ;;
    #  esac
    #
    # The default setting is going to be NO, until Courier is shipped by default
    # with enough platforms so that people get annoyed with having to flip it to
    # YES every time.
    
    POP3DSTART=YES
    
    ##NAME: MAILDIRPATH:0
    #
    # MAILDIRPATH - directory name of the maildir directory.
    #
    MAILDIRPATH=Maildir
    
    /var/log/mail.log
    Code:
    Nov 14 21:11:26 primary imapd: Connection, ip=[::ffff:91.148.26.137]
    Nov 14 21:11:26 primary imapd: LOGIN, user=adam@crew.sk, ip=[::ffff:91.148.26.137], port=[3909], protocol=IMAP
    Nov 14 21:11:26 primary imapd: DISCONNECTED, user=adam@crew.sk, ip=[::ffff:91.148.26.137], headers=0, body=0, rcvd=77, sent=409, time=0
    Nov 14 21:11:27 primary imapd: Connection, ip=[::ffff:91.148.26.137]
    Nov 14 21:11:27 primary imapd: LOGIN, user=adam@crew.sk, ip=[::ffff:91.148.26.137], port=[3911], protocol=IMAP
    Nov 14 21:11:27 primary imapd: DISCONNECTED, user=adam@crew.sk, ip=[::ffff:91.148.26.137], headers=0, body=0, rcvd=77, sent=409, time=0
    Nov 14 21:12:59 primary postfix/qmgr[1853]: D9B30183E4: from=<tw@ffs.sk>, size=2094, nrcpt=1 (queue active)
    Nov 14 21:12:59 primary postfix/qmgr[1853]: 7FC70183E6: from=<adamlucansky@azet.sk>, size=1942, nrcpt=1 (queue active)
    Nov 14 21:12:59 primary postfix/qmgr[1853]: 8731A183E5: from=<adam@crew.sk>, size=1804, nrcpt=1 (queue active)
    Nov 14 21:12:59 primary maildrop[12031]: Unable to open mailbox.
    Nov 14 21:12:59 primary maildrop[12036]: Unable to open mailbox.
    Nov 14 21:12:59 primary postfix/pipe[12030]: D9B30183E4: to=<wagner@crew.sk>, relay=maildrop, delay=923, delays=922/0.01/0/0.17, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )
    Nov 14 21:12:59 primary postfix/pipe[12033]: 7FC70183E6: to=<adam@crew.sk>, relay=maildrop, delay=541, delays=541/0.04/0/0.2, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )
    Nov 14 21:12:59 primary maildrop[12048]: Unable to open mailbox.
    Nov 14 21:12:59 primary postfix/pipe[12030]: 8731A183E5: to=<adam@crew.sk>, relay=maildrop, delay=580, delays=580/0.23/0/0.05, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )
    Nov 14 21:13:43 primary imapd: Connection, ip=[::ffff:91.148.26.137]
    Nov 14 21:13:43 primary imapd: LOGIN, user=adam@crew.sk, ip=[::ffff:91.148.26.137], port=[3920], protocol=IMAP
    Nov 14 21:13:43 primary imapd: DISCONNECTED, user=adam@crew.sk, ip=[::ffff:91.148.26.137], headers=0, body=0, rcvd=77, sent=409, time=0
    Nov 14 21:13:44 primary imapd: Connection, ip=[::ffff:91.148.26.137]
    Nov 14 21:13:44 primary imapd: LOGIN, user=adam@crew.sk, ip=[::ffff:91.148.26.137], port=[3921], protocol=IMAP
    Nov 14 21:13:45 primary imapd: LOGOUT, user=adam@crew.sk, ip=[::ffff:91.148.26.137], headers=0, body=0, rcvd=96, sent=500, time=1
    Nov 14 21:13:47 primary imapd: Connection, ip=[::ffff:91.148.26.137]
    Nov 14 21:13:47 primary imapd: LOGIN, user=adam@crew.sk, ip=[::ffff:91.148.26.137], port=[3922], protocol=IMAP
    Nov 14 21:13:47 primary imapd: DISCONNECTED, user=adam@crew.sk, ip=[::ffff:91.148.26.137], headers=0, body=0, rcvd=77, sent=409, time=0
    Nov 14 21:13:48 primary imapd: Connection, ip=[::ffff:91.148.26.137]
    Nov 14 21:13:48 primary imapd: LOGIN, user=adam@crew.sk, ip=[::ffff:91.148.26.137], port=[3923], protocol=IMAP
    Nov 14 21:13:48 primary imapd: DISCONNECTED, user=adam@crew.sk, ip=[::ffff:91.148.26.137], headers=0, body=0, rcvd=77, sent=409, time=0
    Nov 14 21:14:33 primary postfix/anvil[11937]: statistics: max connection rate 1/60s for (smtp:213.215.107.141) at Nov 14 21:11:00
    Nov 14 21:14:33 primary postfix/anvil[11937]: statistics: max connection count 1 for (smtp:213.215.107.141) at Nov 14 21:11:00
    Nov 14 21:14:33 primary postfix/anvil[11937]: statistics: max cache size 2 at Nov 14 21:11:13
    Nov 14 21:15:01 primary pop3d: Connection, ip=[::ffff:127.0.0.1]
    Nov 14 21:15:01 primary pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Nov 14 21:15:01 primary imapd: Connection, ip=[::ffff:127.0.0.1]
    Nov 14 21:15:01 primary imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Nov 14 21:15:01 primary postfix/smtpd[12092]: connect from localhost[127.0.0.1]
    Nov 14 21:15:01 primary postfix/smtpd[12092]: lost connection after CONNECT from localhost[127.0.0.1]
    Nov 14 21:15:01 primary postfix/smtpd[12092]: disconnect from localhost[127.0.0.1]
    Nov 14 21:16:01 primary postfix/smtpd[11950]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
    Nov 14 21:16:01 primary postfix/smtpd[11950]: disconnect from localhost[127.0.0.1]
    Nov 14 21:16:14 primary postfix/smtpd[11979]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
    Nov 14 21:16:14 primary postfix/smtpd[11979]: disconnect from localhost[127.0.0.1]
    Nov 14 21:17:59 primary postfix/qmgr[1853]: 6D1D1183E7: from=<adamlucansky@azet.sk>, size=1950, nrcpt=1 (queue active)
    Nov 14 21:17:59 primary postfix/qmgr[1853]: 270AF183E8: from=<adam@crew.sk>, size=1804, nrcpt=1 (queue active)
    Nov 14 21:17:59 primary postfix/qmgr[1853]: 9070A183DE: from=<info@forum-warez.info>, size=2941, nrcpt=1 (queue active)
    Nov 14 21:17:59 primary maildrop[12139]: Unable to open mailbox.
    Nov 14 21:17:59 primary maildrop[12141]: Unable to open mailbox.
    Nov 14 21:17:59 primary postfix/pipe[12138]: 6D1D1183E7: to=<adam@crew.sk>, relay=maildrop, delay=418, delays=418/0.03/0/0.2, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )
    Nov 14 21:17:59 primary postfix/pipe[12140]: 9070A183DE: to=<exidus@crew.sk>, relay=maildrop, delay=8980, delays=8980/0.02/0/0.2, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )
    Nov 14 21:17:59 primary maildrop[12154]: Unable to open mailbox.
    Nov 14 21:17:59 primary postfix/pipe[12138]: 270AF183E8: to=<adam@crew.sk>, relay=maildrop, delay=406, delays=405/0.21/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox. )
    In mail-client, it says like fine, but when i send email from ouside to mailbox, email just disappear. Any ideas please ? Its urgent
     
  2. till

    till Super Moderator

    Thats not a courier problem. The mailbox does not exist or it has wrong permissions.

    Please check if the jobqueue in the ispconfig monitor is empty or if there are any errors in the ispconfig sys log in the monitor.
     
  3. HiJacker

    HiJacker New Member

    Code:
    74012183DA 10161 Fri Nov 13 17:39:20 [email]ndr@xxx.com[/email]
    (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox.)
    [email]xxx@xxx.eu[/email]
    So, how can I fix it ? Im sorry about that i titled this thread wrong, i havent got alot of skills with mailboxes etc.
     
  4. till

    till Super Moderator

    Please answer my questions if we shall be able to help you.

     
  5. HiJacker

    HiJacker New Member

    Syslog is empty

    I cant fix it whatever i do, how I can i completly reinstall packages releated to mails ? With apt, but total reinstall, including configs etc., because aptitude reinstall just replace sys files, not configs, I want to make it like first time I was installing ISPconfig. Thanks
     
  6. till

    till Super Moderator

    1) What exactly did you do before this problem started?
    2) Post the output of:
    ls -la /var/vmail
    3) Have you tried to delete the mailbox and maildomain and then recreate it?
     
  7. HiJacker

    HiJacker New Member

    So, i reinstalled server, after i installed it from revision 1475 , because that one which is in Howtoforge guide doesnt work for me. Everything was fine during installation.

    mailq reply :
    Code:
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
    CB486656402      994 Tue Nov 17 12:47:33  www-data@xxxxx.eu
    (temporary failure. Command output: /usr/bin/maildrop: Unable to open mailbox.)
                                             adam@xxx.com
    
    -- 1 Kbytes in 1 Request.
    ls -la /var/vmail
    Code:
    total 32
    drwxr-xr-x  4 vmail vmail 4096 Nov 17 12:55 .
    drwxr-xr-x 15 root  root  4096 Nov 17 12:44 ..
    -rw-r--r--  1 vmail vmail  220 Aug 23 19:18 .bash_logout
    -rw-r--r--  1 vmail vmail 3187 Aug 23 19:18 .bashrc
    -rw-------  1 vmail vmail 1382 Nov 17 12:45 .mailfilter
    -rw-r--r--  1 vmail vmail  675 Aug 23 19:18 .profile
    drwx------  3 vmail vmail 4096 Nov 17 12:47 mydomain.com
    drwxr-xr-x  2 root  root  4096 Nov 17 12:45 mailfilters
    
    Now i got fresh installed from rev 1475 , and I still cant receive emails, i can only send. This looks like bug, not only my problem.

    Linux primary.xxxx.eu 2.6.26-2-xen-amd64 #1 SMP Sun Jun 21 08:09:04 UTC 2009 x86_64 GNU/Linux
     
  8. till

    till Super Moderator

    You installed from SVN. The SVN versions are untested and not for use on productions sytems. The svn versions are for developers only and may contain bugs or even destroy your serve setup.

    Please remove this version completely and install ISPConfig 3.0.1.6 which definately does not contain bugs in the mail recceiving area.
     
  9. till

    till Super Moderator

    Lets try to find out were your server is confuigured wrong. Which exact perfect setup guide did you use to install sipconfig?
     
  10. HiJacker

    HiJacker New Member

    This one http://www.howtoforge.com/perfect-server-debian-lenny-ispconfig3

    Then which ISPConfig should I install ?
    http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.1.tar.gz Doesnt work for me, when i start installation, it say that cant get version of system or something like that.

    Is there any kind of downgrade or complete reinstall without needed to reinstall Debian?

    //EDIT

    tried php uninstall.php , done, now ill try that 3.0.1.6

    //EDIT2

    doesnt work, im going to reinstall server

    //EDIT3

    when I installed squirrelmail, it said error 500,

    Code:
    Chyba serveru!
    
    Nastala vnitřní chyba a server nebyl schopen dokončit Váš požadavek.
    
    Chybová zpráva
    Premature end of script headers: index.php
    
    Pokud si myslíte, že toto je chyba serveru, kontaktujte, prosím, webmastera.
    Error 500
    88.212.11.114
    Tue Nov 17 13:21:17 2009
    Apache/2.2.14 (Debian) 
     
    Last edited: Nov 17, 2009
  11. till

    till Super Moderator

    Always use the latest released version from ispconfig.org:

    http://www.ispconfig.org/downloads.htm

    The latest released version is 3.0.1.6.

    You dont have to reinstall the complete operating system. Just download ISPConfig 3.0.1.6, go into the install_ispconfig/install/ folder and there execute:

    php uninstall.php

    and the run:

    php install.php to install the new version.
     
  12. HiJacker

    HiJacker New Member

    Done that, but still same errors, anyway, when I was installing squirrelmail, when I visited ip/webmail , it said following :

    Code:
    Chyba serveru!
    
    Nastala vnitřní chyba a server nebyl schopen dokončit Váš požadavek.
    
    Chybová zpráva
    Premature end of script headers: index.php
    
    Pokud si myslíte, že toto je chyba serveru, kontaktujte, prosím, webmastera.
    Error 500
    88.212.11.114
    Tue Nov 17 13:21:17 2009
    Apache/2.2.14 (Debian) 
    I think best solution will be reinstall.
     
  13. till

    till Super Moderator

    If you reinstall, make sure that you copy every command line by line with e.g. putty to execute it on your server. I just installed this tutorial yestaerday without modifying any lines and it works, so the tutorial and the ispconfig 3.0.1.6 release are definatly ok.
     
  14. till

    till Super Moderator

    The error 500 is ok, it depends on how you accessed squirrelmail. This error is no reason for a reinstall and does not indicate that the mail setup is not working. Just look into the apache error log to see why you get this error and what you missed to install that causes this error.
     
  15. HiJacker

    HiJacker New Member

    This error has nothing with it, i know, but thats different problem what i have, in mailq, it say error on everything it receive. I cant even get any email with Windows Mail/Outlook
     

Share This Page