Re[2]: Segmentation fault & core file.

2015-06-18 Thread jayesh.shinde
Thanks Bron / list  for your reply 
I am using cyrus-imapd-2.4.17-6.el6.x86_64  , with ext4 file system .
Just now the  issue has been resolved ,  I found  corruption with inode  level 
and few emails.  Some email was converted to binary file. 
Due to which  few mailboxes was corrupted .  Delivery or access of such mailbox 
was getting failed and Segmentation fault & core file was getting generated . 
After  identifying such mailbox manually ,  i moved those to  other path and 
removed all cyrus.* files ,  recreated the new mailbox and moved that all 
non-corrupted  emails  and reconstruct the same. Its seem my issue is resolved 
for now . For  next 1/2 days will monitor the flow and after that will shift 
the data with new LUN .  I Will verify the badblocks and will re-format the LUN 
with new fresh filesystem.
Do you know what could be the reason for below scenario :-- 

I found one interesting point  with core. files , The sizing of such files 
with  du -sh & ls -lh was showing different . 
While doing the same file "cp" or "rsync" it was showing me different size.   
Also the inodes for "cp" file was less and inodes for "rsync" file was more.  
With Google I learn that cp & du work differently . 
I verified the same with another ext3 partition , but there sizing is showing 
proper. 
My question is , whether its normal behavior or related corrupted inode or file 
system ?  In tune2fs -l , filesystem showing clean.
Below is for reference scenario. 
[root@active ~]# rsync -av  /hacluster/varlib/imap/core.10236 
/hacluster/san-testing/by-rsync/
[root@active ~]# cp -p   /hacluster/varlib/imap/core.10236 
/hacluster/san-testing/by-cp/

[root@active ~]# ls -lh  /hacluster/san-testing/by-cp/core.10236  
/hacluster/san-testing/by-rsync/core.10236 
-rw--- 1 cyrus mail 1.3G Jun 16 08:19 
/hacluster/san-testing/by-cp/core.10236
-rw--- 1 cyrus mail 1.3G Jun 16 08:19 
/hacluster/san-testing/by-rsync/core.10236

[root@active ~]# du -sh   /hacluster/san-testing/by-cp/core.10236  
/hacluster/san-testing/by-rsync/core.10236 
3.3M/hacluster/san-testing/by-cp/core.10236

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: Segmentation fault & core file.

2015-06-18 Thread Bron Gondwana
We're going to need to know at least what version of Cyrus you are
running.  Loading a core file with gdb and pasting a backtrace might be
helpful too.

Bron.


On Thu, Jun 18, 2015, at 12:40 AM, Jayesh Shinde wrote:
> 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

--
Bron Gondwana
br...@fastmail.fm
 
 

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: autocreateinboxfolders

2015-06-18 Thread Nic Bernstein

On 06/18/2015 09:40 AM, Nikos Gatsis - Qbit wrote:

Strange, I have autocreateinboxfolders command in older distros.
So, what should I do?


Nikos,
Some packagers added their own patches to support autocreatequota, 
autocreateinboxfolders, etc.  If you depend on such added functionality, 
then you're probably best off using similar packages rather than 
building from source.


The reason this wasn't included in older versions of Cyrus, by default, 
had to do with deciding where to locate such auto-created mailboxes in a 
complex murder environment.


Cheers,
-nic




On 18/6/2015 5:25 ??, Dan White wrote:

On 06/18/15 17:18 +0300, Nikos Gatsis - Qbit wrote:

Hello list
I have install cyrus 2.4.17 in a Centos 7 distro and i find out that
autocreateinboxfolders doesn't work.
I mean, imap users doesnt auto create Sent or Trash folder 
automatically.

Is something I miss?

My conf is:

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus some
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
allowanonymouslogin: no
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
allowplaintext: yes
anyoneuseracl: 0
createonpost: 0
munge8bit: 0



autocreateinboxfolders: Sent|Drafts|Trash
autosubscribeinboxfolders: Drafts|Sent|Trash


These two options are not valid for version 2.4.17, and appear to 
have been

added in one of the 2.5.x releases.


tls_cert_file: /var/lib/imap/server.pem
#tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /var/lib/imap/server.pem
#tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
# uncomment this if you're operating in a DSCP environment (RFC-4594)
# qosmarking: af13




--
Untitled Document

*?? ? - Gatsis Nikos*
Web developer
tel.: 2108256721 - 2108256722
fax: 2108256712
email: ngat...@qbit.gr
http://www.qbit.gr



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


--
Nic Bernstein n...@onlight.com
Onlight, Inc. www.onlight.com
1442 N Farwell Ave., Suite 600v. 414.272.4477
Milwaukee, Wisconsin  53202

<>
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: autocreateinboxfolders

2015-06-18 Thread Nikos Gatsis - Qbit
Title: Untitled Document

  
  
Strange, I have autocreateinboxfolders command
  in older distros.
  So, what should I do?
  

On 18/6/2015 5:25 μμ, Dan White wrote:

On
  06/18/15 17:18 +0300, Nikos Gatsis - Qbit wrote:
  
  Hello list

I have install cyrus 2.4.17 in a Centos 7 distro and i find out
that

