Re: Deliver to mailbox problem with v2.4.7

2011-04-07 Thread Dan White
On 07/04/11 23:23 +0100, John wrote:
>On 07/04/11 22:06, Dan White wrote:
>> 'deliver' should deliver to the user's INBOX if it believes there's a
>> permissions problem, or if it believes the mailbox doesn't exist. Does
>> syslog give you any hints?
>>
>> What does your configuration look like? How are 'unixhierarchysep' and
>> 'altnamespace' configured?
>> To trouble shoot, try setting an 'anyone p' acl on your subfolder, or try
>> one of:
>>
>> /usr/cyrus/bin/deliver -a john -m folder.subfolder john < message
>> /usr/cyrus/bin/deliver -a john -m INBOX/folder/subfolder john < message
>>
>Nothing in syslog that really helped.
>I have both "unixhierarchysep" and "altnamespace". From my conf:
>
>configdirectory: /srv/mail/cyrus
>partition-default: /srv/mail/cyrus/mail
>admins: cyrus
>sasl_pwcheck_method: saslauthd
>altnamespace: yes
>unixhierarchysep: yes
>
>Nothing in that respect has changed. I've always had "altnamespace" to
>give me folders at the same level as INBOX and I've always had
>"unixhierarchysep" to give me folder separator of "/" rather than "." (I
>actually use the "." in some folder names).
>
>My config worked fine for me for a very long time until I had to upgrade
>earlier this week. I think my ACLs are fine:
>
>localhost.localdomain> lm user/john
>user/john (\HasChildren)
>localhost.localdomain> lm user/john/folder.name/subfolder
>user/john/folder.name/subfolder (\HasChildren)
>localhost.localdomain> lam user/john/folder.name/subfolder
>john lrswipcda
>localhost.localdomain> lam user/john
>john lrswipcda
>localhost.localdomain>
>
>So I am stumped :)
>
>Thanks for helping, much appreciated.

Assuming this is a bug, can you set an 'anyone p' acl on the mailbox
(parent and subfolder) to see if it delivers?

Do you have any unusual characters in your folder names (like a dot?). Can
you attempt to deliver to a 'top level' folder underneath user/john/?

does the parent and subfolder show up in the output of 'ctl_mboxlist -d'?
Does your folder list look sane if you connect via an IMAP client?

-- 
Dan White

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


Re: Deliver to mailbox problem with v2.4.7

2011-04-07 Thread John
On 07/04/11 22:06, Dan White wrote:
> On 07/04/11 22:30 +0100, John wrote:
>> Good afternoon,
>>
>> I have just upgraded from Cyrus-IMAP 2.3.15 to 2.4.7 and my mailbox
>> delivery has stopped working.
>>
>> My procmail delivers mail using a command similar to the below :
>>
>> /usr/cyrus/bin/deliver -a john -m folder/subfolder john < message
>>
>> This would result in message being dropped into john/folder/subfolder
>>
>> Since the upgrade everything is delivered to john/INBOX; the "-m"
>> argument appears to have no effect.
>>
>> Is there something with this upgrade that I need to be aware of, that I
>> am now doing wrong?
>
> 'deliver' should deliver to the user's INBOX if it believes there's a
> permissions problem, or if it believes the mailbox doesn't exist. Does
> syslog give you any hints?
>
> What does your configuration look like? How are 'unixhierarchysep' and
> 'altnamespace' configured?
> To trouble shoot, try setting an 'anyone p' acl on your subfolder, or try
> one of:
>
> /usr/cyrus/bin/deliver -a john -m folder.subfolder john < message
> /usr/cyrus/bin/deliver -a john -m INBOX/folder/subfolder john < message
>
Nothing in syslog that really helped.
I have both "unixhierarchysep" and "altnamespace". From my conf:

configdirectory: /srv/mail/cyrus
partition-default: /srv/mail/cyrus/mail
admins: cyrus
sasl_pwcheck_method: saslauthd
altnamespace: yes
unixhierarchysep: yes

Nothing in that respect has changed. I've always had "altnamespace" to 
give me folders at the same level as INBOX and I've always had 
"unixhierarchysep" to give me folder separator of "/" rather than "." (I 
actually use the "." in some folder names).

My config worked fine for me for a very long time until I had to upgrade 
earlier this week. I think my ACLs are fine:

localhost.localdomain> lm user/john
user/john (\HasChildren)
localhost.localdomain> lm user/john/folder.name/subfolder
user/john/folder.name/subfolder (\HasChildren)
localhost.localdomain> lam user/john/folder.name/subfolder
john lrswipcda
localhost.localdomain> lam user/john
john lrswipcda
localhost.localdomain>

