Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Thread: Mail delivered for a while then simply queued

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Posts
    51
    Rep Power
    10

    Default Mail delivered for a while then simply queued

    Hi,

    I'm running tests on a multi-box setup (1xLDAP, 1xSMTP, 1xMailstore) now to spread the load a little. I'm sending about an avg of 5 messages every 10 seconds, from 5k to 14mb across about 10 users.

    All is fine for a while and mail is delivered as expected. But then it simply seems to be queued and held in the active postfix queue (currently sitting with ~1100 messages in it and growing all the time).

    The load on the SMTP box is sitting at :
    Code:
    $> uptime
     12:00:58 up  1:39,  3 users,  load average: 0.26, 0.42, 0.46
    
    $> free
                 total       used       free     shared    buffers     cached
    Mem:        514484     499396      15088          0      23976     267316
    -/+ buffers/cache:     208104     306380
    Swap:      1048568        232    1048336
    The load on the other two is very low. /var/log/zimbra.log on the smtp box is simply showing this for each new message :
    Code:
    Feb 17 12:02:45 p317-02 postfix/qmgr[10768]: 920C83788D6: from=<root@xxxxx>, size=5087, nrcpt=1 (queue active)
    Feb 17 12:02:45 p317-02 sendmail[4090]: k1HC2jJm004090: to=user@xxxxx, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=34619, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 920C83788D6)
    Feb 17 12:02:45 p317-02 postfix/smtpd[2843]: disconnect from localhost.localdomain[127.0.0.1]
    Running /opt/zimbra/postfix/sbin/postqueue -f doesn't seem to do anything. There have been no mail deliveries to any of the users for an hour at least.

    All the boxes are regular CentOS 4.2, no VM's etc.

    Edit: about 20 or so messages were just delivered to each user, but 1400 are now in the active queue....
    Last edited by billybofh; 02-17-2006 at 05:15 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    What does /opt/zimbra/log/zimbra.log say on the mail store host. Can you take a thread dump of tomcat so see if LMTP is processing mail?

    Can you telnet to 7025 from the MTA (postfix) box to the mailstore?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Sep 2005
    Posts
    51
    Rep Power
    10

    Default

    The zimbra.log on the mailstore simply has :
    Code:
    Feb 17 14:12:03 xxxx zimbramon[10959]: 10959:info: 2006-02-17 14:12:01, ST
    ATUS: xxxxx: logger: Running
    Feb 17 14:12:03 xxxxxx zimbramon[10959]: 10959:info: 2006-02-17 14:12:01, ST
    ATUS: xxxxxx: mailbox: Running
    Feb 17 14:13:03 xxxxx zimbramon[11455]: 11455:info: 2006-02-17 14:13:01, ST
    ATUS: xxxxxx: logger: Running
    Feb 17 14:13:03 xxxxx zimbramon[11455]: 11455:info: 2006-02-17 14:13:01, ST
    ATUS: xxxxx: mailbox: Running
    Feb 17 14:14:03 xxxxx zimbramon[11801]: 11801:info: 2006-02-17 14:14:01, ST
    ATUS: xxxxxx: logger: Running
    If I had any idea how to do a thread-dump of tomcat I would

    I can telnet ok from the smtp -> mailstore on port 7025. The mail does slowly trickly through. ~20 messages in an hour. I stopped the test once > 3000 messages were queued on the smtp server with no deliveries for about an hour....

  4. #4
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    kill -QUIT <tomcat pid>

    This will dump thread stacks to /opt/zimbra/tomcat/logs/catalina.out
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  5. #5
    Join Date
    Sep 2005
    Posts
    51
    Rep Power
    10

    Default

    Dump attached.
    Attached Files Attached Files

  6. #6
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    These threads all look idle. Are you sure it was locked up and not processing mail at this time? Are you running the GA version that has the fix for the number of active amavis threads.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  7. #7
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    sasl problem - you're probably finding the wrong version of the library. ldd /opt/zimbra/postfix/libexec/master will show which one you're getting. Fix is to mod /etc/ld.so.conf and run ldconfig. Covered elsewhere in the forums.

    ssl problem - it looks like sendmail is trying to deliver, but postfix wants to use ssl - is sendmail rejecting postfix's cert, since it's self-signed? Can you add the CA to sendmail's CA path? (Not sure how to do this). Cleaning up and recreating the certs is covered in the forums. You can allow plaintext auth in postfix, it's in the admin console.

  8. #8
    Join Date
    Sep 2005
    Posts
    51
    Rep Power
    10

    Default

    Hi,

    An ldd shows me :
    Code:
    # ldd /opt/zimbra/postfix/libexec/master
            libpcre.so.0 => /lib/libpcre.so.0 (0x00310000)
            libldap-2.2.so.7 => /opt/zimbra/lib/libldap-2.2.so.7 (0x0059e000)
            liblber-2.2.so.7 => /opt/zimbra/lib/liblber-2.2.so.7 (0x0032b000)
            libz.so.1 => /usr/lib/libz.so.1 (0x0033b000)
            libm.so.6 => /lib/tls/libm.so.6 (0x00111000)
            libsasl2.so.2 => /opt/zimbra/cyrus-sasl/lib/libsasl2.so.2 (0x003d6000)
            libpthread.so.0 => /lib/tls/libpthread.so.0 (0x0035d000)
            libssl.so.4 => /lib/libssl.so.4 (0x005e0000)
            libcrypto.so.4 => /lib/libcrypto.so.4 (0x00461000)
            libnsl.so.1 => /lib/libnsl.so.1 (0x003b6000)
            libresolv.so.2 => /lib/libresolv.so.2 (0x003a1000)
            libc.so.6 => /lib/tls/libc.so.6 (0x001e4000)
            /lib/ld-linux.so.2 (0x001cb000)
            libdl.so.2 => /lib/libdl.so.2 (0x00134000)
            libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00138000)
            libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0014c000)
            libcom_err.so.2 => /lib/libcom_err.so.2 (0x0034d000)
            libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x0036f000
    Which looks like I'm getting the correct sasl.

    Clearing up the certs seems to mostly assume I'm running a single box. As I'm running 3 is the process different? Most searches for it return comments about searching the forums as it's already been covered....

  9. #9
    Join Date
    Sep 2005
    Posts
    51
    Rep Power
    10

    Default

    I've done a completely fresh install on the 3 machines (clean OS, clean zimbra install) and am immediately gettting this on the MTA box :

    Code:
    Feb 21 13:08:13 xxxxx amavis[3829]: (03829-01) Checking: B72yuE2m4xSD [127.0.0.1] <root@xxxxxx> -> <user1@xxxxxx>
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: initializing the server-side TLS engine
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: warning: cannot get certificate from file /opt/zimbra/conf/smtpd.crt
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: warning: TLS library problem: 12454:error:02001002:system library:fopen:No such file or directory:bss_file.c:259:fopen('/opt/zimbra/conf/smtpd.crt','r'):
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: warning: TLS library problem: 12454:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:261:
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: warning: TLS library problem: 12454:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:758:
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: cannot load RSA certificate and key data
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: connect from localhost.localdomain[127.0.0.1]
    Feb 21 13:08:13 xxxxxx postfix/smtpd[12454]: 619FDB7F22: client=localhost.localdomain[127.0.0.1]
    This is with the same 3 machine setup (1xLDAP, 1xMTA, 1xMailstore) running zcs-NETWORK-3.0.0_GA_156.RHEL4 on CentOS 4 (server install, web & samba de-selected, yum update & yum install of the dependancy rpms - reboot. No vm's or anything else strange). I guess the installer script is missing something. I'd rather not mess around with the install/cert files until I hear back a suggestion as I don't want to potentially alter anything from the install.

  10. #10
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default certs

    On the mta:
    zmcreateca
    zmcreatecert
    zmcertinstall mta cert_path key_path (cert path and key path will be under /opt/zimbra/ssl/ssl)

    On the ldap host:
    zmcreateca
    zmcreatecert

    on the mailstore:
    zmcreateca
    zmcreatecert
    zmcertinstall mailbox

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 02:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 09:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 04:34 PM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •