Re: multipart message with pdf file gets truncated

2011-04-08 Thread Julien Vehent
 On Fri, 08 Apr 2011 09:27:29 -0400, Joseph Brennan wrote:
 Julien Vehent jul...@linuxwall.info wrote--

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

 No, that last boundary marks the end of the mime part, signfifed by
 the two hyphens at the end. In this case it's the end of the whole
 message.

 That happens to prove that the message is not truncated. Only the
 software that created the message would have written that end 
 boundary.

 My conclusion is that the message arrived as is. Either the original
 PDF was damaged, or the message was created with damage.


 Alright, thanks for the analysis.
 I will try to gather more data on the server, and if possible dump the 
 connection before it's handled by postfix.
 Since the client is sending the same email to another mailbox, and it 
 works fine, I would like to make sure my setup works fine before blaming 
 anybody else...


 Thanks,
 Julien

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

 html xmlns:v=3Durn:schemas-microsoft-com:vml =
 xmlns:o=3Durn:schemas-microsoft-com:office:office =
 xmlns:w=3Durn:schemas-microsoft-com:office:word =

 []
 class=3DMsoNormalo:pnbsp;/o:p/p/div/body/html
 --=_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/


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: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
On 12/14/2010 02:18 PM, Adam Tauno Williams wrote:
 On Tue, 2010-12-14 at 14:14 -0500, Julien Vehent wrote:
 Hi list,
 I was experimenting with shared mailboxes today. That's something new
 I've never used before.
 I wrote a wiki page of my setup on debian squeeze (still on cyrus 2.2)
 and was wondering if that was the state of the art, or if there were any
 better way to do it.
 http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:shared_mailbox
 Also, I didn't find any documentation on the subject on the website. Did
 I miss something ?

 Nope, that's about it.  They are very simple, and simple to use [once
 you manage to get *users* to understand them - which is the hard part].


Hi there,

I have a problem with the shared mailbox and roundcube webmail.
While Thunderbird can access the shared mailbox just fine, roundcube 
lists it (LSUB) but can't access it (It looks for 
INBOX.shared.testshared instead of shared.testshared).

 From the roundcube mailing list, that could be due to a wrong namespace 
information returned from cyrus.

The namespace returned is the following:

---
. namespace
* NAMESPACE ((INBOX. .)) ((user. .)) (( .))
---

Question is: shouldn't the 3rd argument be of the type shared. ?
(Like in example 5.4 of the RFC [1]).


Thanks,
Julien


[1] http://tools.ietf.org/html/rfc2342

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


Re: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
On 12/16/2010 09:32 AM, Adam Tauno Williams wrote:
 On Thu, 2010-12-16 at 09:24 -0500, Julien Vehent wrote:
 On 12/14/2010 02:18 PM, Adam Tauno Williams wrote:
 On Tue, 2010-12-14 at 14:14 -0500, Julien Vehent wrote:
 Hi list,
 I was experimenting with shared mailboxes today. That's something new
 I've never used before.
 I wrote a wiki page of my setup on debian squeeze (still on cyrus 2.2)
 and was wondering if that was the state of the art, or if there were any
 better way to do it.
 http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:shared_mailbox
 Also, I didn't find any documentation on the subject on the website. Did
 I miss something ?
 Nope, that's about it.  They are very simple, and simple to use [once
 you manage to get *users* to understand them - which is the hard part].
 I have a problem with the shared mailbox and roundcube webmail.
 While Thunderbird can access the shared mailbox just fine, roundcube
 lists it (LSUB) but can't access it (It looks for
 INBOX.shared.testshared instead of shared.testshared).
   From the roundcube mailing list, that could be due to a wrong namespace
 information returned from cyrus.
 The namespace returned is the following:
 ---
 . namespace
 * NAMESPACE ((INBOX. .)) ((user. .)) (( .))
 ---
 Question is: shouldn't the 3rd argument be of the type shared. ?
 (Like in example 5.4 of the RFC [1]).

 I dunno about 5.4 but I believe the postuser [assuming that is where
 your shared thinking comes from] is only used to allow posting [via
 LMTP?] directly to a shared folder.  I didn't/don't think it indicates
 the actual namespace of non-user folders.

 Perhaps this relates to a RoundCube bug
 http://trac.roundcube.net/ticket/1403507?  RC's bad folder management
 is pretty well known.