autocreateinboxfolders doesn't work.

I mean, imap users doesnt auto create Sent or Trash folder
automatically.

Is something I miss?


My conf is:


configdirectory: /var/lib/imap

partition-default: /var/spool/imap

admins: cyrus some

sievedir: /var/lib/imap/sieve

sendmail: /usr/sbin/sendmail

allowanonymouslogin: no

hashimapspool: true

sasl_pwcheck_method: saslauthd

sasl_mech_list: PLAIN

allowplaintext: yes

anyoneuseracl: 0

createonpost: 0

munge8bit: 0

  
  
  autocreateinboxfolders: Sent|Drafts|Trash

autosubscribeinboxfolders: Drafts|Sent|Trash

  
  
  These two options are not valid for version 2.4.17, and appear to
  have been
  
  added in one of the 2.5.x releases.
  
  
  tls_cert_file: /var/lib/imap/server.pem

#tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem

tls_key_file: /var/lib/imap/server.pem

#tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem

tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt

# uncomment this if you're operating in a DSCP environment
(RFC-4594)

# qosmarking: af13

  
  


-- 
  
  
  
  Γατσής
  Νίκος - Gatsis Nikos
Web developer
tel.: 2108256721 - 2108256722
fax: 2108256712
email: ngat...@qbit.gr
http://www.qbit.gr 
  




smime.p7s
Description: S/MIME Cryptographic Signature

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: autocreateinboxfolders

2015-06-18 Thread Dan White
On 06/18/15 17:18 +0300, Nikos Gatsis - Qbit wrote:
>Hello list
>I have install cyrus 2.4.17 in a Centos 7 distro and i find out that
>autocreateinboxfolders doesn't work.
>I mean, imap users doesnt auto create Sent or Trash folder automatically.
>Is something I miss?
>
>My conf is:
>
>configdirectory: /var/lib/imap
>partition-default: /var/spool/imap
>admins: cyrus some
>sievedir: /var/lib/imap/sieve
>sendmail: /usr/sbin/sendmail
>allowanonymouslogin: no
>hashimapspool: true
>sasl_pwcheck_method: saslauthd
>sasl_mech_list: PLAIN
>allowplaintext: yes
>anyoneuseracl: 0
>createonpost: 0
>munge8bit: 0

>autocreateinboxfolders: Sent|Drafts|Trash
>autosubscribeinboxfolders: Drafts|Sent|Trash

These two options are not valid for version 2.4.17, and appear to have been
added in one of the 2.5.x releases.

>tls_cert_file: /var/lib/imap/server.pem
>#tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
>tls_key_file: /var/lib/imap/server.pem
>#tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
>tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
># uncomment this if you're operating in a DSCP environment (RFC-4594)
># qosmarking: af13

-- 
Dan White

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


autocreateinboxfolders

2015-06-18 Thread Nikos Gatsis - Qbit

  
  
Hello list
  I have install cyrus 2.4.17 in a Centos 7 distro and i find out
  that autocreateinboxfolders doesn't work.
  I mean, imap users doesnt auto create Sent or Trash folder
  automatically.
  Is something I miss?
  
  My conf is:
  
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus some
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  allowanonymouslogin: no
  hashimapspool: true
  sasl_pwcheck_method: saslauthd
  sasl_mech_list: PLAIN
  allowplaintext: yes
  anyoneuseracl: 0
  createonpost: 0
  munge8bit: 0
  autocreateinboxfolders: Sent|Drafts|Trash
  autosubscribeinboxfolders: Drafts|Sent|Trash
  tls_cert_file: /var/lib/imap/server.pem
  #tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /var/lib/imap/server.pem
  #tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  # uncomment this if you're operating in a DSCP environment
  (RFC-4594)
  # qosmarking: af13
  
  Thank you in advance
Nikos
  
  




smime.p7s
Description: S/MIME Cryptographic Signature

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

autocreateinboxfolders

2015-06-18 Thread Nikos Gatsis - Qbit

  
  
Hello list
  I have install cyrus 2.4.17 in a Centos 7 distro and i find out
  that autocreateinboxfolders doesn't work.
  I mean, imap users doesnt auto create Sent or Trash folder
  automatically.
  Is something I miss?
  
  My conf is:
  
  configdirectory: /var/lib/imap
  partition-default: /var/spool/imap
  admins: cyrus some
  sievedir: /var/lib/imap/sieve
  sendmail: /usr/sbin/sendmail
  allowanonymouslogin: no
  hashimapspool: true
  sasl_pwcheck_method: saslauthd
  sasl_mech_list: PLAIN
  allowplaintext: yes
  anyoneuseracl: 0
  createonpost: 0
  munge8bit: 0
  autocreateinboxfolders: Sent|Drafts|Trash
  autosubscribeinboxfolders: Drafts|Sent|Trash
  tls_cert_file: /var/lib/imap/server.pem
  #tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_key_file: /var/lib/imap/server.pem
  #tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  # uncomment this if you're operating in a DSCP environment
  (RFC-4594)
  # qosmarking: af13
  
  Thank you in advance
Nikos
  
  




smime.p7s
Description: S/MIME Cryptographic Signature

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