Re: Sieve and encoded Headers

2010-02-08 Thread Garry
On 08.02.2010 08:28, Bron Gondwana wrote:
 I've CC'd Ken on this - I wonder if it's worth going back and doing a
 minimal still compatible set of patches that fixes charset encoding in
 sieve without actually changing the on disk format of the cyrus.cache
 (which is what requires reconstructs to make things work again)

I've not looked into the sources, so please be kind if I'm totally off
the path here, but in general I wouldn't expect the comparison to
require changing the on-disk format of the stored information - just
ensure that upon reading (and thus comparing) something, add a function
that creates a decoded copy of the header string (e.g. by going to UTF8
on everything, including the sieve rule information), then compare that ...

 But - I can tell you that we're not going to be backporting this sort of
 thing to the 2.2 series, so you'll certainly need to upgrade!

I was just stating the facts, no problem here if it needs to be updated
... I just dropped in the current APT packages for ease of
administration ...

Thanks for the feedback,

Garry

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


Sieve and encoded Headers

2010-02-07 Thread Garry
Hi,

after wondering for a while why occasionally my sieve script rules
wouldn't work, I just found the reason (I guess) - Sieve doesn't
(correctly?) decode utf encoded header lines which e.g. are in a format
like this:

Subject: 
=?utf-8?B?W0xPR10gV2F0Y2hsaXN0OiBzbWVhZ29sIGZvdW5kIEdydcOfIGF1cyBkZXIgVW50ZXJ3ZWx0IChVbmtub3duIENhY2hlKQ==?=


I'm using version: Cyrus timsieved v2.2.13-Debian-2.2.13-19 ... is it
something that is fixed in a newer version? I tried finding something on
the net, but at least the first couple of results pages didn't yield any
insight ...

Tnx, garry

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: New mail in folders notification?

2010-01-31 Thread Garry
On 31.01.2010 20:09, Nicolas KOWALSKI wrote:

 Is this a basic problem/shortcoming of the MUA, or a configuration thing on 
 Cyrus?
 Having the folders and seeing new mail has come in is the point of doing
 this to begin with ;)
 
 In Thunderbird, you want the variable (Options, Advanced, Config Editor)
 'mail.check_all_imap_folders_for_new' set to 'true' for this behaviour.
   
Ah, seems to be working! Thanks!!!

-garry

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


Authenticating with LDAP tree ...

2009-07-13 Thread Garry
Hi,

I'm trying to authenticate users against an LDAP database ... now, I
already have that running on several servers that use the normal tree
setup, something like cn=username,ou=somebranch,ou=domain,ou=tld, with
a search_base of ou=domain,ou=tld. The place I'm trying to configure it
for now is using a - AFAICT - rather unusal schema, as they have a tree
that uses multiple top level o=, and start underneath there, so there
may by user entries like

cn=user1,ou=USERS,o=branch1
and cn=user2,ou=USERS,o=branch2

(historically, ldap trees from several locations were just merged
together, which led to this)

How can I get SASL to search in such a configuration? I already tried a
ou=USERS,o=* syntax, which I didn't expect to work (and it didn't)

Also, I know that saslauthd or other apps will need to check the
resulting username/pw, so I tried binding with the DN and PW of an
account, resulting in a Confidentiality required ... using ldaps://
notation didn't work, as the remote server (Novell eDirectory) probably
isn't configured for that, and -Z for TLS also fails with

ldap_start_tls: Server is unavailable (52)
additional info: TLS services are not available

From what I can find, the message should come up if the server is
configured for requiring secure queries, but then I would expect it to
also be configured to SUPPORT either one of the methods ...

Help appreciated,

-garry


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: Upgrade and Migration

2009-07-04 Thread Garry Glendown
I've been following this thread, I will be doing an IMAP migration from
an older to a more current version (albeit, not the newest). I was
wondering - is imapsync (or IMAP for that matter) able to copy all the
folders, permissions etc. by using the cyrus admin user instead of all
the separate users? That would save a lot of work ...

Tnx, -garry

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: Upgrade and Migration

