I have just migrated an installation from: zcs-6.0.4_GA_2038.DEBIAN5.20091214191015
to: zcs-6.0.4_GA_2038.DEBIAN5_64.20091214195434

.

Everything is ok except from receiving external emails.
Once I start the services I can receive external emails for about 5 minutes or so and then it stops receiving external emails and so when you sent an email to my zimbra accounts you get a 554 error.

I already had this problem in the previous installation and I thought that the solution for this was to uncheck TLS autenthication in MTA tab in general setup.

But it seems it is not.

Currently I am using this special setup:
Code:
zmlocalconfig -e zmmtaconfig_interval=3600
zmlocalconfig -e zmstat_interval=15000
zmlocalconfig -e mailboxd_java_heap_memory_percent=10
zmlocalconfig -e mailboxd_java_heap_new_size_percent=10

zmlocalconfig -e mailboxd_java_options="-server -Djava.awt.headless=true -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:PermSize=128m \
-XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1"

zmlocalconfig -e ldap_common_threads=8
zmlocalconfig -e ldap_common_toolthreads=4
zmlocalconfig -e ldap_db_cachesize=5000
zmlocalconfig -e ldap_db_idlcachesize=5000
zmlocalconfig -e ldap_db_dncachesize=0
zmprov mcf zimbraMessageCacheSize 5000
in order not to have RAM problems.

I have also disabled antivirus and antispam services.

Currently there is about 800 MB free RAM out of 2 GB RAM.

I suppose that the problem comes from the java heap. I suppose that there some java heap settings for some of the zimbra services (apart from the mailboxd setting) but, somehow, it is not documented where they can be changed.

Here there is my zmdumpenv output (11.22.33.44 is not my ip, domain.com is the domain where the machine is, and zimbra.cumulus.lan is a fake domain that it is resolved by a dns server (bind) which lives in the same machine.

Code:
 
----------------                
20100328001357                  
----------------                
uid=1002(zimbra) gid=1002(zimbra) grupos=4(adm),5(tty),1002(zimbra),1003(postfix)
----------------                                                                 
Linux myhostname 2.6.24-9-pve #1 SMP PREEMPT Tue Nov 17 09:34:41 CET 2009 x86_64 GNU/Linux                                                                                   
----------------                                                                     
myhostname                                                                              
----------------                                                                     
zimbra.cumulus.lan                                                                   
----------------                                                                     
zimbra.cumulus.lan      A       11.22.33.44                                       
----------------                                                                     
DEBIAN5_64                                                                           
----------------                                                                     
S.ficheros          Tamaño Usado  Disp Uso% Montado en                               
/dev/simfs             20G  7,8G   13G  39% /                                        
tmpfs                 5,9G     0  5,9G   0% /lib/init/rw                             
tmpfs                 5,9G     0  5,9G   0% /dev/shm                                 
----------------                                                                     
lo        Link encap:Local Loopback                                                  
          inet addr:127.0.0.1  Mask:255.0.0.0                                        
          inet6 addr: ::1/128 Scope:Host                                             
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                                   
          RX packets:216264 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:216264 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:0                                                  
          RX bytes:68970294 (65.7 MiB)  TX bytes:68970294 (65.7 MiB)                 

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255  
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1                 
          RX packets:44199 errors:0 dropped:0 overruns:0 frame:0                     
          TX packets:41870 errors:0 dropped:0 overruns:0 carrier:0                   
          collisions:0 txqueuelen:0                                                  
          RX bytes:6906971 (6.5 MiB)  TX bytes:30614271 (29.1 MiB)                   

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:11.22.33.44  P-t-P:11.22.33.44  Bcast:0.0.0.0  Mask:255.255.255.255                                                                             
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1                 

----------------
/opt/zimbra/bin/zmdumpenv: line 47: rpm: command not found
----------------                                          
total 180                                                 
lrwxrwxrwx  1 root   root     29 mar 27 20:44 altermime -> /opt/zimbra/altermime-0.3-dev                                                                                  
drwxr-xr-x  3 root   root   4096 mar 27 20:44 altermime-0.3-dev                      
lrwxrwxrwx  1 root   root     29 mar 27 20:44 amavisd -> /opt/zimbra/amavisd-new-2.6.4                                                                                    
drwxr-xr-x  4 root   root   4096 mar 27 20:44 amavisd-new-2.6.4                      
lrwxrwxrwx  1 root   root     25 mar 27 16:29 aspell -> /opt/zimbra/aspell-0.60.6    
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 16:28 backup                                 
lrwxrwxrwx  1 root   root     24 mar 27 20:44 bdb -> /opt/zimbra/bdb-4.7.25.4        
drwxr-xr-x  6 root   root   4096 mar 27 20:44 bdb-4.7.25.4                           
drwxr-xr-x  2 root   root   4096 mar 27 20:44 bin                                    
lrwxrwxrwx  1 root   root     25 mar 27 20:44 clamav -> /opt/zimbra/clamav-0.95.3    
drwxr-xr-x 10 root   root   4096 mar 27 20:44 clamav-0.95.3                          
drwxr-xr-x  9 zimbra zimbra 4096 mar 27 21:22 conf                                   
-rw-------  1 root   root   2284 mar 27 20:46 config.29334                           
-rw-------  1 root   root   2273 mar 27 16:44 config.8858                            
drwxr-xr-x  2 root   root   4096 mar 27 20:44 contrib                                
lrwxrwxrwx  1 root   root     23 mar 27 20:44 curl -> /opt/zimbra/curl-7.19.7        
drwxr-xr-x  6 root   root   4096 mar 27 20:44 curl-7.19.7                            
lrwxrwxrwx  1 root   root     32 mar 27 20:44 cyrus-sasl -> /opt/zimbra/cyrus-sasl-2.1.23.3z                                                                              
drwxr-xr-x  8 root   root   4096 mar 27 20:44 cyrus-sasl-2.1.23.3z                   
drwxr-xr-x  9 zimbra zimbra 4096 mar 27 20:44 data                                   
drwxr-xr-x  3 zimbra zimbra 4096 mar 27 21:21 db                                     
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 docs                                   
lrwxrwxrwx  1 root   root     29 mar 27 20:44 dspam -> /opt/zimbra/dspam-3.9.0-BETA4 
drwxr-xr-x  7 root   root   4096 mar 27 20:44 dspam-3.9.0-BETA4                      
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 16:29 fbqueue                                
lrwxrwxrwx  1 root   root     25 mar 27 20:44 heimdal -> /opt/zimbra/heimdal-1.2.1   
drwxr-xr-x  6 root   root   4096 mar 27 20:44 heimdal-1.2.1                          
lrwxrwxrwx  1 root   root     24 mar 27 20:45 httpd -> /opt/zimbra/httpd-2.2.14      
drwxr-xr-x 15 root   root   4096 mar 27 20:45 httpd-2.2.14                           
drwxr-xr-x  3 zimbra zimbra 4096 mar 27 17:14 index                                  
lrwxrwxrwx  1 root   root     23 mar 27 20:44 java -> /opt/zimbra/jdk1.6.0_16        
drwxr-xr-x  8 root   root   4096 mar 27 20:44 jdk1.6.0_16                            
lrwxrwxrwx  1 root   root     27 mar 27 20:45 jetty -> /opt/zimbra/jetty-6.1.22.z6   
drwxr-xr-x 11 root   root   4096 mar 27 20:44 jetty-6.1.22.z6                        
drwxr-xr-x  4 root   root   4096 mar 27 20:44 lib                                    
drwxr-xr-x  4 root   root   4096 mar 27 20:44 libexec                                
lrwxrwxrwx  1 root   root     26 mar 27 20:44 libtool -> /opt/zimbra/libtool-2.2.6a  
drwxr-xr-x  4 root   root   4096 mar 27 20:44 libtool-2.2.6a                         
drwxr-xr-x  3 zimbra zimbra 4096 mar 28 00:12 log                                    
drwxr-xr-x  3 zimbra zimbra 4096 mar 27 16:28 logger                                 
lrwxrwxrwx  1 root   root     27 mar 27 20:45 mailboxd -> /opt/zimbra/jetty-6.1.22.z6
lrwxrwxrwx  1 root   root     59 mar 27 20:45 mysql -> /opt/zimbra/mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23                                                        
drwxr-xr-x  7 root   root   4096 mar 27 20:44 mysql-standard-5.0.87-pc-linux-gnu-i686-glibc23                                                                             
lrwxrwxrwx  1 root   root     24 mar 27 16:28 net-snmp -> /opt/zimbra/net-snmp-5.5   
drwxr-xr-x  9 root   root   4096 mar 27 20:44 net-snmp-5.5                           
lrwxrwxrwx  1 root   root     30 mar 27 20:44 openldap -> /opt/zimbra/openldap-2.4.20.4z                                                                                  
drwxr-xr-x  9 root   root   4096 mar 27 20:44 openldap-2.4.20.4z                     
lrwxrwxrwx  1 root   root     36 mar 27 20:44 openldap-clibs -> /opt/zimbra/openldap-clibs-2.4.20.4z                                                                      
drwxr-xr-x  3 root   root   4096 mar 27 20:44 openldap-clibs-2.4.20.4z               
lrwxrwxrwx  1 root   root     26 mar 27 20:44 openssl -> /opt/zimbra/openssl-0.9.8l  
drwxr-xr-x  6 root   root   4096 mar 27 20:44 openssl-0.9.8l                         
lrwxrwxrwx  1 root   root     28 mar 27 20:44 postfix -> /opt/zimbra/postfix-2.6.5.2z
drwxr-xr-x  6 root   root   4096 mar 27 20:44 postfix-2.6.5.2z                       
drwxr-xr-x  3 zimbra zimbra 4096 mar 27 18:16 redolog                                
lrwxrwxrwx  1 root   root     24 mar 27 20:44 snmp -> /opt/zimbra/net-snmp-5.5       
drwxr-xr-x  7 zimbra zimbra 4096 mar 27 18:15 ssl                                    
drwxr-xr-x  4 zimbra zimbra 4096 mar 27 17:14 store                                  
lrwxrwxrwx  1 root   root     24 mar 27 20:44 tcmalloc -> /opt/zimbra/tcmalloc-1.4   
drwxr-xr-x  5 root   root   4096 mar 27 20:44 tcmalloc-1.4                           
drwxr-xr-x  3 zimbra zimbra 4096 mar 27 20:44 wiki                                   
drwxr-xr-x  6 root   root   4096 mar 27 20:44 zimbramon                              
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets                                
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets-admin-extra                    
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 16:29 zimlets-deployed                       
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets-experimental                   
drwxr-xr-x  2 zimbra zimbra 4096 mar 27 20:44 zimlets-extra                          
drwxr-xr-x  4 zimbra zimbra 4096 mar 28 00:01 zmstat                                 
----------------                                                                     
 00:13:58 up  6:23,  1 user,  load average: 0.08, 0.05, 0.01                         
----------------                                                                     
2097152 KB                                                                           
----------------                                                                     
----------------                                                                     
FREE total used free shared buffers cached Mem: 2048 1248 799 0 0 0 -/+ buffers/cache: 1248 799 Swap: 0 0 0 KB                                                            
----------------                                                                     
----------------                                                                     

::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet                        
ff00::0 ip6-mcastprefix                     
ff02::1 ip6-allnodes                        
ff02::2 ip6-allrouters                      
ff02::3 ip6-allhosts                        
127.0.0.1 localhost.localdomain localhost   
# Auto-generated hostname. Please do not remove this comment.
11.22.33.44 myhostname.domain.com  myhostname zimbra.cumulus.lan
----------------                                              
search domain.com
nameserver 127.0.0.1
nameserver 213.186.33.99
nameserver 87.98.230.202
----------------
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
----------------
----------------
lrwxrwxrwx 1 root root      18 mar 16 13:04 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
-rw-r--r-- 1 root root  829320 jul 15  2008 /usr/lib/libstdc++.so.5.0.7
lrwxrwxrwx 1 root root      19 mar 16 12:58 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.10
-rw-r--r-- 1 root root 1019216 ene  2  2009 /usr/lib/libstdc++.so.6.0.10
lrwxrwxrwx 1 root root      18 mar 16 13:04 /usr/lib64/libstdc++.so.5 -> libstdc++.so.5.0.7
-rw-r--r-- 1 root root  829320 jul 15  2008 /usr/lib64/libstdc++.so.5.0.7
lrwxrwxrwx 1 root root      19 mar 16 12:58 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.10
-rw-r--r-- 1 root root 1019216 ene  2  2009 /usr/lib64/libstdc++.so.6.0.10
----------------
I wanted to know what's the difference between mailboxd_java_heap_memory_percent and mailboxd_java_heap_new_size_percent?

Because sometimes with 600 MB RAM I have seen some messages in random services that say that they could not create the java virtual machine because there was not enough memory and it does not make with 600 MB RAM free.

Any help is welcome and do not hesitate to ask me to run more commands in order to find my problem.

adrian15