Here is the roundcube's thread: 
http://lists.roundcube.net/mail-archive/users/2010-12/028.html

The postuser works fine. The problem seems to be purely namespace related.

The RFC states the following:
---
NAMESPACE Command
Arguments: none
Response:  an untagged NAMESPACE response that contains the prefix
  and hierarchy delimiter to the server's Personal
  Namespace(s), Other Users' Namespace(s), and Shared
  Namespace(s) that the server wishes to expose. The
  response will contain a NIL for any namespace class
  that is not available. Namespace_Response_Extensions
  MAY be included in the response.
  Namespace_Response_Extensions which are not on the IETF
  standards track, MUST be prefixed with an X-.
Result:OK - Command completed
  NO - Error: Can't complete command
  BAD - argument invalid
---

In the namespace command I posted above, the 3rd argument (Shared 
Namespace(s) that the server wishes to expose) is empty.
Does that mean that cyrus does name return the namespace of shared 
mailboxes ?
Should it be fixed in the configuration (and how)?


Once again, I'm not sure if it's a roundcube or cyrus problem here (it 
might also be a human mistake). But since I'm discovering the subject, I 
need some help to understand this whole NAMESPACE thing.


Thanks,
Julien

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


Re: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
On 12/16/2010 10:48 AM, Simon Matter wrote:
 On 12/16/2010 10:01 AM, Adam Tauno Williams wrote:
 Don't know,  I see -

 123 NAMESPACE
 * NAMESPACE (( .)) ((Other Users. .)) ((Shared Folders. .))
 123 OK Completed

 Have you specified a sharedprefix: in imapd.conf?  Your second value
 users. looks odd as well [have you specified a userprefix:?]  If
 true for either case - don't unless you really have a need to.



 Got it ! It was the altnamespace option in /etc/imapd.conf that was set
 to no (debian's default).

 Hm, sounds more like a workaround than a solution :)
 It should really work with altnamespace=no as well, which is the Cyrus
 default and it has always worked for me with many different clients, but I
 never used roundcube.

 Simon

It doesn't though...
I tried to specify
sharedprefix: shared
sharedprefix: Shared Folders.
sharedprefix: Shared Folders

in /etc/imapd.conf (with altnamespace: no) and it has no influence on 
the returned namespace.


Julien


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


Re: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
On 12/16/2010 11:25 AM, Adam Tauno Williams wrote:

 Are you restarting the Cyrus service between changes to the
 configuration [imapd.conf] file?  Are you sure you are editing the
 correct imapd.conf file?



Yes and yes. Once again, when I change altnamespace to yes in that 
imapd.conf file, the returned namespace changes from:

---
. namespace
* NAMESPACE ((INBOX. .)) ((user. .)) (( .))
---

to

---
. namespace
* NAMESPACE (( .)) ((Other Users. .)) ((Shared Folders. .))
---

And that's without specifying any userprefix or sharedprefix.

I read the html file on namespace configuration shipped with debian, but 
that's not much information. Is there anything else in the documentation 
or man file that I missed ?

Packages is Debian Squeeze cyrus-imapd-2.2

---
cyrus-imapd-2.2  2.2.13-19   Cyrus mail system - IMAP support
---


Julien

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


Re: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
Reading this old post from the mailing list:

http://www.mail-archive.com/info-cyrus@lists.andrew.cmu.edu/msg02406.html

It seems that userprefix and sharedprefix are only taken into account 
when altnamespace: yes. Correct ?


Then, how can I obtain the same behavior with altnamespace: no ?


Thanks,
Julien

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


Re: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
On 12/16/2010 01:04 PM, Andrew Morgan wrote:
 You appear to be logged in as a cyrus admin user. In that case, the
 NAMESPACEs listed above are correct. Other Users are in the user.
 hierarchy, and Shared Folders are at the root level, in Cyrus'
 internal namespace.


