Delay between mail reception

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
guti19840
Posts: 16
Joined: Thu Feb 26, 2015 2:29 pm

Delay between mail reception

Postby guti19840 » Wed Jan 09, 2019 1:37 pm

zmcontrol -v
Release 8.7.11.GA.1854.UBUNTU16.64 UBUNTU16_64 FOSS edition.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

please urgent help

Single server instalation

english is not my native lenguage, please patience

for example a client send a mail 10:00 in the morning to user1@example.local cc user2@example.local user3@example.local.
User1 and User2 receives the mail 10:00 am but user3 receives the mail 10:20 or late!

same thing sending mail inside the domain

This happens every day

please help!!!


User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 436
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P12 RHEL6 Network Edition
Contact:

Re: Delay between mail reception

Postby JDunphy » Wed Jan 09, 2019 2:50 pm

guti19840 wrote:
for example a client send a mail 10:00 in the morning to user1@example.local cc user2@example.local user3@example.local.
User1 and User2 receives the mail 10:00 am but user3 receives the mail 10:20 or late!

same thing sending mail inside the domain

This happens every day

please help!!!

The received mail headers on each email will confirm the delivery time as will the logs on your zimbra server. You can also determine when they picked up their email from the logs. Given the detail provided, perhaps user3 is a pop/imap user and their polling interval is too long given their complaint. Can you confirm this happens when all 3 users are using the zimbra web interface to receive email? Your zimbra logs and headers really tell the story of why it was delayed or not and if this is a user perception problem. Given you mention example.local ... heavy emphasis on the .local part, perhaps the solution is verify the outlook client settings for the polling interval if indeed they are using an external MUA for receiving their email.

Hint: /var/log/maillog, /var/log/zimbra.log, /opt/zimbra/log/mailboxd, and grep

Code: Select all

grep -A 2 connect /var/log/maillog | grep smtpd
grep -A 3 'postfix/smtp' /var/log/zimbra.log
grep 'delay=' /var/log/zimbra.log | egrep '(user1|user2|user3)'
guti19840
Posts: 16
Joined: Thu Feb 26, 2015 2:29 pm

Re: Delay between mail reception

Postby guti19840 » Thu Jan 10, 2019 2:07 am

no pop/imap client in use, just zimbra web client

this is the problem:

Image
why?
User avatar
DualBoot
Elite member
Elite member
Posts: 1057
Joined: Mon Apr 18, 2016 8:18 pm
Location: Earth
ZCS/ZD Version: ZCS FLOSS - 8.7.11 Mutli servers

Re: Delay between mail reception

Postby DualBoot » Thu Jan 10, 2019 8:46 am

Hello,

it seems the problem is with the proxy mail ssl or between your Zimbra Web client and this proxy.

Regards,
guti19840
Posts: 16
Joined: Thu Feb 26, 2015 2:29 pm

Re: Delay between mail reception

Postby guti19840 » Thu Jan 10, 2019 10:39 pm

DualBoot wrote:Hello,

it seems the problem is with the proxy mail ssl or between your Zimbra Web client and this proxy.

Regards,


its happen inside the domain too! (between internal users)

can I report this as bug? where?
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 656
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Delay between mail reception

Postby pup_seba » Fri Jan 11, 2019 7:16 am

Hi,

It is 'only' 30 minutes and the mail ends up being delivered, If I had to guess, I would put my money on performance bottleneck. Please share with us this info:
- number of CPUs or vCPUs
- Amount of RAM
- Number of users
- Number of mails in spool (adminUI > monitoring > spool).
- Output of these commands:
- du -sh /opt/zimbra/db/data
- free -m
- df -lh
- cat /opt/zimbra/conf/my.cnf
- zmlocalconfig | grep -i mailboxd_java_heap_size

Also, does it always have delays or is it only during specific times of the day?

If you are using a VM, does your host suffers of memory/cpu contention of any kind?
guti19840
Posts: 16
Joined: Thu Feb 26, 2015 2:29 pm

Re: Delay between mail reception

Postby guti19840 » Fri Jan 11, 2019 11:02 pm

pup_seba wrote:Hi,

