<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><font face="Times New Roman, Times,
serif">Thanks Dan for your feedback. <br>
I verified the suggested points , its working as require.
Please find below inline reply for each. <br>
<br>
I found that when big group email is getting deliver ( i.e more
than 500 - 4K members ) at that time other emails are not
getting deliver simultaneously to user's mailbox. <br>
I verified this from live maillog i.e by doing grep key words
like "to mailbox:" / "Delivered:" etc ...<br>
<br>
My mail queue issue is getting critical in peak hours !! Kindly
suggest. <br>
<br>
On 05/14/2015 08:22 PM, Dan White wrote:<br>
</font></div>
<blockquote cite="mid:20150514145224.GC3949@dan.olp.net" type="cite"><font
face="Times New Roman, Times, serif">On 05/14/15 05:42 +0000,
jayesh.shinde wrote:
<br>
</font>
<blockquote type="cite"><font face="Times New Roman, Times, serif">Please
suggest , for faster delivery what could be the best config
in
<br>
postfix + cyrus-imapd .
<br>
</font>
<font face="Times New Roman, Times, serif"><br>
I am using the cyrus-imapd-2.4.17-6.el6.x86_64 for mailbox
server and for
<br>
smtp server postfix-2.10.0-1.el6.x86_64 Both server have SAS
hdd , 16 core
<br>
, 16 GB RAM . There is no i/o issues
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif"><br>
</font>
<blockquote type="cite"><font face="Times New Roman, Times, serif">Mailbox
server have 21K email ids. Cyrus running with tcp socket on
<br>
port 24 i.e lmtpd . cyrus singleinstance is maintained
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif"><br>
</font>
<blockquote type="cite"><font face="Times New Roman, Times, serif">For
group id mapping is under virtual_alias_maps of smtp's
main.cf i.e no
<br>
/etc/aliases. From smtp server emails are getting deliver by
<br>
transport_maps to mailbox server .
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif"><br>
</font>
<blockquote type="cite"><font face="Times New Roman, Times, serif">My
problem observe :--
<br>
--------------------------
<br>
1) When HOD send email to 3-5 big group email ids then , then
its postfix
<br>
delivery get slow. What I observe is postfix getting delivered
the traffic
<br>
per email and not parallel. Each group contain 3k or 7k
email ids.
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif"><br>
Verify that single instance store is working. If not, you may
have a
<br>
Postfix configuration issue. Find one of these mass emails in a
mailbox and
<br>
stat it to find out:
<br>
</font>
<font face="Times New Roman, Times, serif"><br>
stat -c %h <file>
<br>
</font>
<font face="Times New Roman, Times, serif"><br>
A returned value of 1 means single instance store isn't working.
<br>
</font>
<font face="Times New Roman, Times, serif"><br>
If that's not the issue, you can determine if this is a postfix
issue or a
<br>
cyrus issue by sending a mass email directly to lmtpd, with
lmtptest.
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif">Cyrus Singleinstance is
working , I have verified like below. In imapd.conf man page its
define as default 1 ( i.e default enable ) <br>
<br>
[root@Mailbox ~]# ls -lirth
/var/spool/imap/domain/v/vdomain/m/user/muser1/ | tail -n 20 <br>
<br>
163326970 -rw------- <b>198</b> cyrus mail 413K May 15 10:07
64828.<br>
163396232 -rw------- <b>145</b> cyrus mail 92K May 15 10:13
64829.<br>
163379367 -rw------- <b>151</b> cyrus mail 96K May 15 10:29
64830.<br>
163323993 -rw------- <b>496</b> cyrus mail 13K May 15 10:30
64831.<br>
163398621 -rw------- <b>516</b> cyrus mail 850K May 15 10:42
64832.<br>
163398568 -rw------- <b>523</b> cyrus mail 455K May 15 10:43
64833.<br>
163398933 -rw------- <b>617</b> cyrus mail 3.7M May 15 10:47
64834.<br>
163398962 -rw------- <b>522</b> cyrus mail 1.3M May 15 10:48
64835.<br>
163398990 -rw------- <b>617</b> cyrus mail 58K May 15 10:49
64836.<br>
163396678 -rw------- <b>465</b> cyrus mail 207K May 15 10:56
64837.<br>
163399529 -rw------- <b>576</b> cyrus mail 332K May 15 10:57
64838.<br>
163399554 -rw------- <b>2</b> cyrus mail 54K May 15 10:57
64839.<br>
163346523 -rw------- <b>36</b> cyrus mail 767K May 15 11:01
64840.<br>
<br>
[root@Mailbox muser1]# stat -c %h 64829.<br>
145<br>
[root@</font><font face="Times New Roman, Times, serif"><font
face="Times New Roman, Times, serif">Mailbox </font>muser1]#
stat -c %h 64828.<br>
198<br>
<br>
</font>
<blockquote cite="mid:20150514145224.GC3949@dan.olp.net" type="cite">
<font face="Times New Roman, Times, serif"><br>
</font>
<blockquote type="cite"><font face="Times New Roman, Times, serif">In
peak hours the queue on postfix get high and other normal
emails also
<br>
getting stuck in queue. Once the group email get clear after
that other
<br>
emails also get clear.
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif"><br>
</font>
<blockquote type="cite"><font face="Times New Roman, Times, serif">in
mailbox cyrus.conf :-- lmtp cmd="lmtpd -a" listen="lmtp"
prefork=0
<br>
in main.cf of smtp server :--
<br>
lmtp_destination_concurrency_limit = 100
<br>
lmtp_destination_recipient_limit = 0
<br>
</font></blockquote>
<font face="Times New Roman, Times, serif"><br>
How many lmtp processes do you see spawned in this scenario?
<br>
</font>
<font face="Times New Roman, Times, serif"><br>
</font></blockquote>
<font face="Times New Roman, Times, serif">[root@Mailbox ~]# ps
auxwww| grep lmtp <br>
<br>
cyrus 3224 0.0 0.0 73376 4648 ? S 10:55 0:00
lmtpd<br>
cyrus 4043 0.0 0.0 73376 4156 ? S 10:59 0:00
lmtpd<br>
postfix 6972 0.0 0.0 75708 4336 ? S 11:10 0:00
lmtp -t unix -u<br>
postfix 6974 0.0 0.0 75708 4340 ? S 11:10 0:00
lmtp -t unix -u<br>
postfix 6975 0.0 0.0 75708 4336 ? S 11:10 0:00
lmtp -t unix -u<br>
postfix 6977 0.0 0.0 75708 4344 ? S 11:10 0:00
lmtp -t unix -u<br>
postfix 6979 0.0 0.0 75708 4336 ? S 11:10 0:00
lmtp -t unix -u<br>
postfix 6981 0.0 0.0 75708 4336 ? S 11:10 0:00
lmtp -t unix -u<br>
postfix 6985 0.0 0.0 75708 4348 ? S 11:10 0:00
lmtp -t unix -u<br>
cyrus 6998 0.0 0.0 73376 4052 ? S 11:10 0:00
lmtpd<br>
cyrus 7001 0.0 0.0 73376 4044 ? S 11:10 0:00
lmtpd<br>
cyrus 7234 0.9 0.0 75456 4976 ? S 11:12 0:04
lmtpd -a<br>
cyrus 8758 0.6 0.0 75452 4112 ? S 11:19 0:00
lmtpd -a<br>
root 8898 0.0 0.0 103236 972 pts/1 S+ 11:19 0:00
grep --colour=auto lmtp<br>
cyrus 46046 0.0 0.0 73376 4648 ? S 10:28 0:01
lmtpd<br>
cyrus 48107 0.0 0.0 73372 4740 ? S 10:37 0:01
lmtpd<br>
cyrus 48108 0.0 0.0 73376 4700 ? S 10:37 0:01
lmtpd<br>
<br>
lmtpd :-- 7 process<br>
lmtp -t unix -u :-- 7 process<br>
lmtpd -a :-- 2 process<br>
<br>
Cyrus config is as follows:<br>
-----------------------------------<br>
<br>
SERVICES {<br>
imap cmd="imapd" listen="imap" prefork=5<br>
imaps cmd="imapd -s" listen="imaps" prefork=1<br>
pop3 cmd="pop3d" listen="pop3" prefork=3<br>
pop3s cmd="pop3d -s" listen="pop3s" prefork=1<br>
sieve cmd="timsieved" listen="sieve" prefork=0<br>
<br>
lmtp cmd="lmtpd -a" listen="lmtp" prefork=0<br>
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp"
prefork=1<br>
}<br>
<br>
[root@Mailbox ~]# cat /etc/imapd.conf <br>
configdirectory: /var/lib/imap<br>
partition-default: /var/spool/imap<br>
admins: cyrus<br>
sievedir: /var/lib/imap/sieve<br>
sendmail: /usr/sbin/sendmail<br>
hashimapspool: true<br>
sasl_pwcheck_method: saslauthd<br>
sasl_mech_list: PLAIN<br>
allowplaintext: yes<br>
unixhierarchysep: 1<br>
virtdomains: yes<br>
altnamespace: on<br>
defaultdomain: mydomain.com<br>
expunge_mode: immediate<br>
delete_mode: immediate<br>
tls_cert_file: /usr/share/ssl/certs/server.pem<br>
tls_key_file: /usr/share/ssl/certs/server.key<br>
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt<br>
lmtp_over_quota_perm_failure: 1<br>
duplicatesuppression: 1<br>
duplicate_db_path: /var/lib/imap/cyrus-ram-tmpfs/deliver.db<br>
statuscache_db_path: /var/lib/imap/cyrus-ram-tmpfs/statuscache.db<br>
tlscache_db_path: /var/lib/imap/cyrus-ram-tmpfs/tls_sessions.db <br>
<br>
Regards<br>
Jayesh Shinde<br>
</font>
</body>
</html>