I'm logged in with my personal user.
Here is the sequence with altnamespace:yes

---
* OK webmail Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready
. login julien XXX
. OK User logged in
. namespace
* NAMESPACE (( .)) ((Other Users. .)) ((Shared Folders. .))
. OK Completed
. list  *
* LIST (\Noinferiors) . INBOX
* LIST (\HasNoChildren) . Sent
* LIST (\HasChildren) . Trash
* LIST (\HasNoChildren) . drafts
* LIST (\HasNoChildren) . root
* LIST (\HasNoChildren) . sent-mail
* LIST (\HasNoChildren) . Shared Folders.shared.testshared
. OK Completed (0.000 secs 9 calls)

---

And now the sequence with altnamespace: no

---
* OK webmail Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready
. login julien XX
. OK User logged in
. namespace
* NAMESPACE ((INBOX. .)) ((user. .)) (( .))
. OK Completed
. list  *
* LIST (\HasChildren) . INBOX
* LIST (\HasNoChildren) . INBOX.Sent
* LIST (\HasChildren) . INBOX.Trash
* LIST (\HasNoChildren) . INBOX.drafts
* LIST (\HasNoChildren) . INBOX.root
* LIST (\HasNoChildren) . INBOX.sent-mail
* LIST (\HasNoChildren) . shared.testshared
---


Julien

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


Re: Shared mailboxes doc

2010-12-16 Thread Julien Vehent
On 12/16/2010 01:54 PM, Dan White wrote:
 See RFC 2342 for the specification on what the NAMESPACE response means.

 In this case, it appears you created a mailbox named 'shared.testshared',
 which falls under the shared name space in Cyrus, and in which case the
 'shared.' part of the mailbox name is redundant, and may be confusing the
 issue. A mailbox named 'testshared' would also fall under the shared
 namespace.

 That mailbox would correctly be returned as 'shared.testshared' with
 altnamespace turned off, and 'Shared Folders.shared.testshared' with it
 turned on and 'sharedprefix' configured with 'Shared Folders', which is the
 default.

 Both cases are correct and a compliant IMAP client should handle both. In
 neither case should the mailbox be searched for under the personal name
 space, which roundcube appears to be doing.


I just tried to create a mailbox without the 'shared.' prefix, as follow:

---
# cyradm --user cyrus localhost
Password:
localhost cm shrdmailbx
localhost sam shrdmailbx anyone p
localhost sam shrdmailbx julien lr
localhost sam shrdmailbx michel lrswipcd
localhost quit
---

I set altnamespace:no and restarted cyrus.
The result is the same as before. I can subscribe and access the mailbox 
from thunderbird, but I can't from roundcube.

When i set altnamespace: yes and restart cyrus, I can access the mailbox 
'resgate' from roundcube.

I will forward that information to the roundcube's mailing list and work 
with them to solve the issue.

Thanks for your help

Julien

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


Shared mailboxes doc

2010-12-14 Thread Julien Vehent
Hi list,

I was experimenting with shared mailboxes today. That's something new 
I've never used before.
I wrote a wiki page of my setup on debian squeeze (still on cyrus 2.2) 
and was wondering if that was the state of the art, or if there were any 
better way to do it.

http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:shared_mailbox

Also, I didn't find any documentation on the subject on the website. Did 
I miss something ?


Thanks,
Julien

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


Store documents in IMAP folders

2010-09-12 Thread Julien Vehent
Hello cyrus list,

I am wondering if it would be possible to use mailboxes as document 
repositories (in addition to emails) and how it could be done.
Should the document be wrapped in a MIME envelop before being uploaded ?
Any software that would actually do that ?


Thanks,
Julien


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


Re: Store documents in IMAP folders

2010-09-12 Thread Julien Vehent
On Sun, 12 Sep 2010 11:01:29 +0100, Gavin McCullagh gavin.mccull...@gcd.ie 
wrote:
 On Sun, 12 Sep 2010, J. Roeleveld wrote:
 
 I sometimes do this to store a document that I want to keep quickly from a
 public PC.
 I basically create a draft-email and attach the document to this.
 This can be done with any email-client (including webmail)
 
 If (heaven forbid) you're using relatively recent versions of Outlook, you
 can just drag and drop files into mail folders and it will automatically
 create a mail from you to you on that date in that folder.  As you're
 (presumably) using Cyrus, you can then share the folder with other users as
 a sort of poor-man's file share.
 