So I am stumped :)

Thanks for helping, much appreciated.






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


Re: multipart message with pdf file gets truncated

2011-04-07 Thread Julien Vehent


 On Thu, 7 Apr 2011 15:53:12 -0500, Mike Eggleston wrote:
> On Thu, 07 Apr 2011, Julien Vehent might have said:
>
>>  Hi list,
>
> Afternoon.
>
> My setup is:
>
> cloud mail -> DMZ sendmail <- internal sendmail -> cyrus
>
> Mail comes from the outside to the DMZ sendmail for spam and virus
> checking. The mail is held until the internal sendmail server pulls
> the mail (a script I wrote), then the internal hands the email to the
> internal cyrus for delivery.
>
> My truncation problem was happening when the internal server pulled
> the mail, then injected the mail into the internal sendmail. At the
> reinjection time there were a few messages that had a dot (.) in 
> column
> one. Per the RFC a dot (.) in column one is the signal to end the 
> SMTP
> input session (the data command).
>
> I needed to look for a dot (.) in column one and adjust the message
> before reinjection.
>


 That's an interesting scenario. I will run a tcpdump and see what 
 happens.
 However, in my case, wouldn't gmail's server behave the same way and 
 trunk the message at the dot ?

 Julien

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


Re: Deliver to mailbox problem with v2.4.7

2011-04-07 Thread Dan White
On 07/04/11 22:30 +0100, John wrote:
>Good afternoon,
>
>I have just upgraded from Cyrus-IMAP 2.3.15 to 2.4.7 and my mailbox
>delivery has stopped working.
>
>My procmail delivers mail using a command similar to the below :
>
>/usr/cyrus/bin/deliver -a john -m folder/subfolder john < message
>
>This would result in message being dropped into john/folder/subfolder
>
>Since the upgrade everything is delivered to john/INBOX; the "-m"
>argument appears to have no effect.
>
>Is there something with this upgrade that I need to be aware of, that I
>am now doing wrong?

'deliver' should deliver to the user's INBOX if it believes there's a
permissions problem, or if it believes the mailbox doesn't exist. Does
syslog give you any hints?

What does your configuration look like? How are 'unixhierarchysep' and
'altnamespace' configured? 

To trouble shoot, try setting an 'anyone p' acl on your subfolder, or try
one of:

/usr/cyrus/bin/deliver -a john -m folder.subfolder john < message
/usr/cyrus/bin/deliver -a john -m INBOX/folder/subfolder john < message

-- 
Dan White

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


Re: Deliver to mailbox problem with v2.4.7

2011-04-07 Thread Riccardo Veraldi
I am wondering why you have been using procmail with cyrus.
You should deliver to cyrus malboxes using LMTP with unix socket or with 
TCP.
You can easily change your configuration.
Also I think it is not very efficient to call the deliver process for 
every message to be delivered to a malbox.

IF you use sendmail + cyrus you do not need to use procmail, simply use 
the cyrusv2 definition sendmail macro.


Rick


On 4/7/11 11:30 PM, John wrote:
> Good afternoon,
>
> I have just upgraded from Cyrus-IMAP 2.3.15 to 2.4.7 and my mailbox
> delivery has stopped working.
>
> My procmail delivers mail using a command similar to the below :
>
> /usr/cyrus/bin/deliver -a john -m folder/subfolder john<  message
>
> This would result in message being dropped into john/folder/subfolder
>
> Since the upgrade everything is delivered to john/INBOX; the "-m"
> argument appears to have no effect.
>
> Is there something with this upgrade that I need to be aware of, that I
> am now doing wrong?
>
> Thanks,
> John
>
>
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


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


Re: multipart message with pdf file gets truncated

2011-04-07 Thread Mike Eggleston
On Thu, 07 Apr 2011, Julien Vehent might have said:

>  Hi list,

Afternoon.

My setup is:

cloud mail -> DMZ sendmail <- internal sendmail -> cyrus

Mail comes from the outside to the DMZ sendmail for spam and virus
checking. The mail is held until the internal sendmail server pulls
the mail (a script I wrote), then the internal hands the email to the
internal cyrus for delivery.

My truncation problem was happening when the internal server pulled
the mail, then injected the mail into the internal sendmail. At the
reinjection time there were a few messages that had a dot (.) in column
one. Per the RFC a dot (.) in column one is the signal to end the SMTP
input session (the data command).

I needed to look for a dot (.) in column one and adjust the message
before reinjection.

HTH

Mike

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


multipart message with pdf file gets truncated