2009-07-04 Thread Garry
Simon Matter wrote:
 I think an easier way is to use the 'proxyservers' option to declare a
 proxy user allowed to access all mailboxes. This user can then be used by
 imapsync. I'm quite sure the archives hold detailed information on this as
 I don't remember all the details.
   
Cool! Works, at least accessing the user mail directories ... guess I
will still have to figure out the best way of transferring all the
access rights to the new server, but this should at least get the mails
copied more easily ...

-garry

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


Automatically moving marked mails?

2009-07-01 Thread Garry
Hi,

in order to fix a customer's wrong perception of how a mail server
should work, I was wondering:

Is there a way to make Cyrus IMAP move marked-for-deletion mails to a
trash folder, effectively purging it from the original folder?

Tnx, -garry

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


Auto-creating accounts?

2009-06-24 Thread Garry Glendown
Hi,

I have a cyrus setup that is working fine, with LDAP auth and the other
9 yards ...

I will start a 600+ user migration pretty soon ... for now, I plan on
setting up a mirror setup on a VM to let the users get used to the new
system ... I was planning on forwarding all live mail from the old
system to the test system ... problem is, all the cyrus accounts aren't
there yet, and won't be until I do the live migration ... which means I
can't receive mails on the system until the user loggs in once ...

is there a way to get Deliver to create the accounts, in contrast to
IMAP which already does it?

Tnx, -garry

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: Sieve: Vacation not working (solved)

2009-05-28 Thread Garry
Sebastian Hagedorn wrote:
 --On 27. Mai 2009 22:42:30 -0400 Gottschalk, David
 dgot...@emory.edu wrote:

 Well, I tried to enable this same feature this evening in sendmail, but
 ran into some problems. Forgive me as I am complete novice when it comes
 to enabling this feature in sendmail. I enabled this in my sendmail.cf,

 You didn't actually edit the .cf file, did you? That's not how it
 works ... you need to edit the .mc and generate the .cf.
He didn't, he put it in the .mc and m4'd it ... anyway, I suppose the
cause is the rather old sendmail 8.12 he is running, which most likely
doesn't have the appropriate files for cyrusv2 as a mailer yet ...

I'm not sure if it will be sufficient to just add the appropriate config
files, or if the cyrusv2-files require some additional functionality
inside sendmail 8.13.x that might not be present in earlier versions ...

-garry

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: Sieve: Vacation not working (solved)