The goal is to have a PDF library available at any time, with basic file search 
on document/message name, so a file share doesn't solve my problem (and I don't 
want any document management system, I just want access to files).

If outlook does it, I suppose I could code a basic PHP upload page that create 
an email containing the document and stores it into the IMAP directory (and 
integrate that to Roundcube, since it's my webmail).

I was just wondering if Cyrus would support any other method.

Julien


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


Re: Action on move to folder

2010-09-03 Thread Julien Vehent
On Thu, 02 Sep 2010 16:27:26 -0400, Adam Tauno Williams
awill...@whitemice.org wrote:
 On Thu, 2010-09-02 at 22:17 +0200, Julien Vehent wrote:
 Hello cyrus folks,
 I would like to find a solution to easily feed dspam, and I was
 wondering if there would be an elegant way to trigger an action when a
 message is moved to a specific folder. ie:
 move message 'm' to folder 'spam' triggers 'send m to
 s...@mydomain.net' (or even better, launch an external program with 'm'
 as an argument).
 Can imapd do that ? Sieve maybe ?
 
 I haven't found a way.  
 
 It would be great; we use RabbitAMQ extensively and I've looked for a
 way to *reliably* pop a message append-to-folder-XYZ into the queue.
 You can scrape the logs or fad the filesystem folder, but neither ends
 up being terribly *reliable*.

In might case, it would be even more simply to add a button to the
webmail interface that performs the move to folder and the forward. But
I was looking for a imap side action, that would be client side
independant.

Is there a wishlist for imapd where I could add this feature ?

Julien

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Action on move to folder

2010-09-02 Thread Julien Vehent
Hello cyrus folks,

I would like to find a solution to easily feed dspam, and I was 
wondering if there would be an elegant way to trigger an action when a 
message is moved to a specific folder. ie:

move message 'm' to folder 'spam' triggers 'send m to 
s...@mydomain.net' (or even better, launch an external program with 'm' 
as an argument).

Can imapd do that ? Sieve maybe ?


Thanks,

Julien


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus-Imap and auxprop ldap