2011-04-07 Thread Julien Vehent
 Hi list,

 I'm trying to diagnose a problem with a user receiving PDF files that 
 get truncated somehow.
 One of my user received a PDF file in his inbox today, and second part 
 of the page of the attached PDF is blank.
 He asked the sender to resend the same email to an external mailbox on 
 gmail, and the pdf was displaying fine (ruling out a possible problem on 
 the sender's side).

 I went to the cyrus partition and copied the raw email in a local text 
 file that I opened with thunderbird. The PDF is also truncated. (so it's 
 not a MUA problem).

 I am trying to diagnose this, but I'm not sure where to start. The 
 software stack is as follow:


 -Debian Squeeze--
-> [openldap]
 smtp->+--+/
   | postfix  | -> postgrey
   |  | -> dspam
   +--+
 \
  `->[cyrus-imap-2.2.13-19]
 -



 Sample of the email below:

 ==
 []
 Message-ID: <004e01cbf535$97ac62c0$c7052840$@fr>
 MIME-Version: 1.0
 Content-Type: multipart/mixed;
boundary="=_NextPart_000_004F_01CBF546.5B3532C0"
 X-Mailer: Microsoft Office Outlook 12.0
 Thread-Index: Acv1NZdYOJh+BtBQRUSMKv2Kl/KRlA==
 Content-Language: fr
 []
 This is a multi-part message in MIME format.

 --=_NextPart_000_004F_01CBF546.5B3532C0
 Content-Type: multipart/alternative;
boundary="=_NextPart_001_0050_01CBF546.5B3532C0"


 --=_NextPart_001_0050_01CBF546.5B3532C0
 Content-Type: text/plain;
charset="us-ascii"
 Content-Transfer-Encoding: 7bit

 Salut

 []

 --=_NextPart_001_0050_01CBF546.5B3532C0
 Content-Type: text/html;
charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable

  
 --=_NextPart_001_0050_01CBF546.5B3532C0--

 --=_NextPart_000_004F_01CBF546.5B3532C0
 Content-Type: application/pdf;
name="FC 2361.pdf"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
filename="FC 2361.pdf"

 %PDF-1.3
 %=FF=FF=FF=FF
 1 0 obj=0A=
 <<=0A=
 /Filter /Standard=0A=
 /U 
 <1ADBE3C9C640824CF6754B336A1088DEC6510A59D6C4818C90072BDCAA5E3190>=0A=
 /O 
 <20DF7A5FA972C424A023D59CC861F679B476BF87250F63CEAA69C43AB43F9F41>=0A=
 /P -3852=0A=
 /V 1=0A=

 []

 %%EOF=0A=

 --=_NextPart_000_004F_01CBF546.5B3532C0--

 ==END


 Now, without being a MIME expert, I assume that the last "NextPart" 
 line not being followed by anything is not a good thing.


 Any hing on where I should look to diagnose this ?



 Thanks a lot,

 Julien Vehent


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


Deliver to mailbox problem with v2.4.7

2011-04-07 Thread John
Good afternoon,

I have just upgraded from Cyrus-IMAP 2.3.15 to 2.4.7 and my mailbox 
delivery has stopped working.

My procmail delivers mail using a command similar to the below :

/usr/cyrus/bin/deliver -a john -m folder/subfolder john < message

This would result in message being dropped into john/folder/subfolder

Since the upgrade everything is delivered to john/INBOX; the "-m" 
argument appears to have no effect.

Is there something with this upgrade that I need to be aware of, that I 
am now doing wrong?

Thanks,
John



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


How to calculate the memory spent on a cyrus server with Linux 2.6?

2011-04-07 Thread Lucas Zinato Carraro
 I see in

http://www.cyrusimap.org/docs/cyrus-imapd/2.4.7/install-perf.php

..   In general, there's no magic bullet for performance. It depends on
your hardware, your operating system, and how your users use the system. In
general, an imapd process takes up anywhere from 256 Kbytes to 512 Kbytes of
memory When it is first fired up. ...


But when I use the pmap command I see that the memory est private spending
more than 512Kbytes.


pmap -d 32407
32407:   imapd
Address   Kbytes Mode  Offset   DeviceMapping
00401452 r-x--  0fd:0 imapd
0076b000 104 rw--- 0016b000 0fd:0 imapd
00785000  84 rw--- 00785000 000:0   [ anon ]
03d36000 512 rw--- 03d36000 000:0   [ anon ]
00373b40 112 r-x--  0fd:0 ld-2.5.so
00373b61b000   4 r 0001b000 0fd:0 ld-2.5.so
00373b61c000   4 rw--- 0001c000 0fd:0 ld-2.5.so
00373b801336 r-x--  0fd:0 libc-2.5.so
00373b94e0002048 - 0014e000 0fd:0 libc-2.5.so
00373bb4e000  16 r 0014e000 0fd:0 libc-2.5.so
00373bb52000   4 rw--- 00152000 0fd:0 libc-2.5.so
00373bb53000  20 rw--- 00373bb53000 000:0   [ anon ]
00373bc0   8 r-x--  0fd:0 libdl-2.5.so
00373bc020002048 - 2000 0fd:0 libdl-2.5.so
00373be02000   4 r 2000 0fd:0 libdl-2.5.so
00373be03000   4 rw--- 3000 0fd:0 libdl-2.5.so
00373c40  88 r-x--  0fd:0 libpthread-2.5.so
00373c4160002044 - 00016000 0fd:0 libpthread-2.5.so
00373c615000   4 r 00015000 0fd:0 libpthread-2.5.so
00373c616000   4 rw--- 00016000 0fd:0 libpthread-2.5.so
00373c617000  16 rw--- 00373c617000 000:0   [ anon ]
00373c80  80 r-x--  0fd:0 libz.so.1.2.3
00373c8140002044 - 00014000 0fd:0 libz.so.1.2.3
00373ca13000   4 rw--- 00013000 0fd:0 libz.so.1.2.3
00373d00 964 r-x--  0fd:0 libdb-4.3.so
00373d0f10002048 - 000f1000 0fd:0 libdb-4.3.so
00373d2f1000  20 rw--- 000f1000 0fd:0 libdb-4.3.so
00373d40  84 r-x--  0fd:0 libselinux.so.1
00373d4150002048 - 00015000 0fd:0 libselinux.so.1
00373d615000   8 rw--- 00015000 0fd:0 libselinux.so.1
00373d617000   4 rw--- 00373d617000 000:0   [ anon ]
00373d80 236 r-x--  0fd:0 libsepol.so.1
00373d83b0002048 - 0003b000 0fd:0 libsepol.so.1
00373da3b000   4 rw--- 0003b000 0fd:0 libsepol.so.1
00373da3c000  40 rw--- 00373da3c000 000:0   [ anon ]
00373e00  96 r-x--  0fd:0 libsasl2.so.2.0.22
00373e0180002048 - 00018000 0fd:0 libsasl2.so.2.0.22
00373e218000   4 rw--- 00018000 0fd:0 libsasl2.so.2.0.22
00373e40 224 r-x--  0fd:0
libldap-2.3.so.0.2.31
00373e4380002048 - 00038000 0fd:0
libldap-2.3.so.0.2.31
00373e638000   8 rw--- 00038000 0fd:0
libldap-2.3.so.0.2.31
00373e80  52 r-x--  0fd:0
liblber-2.3.so.0.2.31
00373e80d0002048 - d000 0fd:0
liblber-2.3.so.0.2.31
00373ea0d000   4 rw--- d000 0fd:0
liblber-2.3.so.0.2.31
00374000  32 r-x--  0fd:0 libwrap.so.0.7.6
0037400080002044 - 8000 0fd:0 libwrap.so.0.7.6
003740207000   8 rw--- 7000 0fd:0 libwrap.so.0.7.6
003742001204 r-x--  0fd:0
libcrypto.so.0.9.8e
00374212d0002044 - 0012d000 0fd:0
libcrypto.so.0.9.8e
00374232c000 132 rw--- 0012c000 0fd:0
libcrypto.so.0.9.8e
00374234d000  16 rw--- 00374234d000 000:0   [ anon ]
00374280  84 r-x--  0fd:0 libnsl-2.5.so
0037428150002044 - 00015000 0fd:0 libnsl-2.5.so
003742a14000   4 r 00014000 0fd:0 libnsl-2.5.so
003742a15000   4 rw--- 00015000 0fd:0 libnsl-2.5.so
003742a16000   8 rw--- 003742a16000 000:0   [ anon ]
00374340 280 r-x--  0fd:0 libssl.so.0.9.8e
0037434460002048 - 00046000 0fd:0 libssl.so.0.9.8e
003743646000  24 rw--- 00046000 0fd:0 libssl.so.0.9.8e
00374520  36 r-x--  0fd:0 libcrypt-2.5.so
0037452090002044 - 9000 0fd:0 libcrypt-2.5.so
00

Bidirectional sync between 2 imap server

2011-04-07 Thread Arnaud Blondel - AWS

Hi,

I have to sync an account created on 2 Cyrus-imap servers 
(bi-directional sync).


I tried mbsync, mailsync but these tools don't work, there are many 
problems when user delete / move / create folders.


Have you another tool to do it ?

Tanks in advance
<>
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/