How to exclude "Archived" email from Quota usage ?

2019-06-06 Thread Jayesh Shinde

Hi ,

I am testing Archiving  feature with Cyrus-imapd-3.0.9 .

Is it possible to exclude the mailbox quota for "Archived emails" ( 
which is in different partition )  and only consider mailbox quota of 
default partition ?


OR

Is it possible to know how much quota used for end user's mailbox in 
Archive partition ?


By  listquota command I am able to view overall Mailbox Quota.

Thank You

Regards
Jayesh Shinde

https://ps1.saymails.com/client_customize/raman/reg_lp.php?utm_source=email-disclaimerutm_medium=emailutm_campaign=beatraman


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Segmentation fault core file.

2015-06-17 Thread Jayesh Shinde

Hi ,

I am facing problem with randomly mail delivery to local mailboxes.  
While doing reconstruct its showing Segmentation fault

Also there lots of core.xxx files created under /var/lib/imap.

 -bash-4.1$  /usr/lib/cyrus-imapd/reconstruct -r -f 
user/amit.badar...@domain.com

user/amit.badar...@domain.com
Segmentation fault

And the dmesg is showing error like below .

imapd[7127]: segfault at 7f9092d7ce33 ip 7f905fc1192e sp 
7fff659f55e0 error 4 in imapd[7f905fbae000+191000]
reconstruct[17981]: segfault at 7f656e112c4b ip 7f64fdc1380e sp 
71cf7110 error 4 in reconstruct[7f64fdbdd000+15b000]
reconstruct[19517]: segfault at 7f0ea8ae2c4b ip 7f0e3494780e sp 
7fff162a79d0 error 4 in reconstruct[7f0e34911000+15b000]
reconstruct[19693]: segfault at 7fa5821b0c4b ip 7fa50e01580e sp 
7fff2f724aa0 error 4 in reconstruct[7fa50dfdf000+15b000]
lmtpd[6046]: segfault at 7f141270712e ip 7f13d86c242e sp 
7fff483d6000 error 4 in lmtpd[7f13d867e000+16d000]
lmtpd[3130]: segfault at 7fd68612606f ip 7fd665e8b42e sp 
7fff9b8595f0 error 4 in lmtpd[7fd665e47000+16d000]


I checked by moving the mailbox from iscsi partition to local drive and 
simlink the same .  But when i do reconstruct again it gives 
Segmentation fault
I checked by doing the gdb the core.xxx files , but not able to got the 
actual problem.


What could be the problem.  Is its related server's Memory  or currption 
on mailbox ?

How can I handle it.

Regards
Jayesh Shinde

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: cyrus-imapd with lmtpd + postfix slow delivery with group email ids

2015-05-18 Thread jayesh shinde

  
  
Hi Stephen , 
  
  I am handling via TCP i.e from smtp server to mailbox server.
  
  
  on smtp server postfix's main.cf transport_maps is maintain ,
  which deliver the emails to lmtp. 
  
  Example like below. 
  /@mydomain.com/ lmtp:[192.168.1.1]
  
  Request you to please guide here or any fine tuning etc 
  
  Regards
  Jayesh Shinde

  
  On 05/15/2015 10:11 PM, Stephen Ulmer wrote:


  
  Are you handing off to LMTP via TCP or a pipe?
  

  
--
Stephen


  



  
On May 15, 2015, at 2:18 AM, jayesh shinde
  jayesh.shi...@netcore.co.in
  wrote:


  
  
Thanks Dan for your
feedback. 
I verified the suggested points , its working as
require. Please find below inline reply for each. 

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. 
I verified this from live maillog i.e by doing
grep key words like "to mailbox:" / "Delivered:"
etc ...

My mail queue issue is getting critical in peak
hours !! Kindly suggest. 

On 05/14/2015 08:22 PM, Dan White wrote:
  
On 05/14/1505:42+,
jayesh.shinde wrote: 
  
  Please
  suggest , for faster delivery what could be the
  best config in 
  postfix + cyrus-imapd . 
 
  I am using the cyrus-imapd-2.4.17-6.el6.x86_64 for
  mailbox server and for 
  smtp server postfix-2.10.0-1.el6.x86_64 Both
  server have SAS hdd , 16 core 
  , 16 GB RAM . There is no i/o issues 

  
  
  Mailbox
  server have 21K email ids. Cyrus running with
  tcp socket on 
  port 24 i.e lmtpd . cyrus singleinstance is
  maintained 

  
  
  For group id
  mapping is under virtual_alias_maps of smtp's
  main.cf i.e no 
  /etc/aliases. From smtp server emails are getting
  deliver by 
  transport_maps to mailbox server . 

  
  
  My problem
  observe :-- 
  -- 
  1) When HOD send email to 3-5 big group email ids
  then , then its postfix 
  delivery get slow. What I observe is postfix
  getting delivered the traffic 
  per email and not parallel. Each group contain
  3k or 7k email ids. 

  