2010-05-10 Thread Julien Vehent
(Oops, didn't send that to the list)

On Fri, 7 May 2010 08:34:51 -0500, Dan White dwh...@olp.net wrote:
 
 Verify that your ldapdb auxprop plugin can be initialized:
 
 echo ldapdb_uri: ldap://localhost;  /usr/lib/sasl2/pluginviewer.conf
 
 (the other parameters are not necessary)
 
 pluginviewer | grep ldapdb
 
 (saslpluginviewer on debian based systems)
 

Great ! That the part that was missing !
I activated ldapdb and the authentication is now working perfectly.

The whole thing is described here:
http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:imapd#cyrus_sasl_and_openldap

Thanks again, Dan.


Julien


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus-Imap and auxprop ldap

2010-05-07 Thread Julien Vehent
On Thu, 6 May 2010 11:34:57 -0500, Dan White dwh...@olp.net wrote:
 On 06/05/10 11:28 -0500, Dan White wrote:
ldapdb_uri: ldap://ldap.example.com
ldapdb_id: root
ldapdb_pw: secret
ldapdb_mech: DIGEST-MD5
 
 That should really be:
 
 sasl_ldapdb_uri: ldap://ldap.example.com
 sasl_ldapdb_id: root
 sasl_ldapdb_pw: secret
 sasl_ldapdb_mech: DIGEST-MD5

Thanks for your reply. I changed my parameters to:

-
# grep -E sasl|ldap /etc/imapd.conf |grep -v #
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: ldapdb
sasl_auto_transition: no
sasl_ldapdb_uri: ldap://localhost
sasl_ldapdb_id: cyrus
sasl_ldapdb_pw: cyrusadmin
sasl_ldapdb_mech: DIGEST-MD5
-


But without luck so far. 

--
# nc localhost 143
* OK ses0gnoc Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready
. login julien password
. NO Login failed: authentication failure
. logout
* BYE LOGOUT received
. OK Completed
--

And I do not see any connection going to localhost:389 (sniffing with
tcpdump on lo).

-
# tcpdump -s 16500 -X -Svni lo tcp and port 389
tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 16500
bytes

-

auth.log and slapd.log are not logging anything. mail.info logs the
following:

-
# tail -n 3 /var/log/mail.info
Mar  9 05:15:35 ses0gnoc cyrus/ctl_cyrusdb[4285]: checkpointing cyrus
databases
Mar  9 05:15:36 ses0gnoc cyrus/ctl_cyrusdb[4285]: done checkpointing cyrus
databases
Mar  9 05:17:30 ses0gnoc cyrus/imap[4298]: badlogin: localhost [127.0.0.1]
plaintext julien SASL(-13): user not found: checkpass failed
-

Am I missing something ? Do I still need saslauthd to be running next to
imapd ?


Best,
Julien

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus-Imap and auxprop ldap

2010-05-06 Thread Julien Vehent
Hey guys,

I'm trying to allow my cyrus-imap server to bind to the LDAP directory
using SASL and without the need of saslauthd.
I have a working Slapd server that allow proxy authorization for user
cyrus:

-
# ldapwhoami -U cyrus -Y DIGEST-MD5 -X u:michel -H ldap://localhost
SASL/DIGEST-MD5 authentication started
Please enter your password:
SASL username: u:michel
SASL SSF: 128
SASL data security layer installed.
dn:cn=michel rene,ou=mail,dc=example,dc=net
-

However, I can't make this work with imapd. I tried to reuse information
from the man page, but it brought me nowhere...
My imapd.conf contain the following (regarding sasl and ldap only):

-
# grep -E sasl|ldap /etc/imapd.conf |grep -v #
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: ldapdb
sasl_auto_transition: no
ldap_uri: ldap://localhost
ldap_realm: example.net
ldap_id: cyrus
ldap_password: cyrusadmin
-

Is there any doc anywhere ? If you guys can help me set this up, I'm
planning on writing it down on my wiki:
http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:imapd


Thanks,
Julien

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus + postfix + ldap

2010-04-06 Thread Julien Vehent
On Tue, 06 Apr 2010 00:32:49 +0200, Alexander Dalloz ad+li...@uni-x.org
wrote:
 Am 05.04.2010 23:16, schrieb Joe Vieira:
 
 in your imapd.conf
 
 #SASL set up
 sasl_pwcheck_method: saslauthd
 sasl_mech_list: PLAIN LOGIN (if you use plain)
 
 Well, that does not make saslauthd magically use auth information from
 an LDAP directory.
 
 Diego, your OS should ship cyrus-sasl together with the documentation
 files. So you should have on your system a docs file called
 LDAP_SASLAUTHD. That one describes what you need to know to configure a
 proper saslauthd.conf for your environment.
 

I've been using this setup for a while, and a few weeks ago, I wrote
finally wrote it down

http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:imapd
look for chapter Cyrus SASL and OpenLDAP

But, then, I realized cyrus-imapd could bind using SASL directly to the
LDAP directory without using saslauthd. I've been trying to make this setup
work but didn't succeed yet. (I need to spend more time on the LDAP
configuration side).


More information on SASL with OpenLDAP here:
http://www.openldap.org/doc/admin24/sasl.html


Julien

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Question about 'flagged' attribute

2009-11-23 Thread Julien Vehent
Hello Cyrus guys,

I was wondering if there were any undergoing work to extend the flagged
attribute of IMAP into something more configurable ?

I am thinking of some sort of labelling similar to what is implemented on
gmail, for example, but also with the wirtual folders in Outlook and
extended tagging in Thunderbird. 

AFAIK, so far these features have been implemented in the email clients.
But because I consult my emails with, at least, 4 different clients
(cellphone on windows mobile, laptop with kmail, webmail with roundcube,
other laptop with thunderbird), I would like to have the categories (flags,
labels, whatever) an email belongs to stored inside the IMAP server.