It is 'only' 30 minutes and the mail ends up being delivered, If I had to guess, I would put my money on performance bottleneck. Please share with us this info:
- number of CPUs or vCPUs
- Amount of RAM
- Number of users
- Number of mails in spool (adminUI > monitoring > spool).
- Output of these commands:
- du -sh /opt/zimbra/db/data
- free -m
- df -lh
- cat /opt/zimbra/conf/my.cnf
- zmlocalconfig | grep -i mailboxd_java_heap_size

Also, does it always have delays or is it only during specific times of the day?

If you are using a VM, does your host suffers of memory/cpu contention of any kind?


txs, i send to you the requested info

No VMs, this is a single instalaltion in a HP Proliant Server

Delays ocurrs randomly, but in a incrising number of users. Began with one user recibing dalyed mail, now are 3 users in 6 months app

lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Thread(s) per core: 1
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Model name: Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
Stepping: 1
CPU MHz: 1400.000
CPU max MHz: 1700,0000
CPU min MHz: 1200,0000
BogoMIPS: 3395.89
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0-5
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm arat pln pts

free -m
total used free shared buff/cache available
Mem: 15921 9487 818 148 5616 5909
Swap: 953 262 691

cat /etc/passwd | cut -d":" -f1
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
systemd-timesync
systemd-network
systemd-resolve
systemd-bus-proxy
syslog
_apt
lxd
messagebus
uuidd
dnsmasq
sshd
zimbra
postfix
bind
snmp
ntp
jorge

zmprov -l gaa | wc -l
36

/opt/zimbra/libexec/zmqstat
corrupt=0
active=0
hold=0
incoming=0
deferred=0

/opt/zimbra/common/sbin/postqueue -p
Mail queue is empty

du -sh /opt/zimbra/db/data
5,0G /opt/zimbra/db/data

df -lh
Filesystem Size Used Avail Use% Mounted on
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 149M 1,5G 10% /run
/dev/sda2 1,8T 243G 1,5T 14% /
tmpfs 7,8G 0 7,8G 0% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
tmpfs 1,6G 0 1,6G 0% /run/user/1001

cat /opt/zimbra/conf/my.cnf

[mysqld]

bind-address = 127.0.0.1

basedir = /opt/zimbra/common
datadir = /opt/zimbra/db/data
socket = /opt/zimbra/data/tmp/mysql/mysql.sock
pid-file = /opt/zimbra/log/mysql.pid
port = 7306
user = zimbra
tmpdir = /opt/zimbra/data/tmp

external-locking
slow_query_log = 1
slow_query_log_file = /opt/zimbra/log/myslow.log

general_log_file = /opt/zimbra/log/mysql-mailboxd.log

long_query_time = 1
log_queries_not_using_indexes

thread_cache_size = 110
max_connections = 110

# We do a lot of writes, query cache turns out to be not useful.
query_cache_type = 0

sort_buffer_size = 1048576
read_buffer_size = 1048576

# (Num mailbox groups * Num tables in each group) + padding
table_open_cache = 1200

innodb_data_file_path = ibdata1:10M:autoextend
innodb_buffer_pool_size = 5008626892
innodb_log_file_size = 524288000
innodb_log_buffer_size = 8388608
innodb_file_per_table

# Value is: 200 + max_connections + 2 * table_open_cache
innodb_open_files = 2710

innodb_max_dirty_pages_pct = 30
innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 0
max_allowed_packet = 16777216

[mysqld_safe]

log-error = /opt/zimbra/log/mysqld.log
pid-file = /opt/zimbra/log/mysql.pid

zmlocalconfig | grep -i mailboxd_java_heap_size
mailboxd_java_heap_size = 3968
User avatar
pup_seba
Outstanding Member
Outstanding Member
Posts: 656
Joined: Sat Sep 13, 2014 2:43 am
Location: Tarragona - Spain
Contact:

Re: Delay between mail reception

Postby pup_seba » Mon Jan 14, 2019 2:16 pm

Hi,

Conf seems ok, although you could improve one or two things if you follow the performance tunning guide, they are not likely to be relevant for your problem.

Did you check what DualBoot and JDunphy told you? Do you see any kind of error message in your logs or something?

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 17 guests