Verify that single instance store is working. If
not, you may have a 
Postfix configuration issue. Find one of these mass
emails in a mailbox and 
stat it to find out: 
   
stat -c %h file 
   
A returned value of 1 means single instance store
isn't working. 
   
If that's not the issue, you can determine if this
is a postfix issue or a 
cyrus issue by sending a mass email directly to
lmtpd, with lmtptest. 
  
Cyrus
  Singleinstance is working , I have verified like
  below. In imapd.conf man page its define as default 1
  ( i.e default enable ) 
  
  [root@Mailbox ~]# ls -lirth
  /var/spool/imap/domain/v/vdomain/m/user/muser1/ | tail
  -n 20 
  
  163326970 -rw--- 198 cyrus mail
  413K May 15 10:07 64828.
  163396232 -rw--- 145 cyrus mail
  92K May 15 10:13 64829.
  163379367 -rw--- 151 cyrus mail
  

Re: cyrus-imapd with lmtpd + postfix slow delivery with group email ids

2015-05-15 Thread jayesh shinde
-u
  postfix 6974 0.0 0.0 75708 4340 ? S 11:10 0:00
  lmtp -t unix -u
  postfix 6975 0.0 0.0 75708 4336 ? S 11:10 0:00
  lmtp -t unix -u
  postfix 6977 0.0 0.0 75708 4344 ? S 11:10 0:00
  lmtp -t unix -u
  postfix 6979 0.0 0.0 75708 4336 ? S 11:10 0:00
  lmtp -t unix -u
  postfix 6981 0.0 0.0 75708 4336 ? S 11:10 0:00
  lmtp -t unix -u
  postfix 6985 0.0 0.0 75708 4348 ? S 11:10 0:00
  lmtp -t unix -u
  cyrus 6998 0.0 0.0 73376 4052 ? S 11:10 0:00
  lmtpd
  cyrus 7001 0.0 0.0 73376 4044 ? S 11:10 0:00
  lmtpd
  cyrus 7234 0.9 0.0 75456 4976 ? S 11:12 0:04
  lmtpd -a
  cyrus 8758 0.6 0.0 75452 4112 ? S 11:19 0:00
  lmtpd -a
  root 8898 0.0 0.0 103236 972 pts/1 S+ 11:19 0:00
  grep --colour=auto lmtp
  cyrus 46046 0.0 0.0 73376 4648 ? S 10:28 0:01
  lmtpd
  cyrus 48107 0.0 0.0 73372 4740 ? S 10:37 0:01
  lmtpd
  cyrus 48108 0.0 0.0 73376 4700 ? S 10:37 0:01
  lmtpd
  
  lmtpd :-- 7 process
  lmtp -t unix -u :-- 7 process
  lmtpd -a :-- 2 process
  
  Cyrus config is as follows:
  ---
  
  SERVICES {
   imap  cmd="imapd" listen="imap" prefork=5
   imaps  cmd="imapd -s" listen="imaps" prefork=1
   pop3  cmd="pop3d" listen="pop3" prefork=3
   pop3s  cmd="pop3d -s" listen="pop3s" prefork=1
   sieve  cmd="timsieved" listen="sieve" prefork=0
  
   lmtp cmd="lmtpd -a" listen="lmtp" prefork=0
   lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp"
  prefork=1
  }
  
  [root@Mailbox ~]# cat /etc/imapd.conf 
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  hashimapspool: true
  sasl_pwcheck_method: saslauthd
  sasl_mech_list: PLAIN
  allowplaintext: yes
  unixhierarchysep: 1
  virtdomains: yes
  altnamespace: on
  defaultdomain: mydomain.com
  expunge_mode: immediate
  delete_mode: immediate
  tls_cert_file: /usr/share/ssl/certs/server.pem
  tls_key_file: /usr/share/ssl/certs/server.key
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  lmtp_over_quota_perm_failure: 1
  duplicatesuppression: 1
  duplicate_db_path: /var/lib/imap/cyrus-ram-tmpfs/deliver.db
      statuscache_db_path: /var/lib/imap/cyrus-ram-tmpfs/statuscache.db
  tlscache_db_path: /var/lib/imap/cyrus-ram-tmpfs/tls_sessions.db 
  
  Regards
  Jayesh Shinde

  


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Migrate cyrus 2.3.8 to 2.4.17