2009-05-28 Thread Garry Glendown
Garry wrote:
 define(`confLOCAL_MAILER', `cyrus')dnl
 ifdef(`CYRUS_MAILER_ARGS',,
  `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
 dnl MAILER(`cyrus')dnl

Of course, that was

MAILER(`cyrus')dnl

Also, please note that the define/ifdef part was well above all the
other MAILER lines, whereas the MAILER line was inserted as the last
MAILER line, on both versions ...

-garry

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: Sieve: Vacation not working

2009-05-27 Thread Garry
Adam Tauno Williams wrote:
 On Tue, 2009-05-26 at 09:21 -0400, Gottschalk, David wrote:
   
 See, I'm using this entirely custom deliver script in .procmailrc, and
 I think that is my problem. I think if Sieve doesn't get a proper from
 address, it will not reply. The question is how do you know if this is
 occurring?
 

 Sendmail has been able to perform LMTP delivery (no deliver required)
 for a long time.

   
 You might try different configuration options of that. I've seen searching 
 the web that some people had vacation reply issues with different 
 configurations of the Cyrus mailer(s).
 
 How do you hand off mail from Sendmail to Cyrus? I'm thinking that could be 
 my issue, maybe yours too.
   
 I'm using the cyrus feature
 define(`confLOCAL_MAILER', `cyrus')dnl
 ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
 in the mc file, and as the regular sorting seems to work (moving certain
 mails to other folders e.g.), as well as storing incoming mail in the
 appropriate inboxes, I assume the Cyrus interface as such should be
 working fine, as well as the Sieve call ... what puzzles me is that I
 don't even see Sieve attempt to deliever anything, at least not locally
 - plus I can't seem to find any config file that would contain
 definitions about what to do with mails generated by Sieve (like, e.g.,
 what Mailserver to use)
 

 This is specified in imapd.conf via the sendmail directive.
   
Yes, found that in the meantime ... anyway, still no success ...
according to the mail log, it's not being called, at least there are
still no messages from it ... I enabled the debugging_command, using
strace to get some infos on whether it is even trying to call sendmail
... from what I can tell, it doesn't even attempt to do anything ... is
the vacation line valid the way it is in the script?

Also, the logfile created by this line:

debug_command: /usr/bin/strace -tt -f -s256 -o /tmp/strace.cyrus.%s.%d
-p %2$d - 21 

doesn't show up right away either ...

Isn't there any way to make timsieved more verbose about what it's (not)
doing and why?

Tnx, -garry

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: Sieve: Vacation not working

2009-05-27 Thread Garry

 Also, the logfile created by this line:
 [..]
 doesn't show up right away either ...
   
Actually, I just noticed that timsieved of course isn't even the process
responsible for doing any filtering, but only for doing the back-end
script stuff ... so I added the -D to the lmtpd line, which I _assume_
(please correct me if I'm wrong) is the process that actually should be
doing the sieve checking and processing ... anyway, there was no sign
that lmtpd attempted to do any sendmail interaction ...

Help, anybody?

Tnx, -garry

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: Sieve: Vacation not working

2009-05-27 Thread Garry
Carsten Hoeger wrote:
 On Wed, May 27, Garry wrote:

   
 Also, the logfile created by this line:
 [..]
 doesn't show up right away either ...
   
   
 Actually, I just noticed that timsieved of course isn't even the process
 responsible for doing any filtering, but only for doing the back-end
 script stuff ... so I added the -D to the lmtpd line, which I _assume_
 (please correct me if I'm wrong) is the process that actually should be
 doing the sieve checking and processing ... anyway, there was no sign
 that lmtpd attempted to do any sendmail interaction ...
 

 AFAIR the Mail headers must contain the addresses you specified in the
 vacation rules. Did you check that?
   
Yes ...
 Also keep in mind, that vacation mail is not sent, when sender and recipient
 are the same.
   
No, tried sending from a multitude of different places, like GMX and
GMail, my own servers, etc ...

Can someone please clarify what process' job it is to generate the mail
by calling sendmail? Is it lmtpd which I assumed? I really need to stop
wasting time on looking at the wrong places and got to move on to more
important work ...

Tnx, -garry

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: Sieve: Vacation not working (solved)

2009-05-27 Thread Garry
Well, found another post on this ... seems to be that depending on the
way the MTA does the local delivery causes vacation (and only vacation)
to work or not...

Originally, I had this in my .mc file:

define(`confLOCAL_MAILER', `cyrus')dnl
ifdef(`CYRUS_MAILER_ARGS',,
 `define(`CYRUS_MAILER_ARGS', `deliver -e -f $f -m $h -- $u')')
dnl MAILER(`cyrus')dnl

After replacing this with:

define(`confLOCAL_MAILER',`cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl

I finally got vacation replies from Cyrus ...

-garry

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


Sieve: Vacation not working

2009-05-25 Thread Garry
I have a SuSE Enterprise 10 system set up, which is running smoothly ...
I have Cyrus 2.2.12 on it, which too is working fine - IMAP, SASL-Auth,
the whole 9 yards ... even Sieve itself is fine, messages are moved to
the appropriate folders as directed in the Sieve config ...

Here's an excerpt from the Sieve script:

require [ vacation , fileinto ] ;

## Flag: |UniqueId:1|Rulename: SpamMsg
if header :contains From gkg
{
fileinto INBOX.Spam ;
}

## Flag: vacation|UniqueId:0|Rulename: Abwesenheitsbenachrichtigung
if true
{
vacation :days 7 :addresses [ ad...@ox6.mydomain.de ,
ad...@mydomain.de ] :subject Ich bin nicht da ... blah ;
}


The message is received, but according to /var/log/messages, nothing
happens apart from it being stored locally ...

I'm somewhat at a loss as to where else I can check for the reason of it
not working ... couldn't find anything on Google that would have been
helpful, either ... maybe somebody could point me in the right direction
... ?!

Tnx, -garry

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