I'm not really aware of the work going on around IMAP, I figured you guys
might know a little more about this, and maybe be working on something
specific to cyrus-imap?


Thanks,

Julien


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Question about 'flagged' attribute

2009-11-23 Thread Julien Vehent
On Mon, 23 Nov 2009 08:48:30 -0600, Dan White dwh...@olp.net wrote:
 On 23/11/09 10:17 +0100, Julien Vehent wrote:
I was wondering if there were any undergoing work to extend the
flagged
attribute of IMAP into something more configurable ?

I am thinking of some sort of labelling similar to what is implemented
on
gmail, for example, but also with the wirtual folders in Outlook and
extended tagging in Thunderbird. 
 
 Per RFC 3501 (page 63):
 
PERMANENTFLAGS
 
   Followed by a parenthesized list of flags, indicates which of
   the known flags the client can change permanently.  Any flags
   that are in the FLAGS untagged response, but not the
   PERMANENTFLAGS list, can not be set permanently.  If the
client
   attempts to STORE a flag that is not in the PERMANENTFLAGS
   list, the server will either ignore the change or store the
   state change for the remainder of the current session only.
   The PERMANENTFLAGS list can also include the special flag \*,
   which indicates that it is possible to create new keywords by
   attempting to store those flags in the mailbox.
 
 
 It appears 2.3.x supports '\*':
 
 dwh...@thebrain:~$ imtest ...
 cut
 Authenticated.
 111 select INBOX
 * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
 * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
 cut
 111 OK [READ-WRITE] Completed
 222 store 1 +flags (reallyreallyimportant)
 * FLAGS (\Answered \Flagged \Draft \Deleted \Seen reallyreallyimportant)
 * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen
 * reallyreallyimportant \*)]
 222 OK Completed
 333 search keyword reallyreallyimportant
 * SEARCH 1
 333 OK Completed (1 msgs in 0.000 secs)
 444 logout
 * BYE LOGOUT received
 444 OK Completed
 Connection closed.


Great ! Thanks for the pointer, I'll look into this and see if it's
supported by the clients I use.


Julien


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Question about 'flagged' attribute

2009-11-23 Thread Julien Vehent
Humm I'm not sure of this but aren't annotations associated to
mailboxes and not emails?



On Mon, 23 Nov 2009 10:01:36 -0500, Brian Awood baw...@umich.edu wrote:
 This was just discussed on the list,  check the thread 
 ANNOTATEMORE = METADATA and rfc 5464 in the archive.
 
 -Brian
 
 On Monday 23 November 2009 @ 04:17, Julien Vehent wrote:
 Hello Cyrus guys,

 I was wondering if there were any undergoing work to extend the
 flagged attribute of IMAP into something more configurable ?

 I am thinking of some sort of labelling similar to what is
 implemented on gmail, for example, but also with the wirtual
 folders in Outlook and extended tagging in Thunderbird.

 AFAIK, so far these features have been implemented in the email
 clients. But because I consult my emails with, at least, 4
 different clients (cellphone on windows mobile, laptop with kmail,
 webmail with roundcube, other laptop with thunderbird), I would
 like to have the categories (flags, labels, whatever) an email
 belongs to stored inside the IMAP server.

 I'm not really aware of the work going on around IMAP, I figured
 you guys might know a little more about this, and maybe be working
 on something specific to cyrus-imap?


 Thanks,

 Julien

 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: moving a cyrus folder and reconstruct?

2009-11-18 Thread Julien Vehent
On Wed, 18 Nov 2009 15:49:50 +0100, mayak-cq ma...@australsat.com wrote:
 hi all,
 

hello :)

 i've been migrating from smartermail to cyrus using imapsync
 
 that has worked, yet, i end up with an Inbox child of Inbox.
 
 i'd like to goto the file system and just move the folders around and
 delete the 2nd Inbox, however, cyrus barfs.
 
 is there a way to move the mail folders using a script?
 

when I have to move mailboxes, I do the following :

http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:cyrus:migrate_maiboxes

hope it helps,

julien

 many thanks
 
 mcq
 
 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html