2014-10-08 Thread jayesh shinde

Hi Giuseppe ,

I want to learn few points from your migration scenario.

Few days back I migrated my  32 bit cyrus-imapd-2.3.7-12.el5_7.2   to 64 
bit cyrus-imapd-2.4.17-6.el6.x86_64 server
I faced the below problems , how you are handling the below points on 64 
bit server  in your case ?


1) How do you  maintained the seen-unseen mail flags.
2) I came across duplicate email download issue in email client .
   When IP of 32bit server shifted to 64 bit server , then for those 
client who have setup POP3 account with leave copy on server in email 
clients for them emails got download again.


On 64 bit server there was no changes in  /etc/hosts and DNS A records 
and /etc/resolve.conf , it was exactly same as 32 bit.


Request you to please share your comments / suggestion which need to 
take care for above issues.


Regards
Jayesh Shinde


On 10/06/2014 08:27 PM, Giuseppe Ravasio wrote:

Hi,
I'm planning and testing the migration of a IMAP mail server based on
cyrus 2.3.8 with about 3TB of mailstore, 300 users and a lot of shared
folders (with shared flags (group permission with +w)).

The old server is a 32bit one and the new one is 64bit virutual machine.
as now I've succesfully used this procedure:
- Rsync of all mailstores /var/lib/imap and /var/lib/sieve
- rm -v /var/lib/imap/db/* /var/lib/imap/db.backup1/* \
/var/lib/imap/db.backup2/* /var/lib/imap/deliver.db \
/var/lib/imap/tls_sessions.db /var/lib/imap/mailboxes.db
- ctl_mboxlist -u  /tmp/mboxlist.txt
- ctl_cyrusdb -r
- tls_prune
- ctl_cyrusdb -c

- cyr_expire -E 3

The last command took about 24 hours to complete and if understand right
It converted cyrus mailbox DBs from v9 to v12.

I wonder if the first cyr_expire could run even with the service started
and if it should be better to run a reconstruct on all the mailboxes in
place of this cyr_expire.

Last but not least, do you think that sieve filters should be recompiled?

Any other hints?

Thanks
Giuseppe

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus





Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Exchange to cyrus-imapd mail migration query

2013-02-22 Thread jayesh . shinde
 

- Original Message -
From: Steinar Kaarø 
To:, 
Cc:
Sent:Fri, 22 Feb 2013 09:38:55 +0100
Subject:Re: Exchange to cyrus-imapd mail migration query

 --On Thursday, February 21, 2013 11:33:33 PM -0800 
 jayesh.shi...@netcore.co.in wrote:

  Hi Imap sync works  on a imap account of exchange , If I already
  know the excahnge user's password.
  But currently the problem is I am using an Exchange 
administrator
  account , with a delegated mailbox access. So I am not able to
scan
  the users mailbox using IMAP..  The mailbox is visible in Outlook
(
  using MAPI  probably ) but not on a imap client
 
  Is there a way I can access a delegated mailbox of exchange using
  IMAP , or is there a way I can interface with a MAPI server
instead
 
 In imapsync you have to authenticate with the login-mechanism, and
use 
 this format on the username:
 administratoraccount@domain/useraccount

 The login mechanism is not announced in the capabilities of the
exchange 
 imap-server, but this is the only mechanism supporting authorization
as a 
 different user.

 -- 
 Steinar Kaarø

Thanks a lot that works for me. 

Regards
Jayesh Shinde

-
Email sent using Netcore AjaxMail - Email, Groupware and Calendaring
done right.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Exchange to cyrus-imapd mail migration query

2013-02-21 Thread jayesh shinde

Hi all ,

I am migrating the Exchange 2003 server to Cyrus-imapd + postfix  server
Due to some reason , on Exchange server imap protocol is not open and 
only mapi protocol is available.

Along with this end users are not allowing the share the passwords.

In Exchange by giving the administrator access ( i.e ACL ) on particular 
mailbox , admin ID can see other account's emails.  But its only opening 
on Mapi enable outlook.


Is there any tool ( like imapsync ) by which I can connect to Exchange 
server over Mapi protocol

and sync the emails in cyrus-impad's imap ( 143 ) enable server ?

I want to know , how peoples are handing such situation and migrating 
the emails ?


Regards
Jayesh Shinde




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: Exchange to cyrus-imapd mail migration query

2013-02-21 Thread jayesh . shinde
 

- Original Message -
From: Simon Matter 
To:Dan White 
Cc:jayesh shinde , 
Sent:Thu, 21 Feb 2013 16:03:16 +0100
Subject:Re: Exchange to cyrus-imapd mail migration query

  On 02/21/13 15:59 +0530, jayesh shinde wrote:
 Hi all ,
 
 I am migrating the Exchange 2003 server to Cyrus-imapd + postfix
server
 Due to some reason , on Exchange server imap protocol is not open
and
 only mapi protocol is available.
 Along with this end users are not allowing the share the
passwords.
 
 In Exchange by giving the administrator access ( i.e ACL ) on
 particular mailbox , admin ID can see other account's emails. But
 its only opening on Mapi enable outlook.
 
  You might see if it's possible to enable IMAP on your exchange
server.
  IMAP
  runs on port 993 on our's (imaps).
 
 Is there any tool ( like imapsync ) by which I can connect to
 Exchange server over Mapi protocol
 and sync the emails in cyrus-impad's imap ( 143 ) enable server ?
 
 I want to know , how peoples are handing such situation and
migrating
 the emails ?
 
  Try configuring an Outlook client simultaneously with both a MAPI
  connection, and an IMAP connection, and then copy the messages
between the
  two.
 
  Another approach would be to export your messages, using Outlook,
to a
  .pst
  file, and figure out a way to import those messages into cyrus, or
back
  into outlook after IMAP has been configured.

 If IMAP is enabled on the exchange side, then imapsync should also
work.

Hi Imap sync works  on a imap account of exchange , If I already
know the excahnge user's password. 
But currently the problem is I am using an Exchange  administrator
account , with a delegated mailbox access. So I am not able to scan
the users mailbox using IMAP..  The mailbox is visible in Outlook (
using MAPI  probably ) but not on a imap client 

Is there a way I can access a delegated mailbox of exchange using
IMAP , or is there a way I can interface with a MAPI server instead 

Importing PST files manually ot drag-drop of mails for a large number
of mailboxes is not feasible 

-
Email sent using Netcore AjaxMail - Email, Groupware and Calendaring
done right.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

cyrus + Active directories authentication query

2013-01-03 Thread jayesh shinde

Hi all ,

I am trying to configure the cyrus + Active directories authentication.
I have cyrus-imapd-2.4.6-5  and  Active Directory 2003  2010

The  mailbox in cyrus  is in format of  firstname.lastn...@domain.com
But the problem is attributes  of Active directories like 
sAMAccountName:  userPrincipalName:  mail: are different ( not same )


Example :--

mail: jayesh.shi...@domain.com
sAMAccountName: 10030
userPrincipalName: jshi...@domain.com

Cyrus mailbox :-- jayesh.shi...@domain.com

Requirement is :--

 I want to do auth by sAMAccountName name , this  sAMAccountName is 
use for  Windows desktop login.
 And I want to keep same login  password credential for both windows + 
email login


 When I am trying do login with  pop3/ imap  with above 
sAMAccountName of active directory  , then I am not able to login. It 
gets fail.


Where as if  I use mail: attribute of Active directory then I am able 
to login with  pop3 / imap  and able to all normal activity.


1) Is any one come across such scenario or requirement , if yes how its 
getting manage ?
2) Is there any way or workaround by which I can do sucessfull login 
with sAMAccountName and get login in Cyrus mailbox  ? ( which is 
mention in above example)


Please suggest

Regards
Jayesh Shinde




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Want to create DC DR Mailbox server

2012-08-22 Thread jayesh shinde

Hello all ,

I require suggestion for building up the DC  DR server. I want to build 
the Mailbox server with 5000 users , 1 TB size of total mailbox data.


1)  DC and DR server will be in two different IDC , with internet 
connectivity or with dedicated pipe.


2)  How to sync the every email ( add / delete / seen / unseen ... etc 
)  on the fly from DC to DR ?
 Please share if any have good URLs / Blog / wiki / howto steps 
information  for implementing the above.


3)  If point 2  have solution , then in case of drill if I point the 
LIVE IP from DC to DR and if all emails come on DR server for 1-2 days , 
then how to sync back that emails to DC again.


4) For syncing data back from DR to DC , Is there any method other that 
IMAPSYNC ?


5) Is it possible again on the fly syncing of emails from DR to DC ?

6) How other sysadmins are managing the Drill situation and DC to DR 
syncing ?


Regards
Jayesh Shinde




Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus