Re: imp webmail, cyrus imap and virus filtering

2009-02-20 Thread Alain Spineux
On Fri, Feb 20, 2009 at 6:27 PM, andreas moroder
andreas.moro...@gmx.net wrote:
 Hello,

 we have a imp/postfix/cyrus system. The mail that goes out and comes in
 from/to our system via smtp is checked by trendmicros virus wall.

 The problem is mail that remains in our mailsystem and is accessed via
 imap from imp. Viruswall has no way to check this mail.


You mean mail already already in your INBOXes received before you have
installed your trendmicros filter, or mail sent internally by your
user ?

In the last case the simple solution is to ask your user to send email
directly to your trendmicro !
If this is not possible you can configure your trendmicros as a filter
for your postfix !
But if you want keep your trendmicro in front for your incoming email,
and have postfix in front for your local users, this is an unusual
configuration, ask the postfix mailing list for information to do that
!

Regards



 Is it possible to write a sieve filter to start a virusscan on this mail
 ( by scanning the specific file in the users mail directory ? ) every
 time a mail is created or read via imap ?

 Thanks
 Andreas

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: virtdomains and defaultdomain issue

2009-02-18 Thread Alain Spineux
2009/2/18 Edwin Boersma edwin.boer...@secureoffice.net:
 Hi,

 To be able to have user names like user@our.domain and
 sameuser@another.domain, I have changed our IMAP config to use virtual
 domains. To be able to access the existing mailboxes, I added the
 defaultdomain option to imapd.conf.

It looks correct !

 The user names were then renamed from
 user to user@our.domain,

Which user ? Not in cyrus imap ! In SQL then ?
What happen if you don't rename it !

 so I would think we could login.
 But we couldn't. We use a sql lookup for authentication and so does Postfix
 to find the local users. Now, here I have found a problem.

 What happens? At authentication, the (default) domain name appears to get
 replaced with the server's hostname and the authentication fails. If I
 change the user name to user@server name, it works. But then Postfix
 requires the email address to be present in the virtual users table,
 pointing to the local user name again. And this is only the case for the
 default domain, not for foreign domains.

 The server's local name should not be used here, as it is totally arbitrary.
 It would make it impossible to e.g. migrate cyrus and Postfix to another
 server.

 (I hope you still follow)

 Here's the imapd.conf:
 configdirectory: /var/lib/imap
 partition-default: /var/spool/imap
 sievedir: /var/lib/sieve
 admins: cyrus root

 allowanonymouslogin: no
 autocreate_users: anyone
 autocreatequota: 100
 reject8bit: no
 quotawarn: 90
 timeout: 30
 poptimeout: 10
 dracinterval: 0
 drachost: localhost
 allowplaintext: yes
 lmtp_overquota_perm_failure: no
 lmtp_downcase_rcpt: yes
 createonpost: yes
 unixhierarchysep: yes
 virtdomains: yes
 defaultdomain: secureoffice.net

 sasl_pwcheck_method: auxprop
 sasl_auxprop_plugin: sql
 sasl_sql_engine: mysql
 sasl_mech_list: login
 sasl_sql_hostnames: localhost
 sasl_sql_user: mail
 sasl_sql_passwd: Love32Home15Should50Travel
 sasl_sql_database: maildb
 sasl_sql_verbose: yes
 sasl_sql_select: SELECT clear AS password FROM users WHERE id='%...@%r' AND
 Active='Y'

 And this is from the logfile:
 Feb 18 16:26:07 reindeer imap[14741]: sql plugin create statement from
 userPassword edwin.boersma reindeer
 Feb 18 16:26:07 reindeer imap[14741]: sql plugin doing query SELECT clear AS
 password FROM users WHERE id='edwin.boer...@reindeer' AND Active='Y';

 My username is edwin.boer...@secureoffice.net, and the server's local name
 is reindeer. Is there something wrong in my config, or is this
 works-as-designed?

 --
 Kind regards,

 Edwin Boersma
 Lead Developer Web Applications

 SecureOffice Europe AB
 Ideon Science Park B2 floor 2
 Scheelevägen 17
 22363 Lund
 Sweden

 W: http://www.secureoffice.net
 T: +46 462868773
 M: +46 709726431

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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

2009-02-07 Thread Alain Spineux
On Sat, Feb 7, 2009 at 3:13 AM, Iv Ray po...@verysmall.org wrote:
 I have been using Postfix + Cyrus IMAP on FreeBSD for about 2-3 years
 and the performance has always been good.

 The last months, however, the speed somehow deteriorated.
 Squirrelmail, for instance, takes longer than usual to go to display
 the folders and messages after login, and to go to next page (sorting
 is off) - 20-30 seconds. E-mail client like OS X Mail takes also
 longer to open IMAP accounts on this server, than on other servers.

Is-it only a connection time ? And then it's working fine ?
Maybe an entropy problem !
Do you have more user using SSL connection with your server (HTTPS, IMAPS) ?


 The server is 2 GHz with 2 GB RAM and 2 x SCSI HDDs in RAID 1, load
 average is normally around zero. The server hosts less than 100 e-mail
 accounts, most with less than 10 MB of e-mails, and a few with 1-2 GB
 of e-mails. These parameters haven't really changed over the last 2-3
 years, so I do not expect the delay to come form there.

 I did rebuild of all mailboxes a couple of times, but without success.

 Could someone give me a hint what might cause the slowness and/or
 possible debugging steps.

 Thank you very much,
 Iv

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Some sub-mailboxes are gone

2009-02-04 Thread Alain Spineux
On Wed, Feb 4, 2009 at 2:07 PM, Paul van der Vlis p...@vandervlis.nl wrote:
 Hello,

 I have a customer where some important sub-mailboxes are gone. Other
 sub-mailboxes are still there.
 The customer is using Cyrus 2.1 and Thunderbird 1.5 as IMAP client.
 The backups are too old.

 In Cyrus 2.2 I see something like Delete mailbox ... in the logs when
 a mailbox is deleted, but in Cyrus 2.1 there is nothing in the logs when
 a mailbox is deleted, correct?

 When I delete a mailbox in Thunderbird I get many warnings, I don't
 think they have really deleted the mailbox. Maybe they moved it by
 accident to another location, but I cannot find it.

Did you search the file system ?
something like :
# find /var/spool/imap/ -type d

You you find the missing directory in you filesystem, but cannot
access them using imap client,
this is because the mailbox.db file is corrupted.
You can use cyrreconstruct to re-discover  the missing folder.

Regards


 What could be wrong?

 With regards?
 Paul van der Vlis.




 --
 http://www.vandervlis.nl/


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Quota on subfolders question.

2009-01-19 Thread Alain Spineux
On Wed, Jan 14, 2009 at 7:51 PM, k bah k...@linuxmail.org wrote:
 cyrus-imapd-2.3.8
 cyrus-sasl-2.1.22
 --
 user/someuser~domain.com (\HasChildren)
 user/someuser~domain.com/Drafts (\HasNoChildren)
 user/someuser~domain.com/INBOX (\HasNoChildren)
 user/someuser~domain.com/2008 Messages (\HasNoChildren)
 user/someuser~domain.com/Sent (\HasNoChildren)
 user/someuser~domain.com/Spam (\HasNoChildren)
 user/someuser~domain.com/Trash (\HasNoChildren)
 --

  Hi,

  The above folder/subfolder structure is how my users mailboxes are now.

  Q1) If INBOX has a 50Mb quota (autocreatequota on imapd.conf) and the other 
 subfolders do not have a quota configured via cyradm, all of them respect the 
 50Mb limit, right? The sum of all of them cannot be more than 50Mb.


Yes, that's right, all sub-folder depend of the same quotaroot

  Q2) If I set a quota higher than 50Mb to any of those subfolders, say 60Mb 
 for Trash, then can the user move messages to the Trash folder until they sum 
 55Mb (all messages on Trash sum 55Mb), *without* affecting the INBOX limit? I 
 mean, the user will still be able to receive messages if Trash has 55Mb?


Yes It should be.

  thanks for you time


 =
 Slatwall - Guaranteed Low Prices
 Save Money. Buy Slatwall Direct From The Manufacturer. Ships Same Day.
 http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=c33f3e7389ca71081776d3da9be71f6a


 --
 Powered by Outblaze
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Auto set quota to specific folder thru imapd.conf/cyrus.conf ??

2009-01-19 Thread Alain Spineux
On Wed, Jan 14, 2009 at 7:43 PM, k bah k...@linuxmail.org wrote:
 cyrus-imapd-2.3.8-51
 cyrus-sasl-2.1.22-82
 --
 user/someuser~domain.com (\HasChildren)
 user/someuser~domain.com/Drafts (\HasNoChildren)
 user/someuser~domain.com/INBOX (\HasNoChildren)
 user/someuser~domain.com/2008 Messages (\HasNoChildren)
 user/someuser~domain.com/Sent (\HasNoChildren)
 user/someuser~domain.com/Spam (\HasNoChildren)
 user/someuser~domain.com/Trash (\HasNoChildren)
 --

  Hi,

  Is it possible to set a specific quota for a folder by editing cyrus.conf or 
 imapd.conf?

I don't think so.

 I already set a quota there for INBOX, but I need to auto set a quota for 
 another folder, Trash, the ideal would be to set Trash with an unlimited 
 quota, since the only supported IMAP client my users have access to is 
 Webmail, and it automatically deletes all messages from the Trash folder 
 monthly.
  I could run some script to set a higher quota on 
 user/myuser~domain.com/Trash (calling cyradm), but that would be my last 
 option. That way, new users would have Trash with a higher quota, not 
 affecting their INBOX % usage. If possible I want to do that (unlimit the 
 quota for Trash, keeping the default quota for INBOX and subfolders) by 
 editing imapd.conf or some other config file.


  thanks in advance

 =


 --
 Powered by Outblaze
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Delete an user + virtual domains

2009-01-12 Thread Alain Spineux
2009/1/9 Laurent Archambault archi.laur...@gmail.com:
 Hello,

 With this values in imap.conf : virtdomains: yes + unixhierarchysep: yes
 (do after for it).
 - In this directory : /var/spool/cyrus/mail/domain/d/domaine2.com
 - I have for this an user this structural directory ... (for me it's strange
 but i don't known all)

 ./Sent/l/user/laurent^amt
 ./Sent/l/user/laurent^amt/cyrus.cache
 ./Sent/l/user/laurent^amt/cyrus.index
 ./Sent/l/user/laurent^amt/cyrus.squat
 ./Sent/l/user/laurent^amt/cyrus.header
 ./l/user/laurent^amt
 ./l/user/laurent^amt/cyrus.cache
 ./l/user/laurent^amt/cyrus.index
 ./l/user/laurent^amt/cyrus.squat
 ./l/user/laurent^amt/cyrus.header
 ./Drafts/l/user/laurent^amt
 ./Drafts/l/user/laurent^amt/cyrus.cache
 ./Drafts/l/user/laurent^amt/cyrus.index
 ./Drafts/l/user/laurent^amt/cyrus.squat
 ./Drafts/l/user/laurent^amt/cyrus.header
 ./Trash/l/user/laurent^amt
 ./Trash/l/user/laurent^amt/cyrus.cache
 ./Trash/l/user/laurent^amt/cyrus.index
 ./Trash/l/user/laurent^amt/cyrus.squat
 ./Trash/l/user/laurent^amt/cyrus.header
 ./Junk/l/user/laurent^amt
 ./Junk/l/user/laurent^amt/cyrus.cache
 ./Junk/l/user/laurent^amt/cyrus.index
 ./Junk/l/user/laurent^amt/cyrus.squat
 ./Junk/l/user/laurent^amt/cyrus.header

 With this structure, Cyrus run perfectly... but when i want to delete an
 mailbox (or account), its not clean for me ...
 ./cyrus-admin.pl -u cyrus -p secret -m laurent@domaine2.com --delete
 Mailbox:define acl lrswipkxtecda for user/laurent@domaine2.com by cyrus
 Deleted Mailbox: user/laurent@domaine2.com

 And now i read my structural Cyrus and i can see this :
 just lhis line ./l/user/laurent^amt is not present or deleted ... i can
 see almost all ...
 - And it's similar with cyradm 

cyradm only delete one mailbox, not the existing subfolders,
you have to delete them yourself


 ./Sent/l/user/laurent^amt
 ./Sent/l/user/laurent^amt/cyrus.cache
 ./Sent/l/user/laurent^amt/cyrus.index
 ./Sent/l/user/laurent^amt/cyrus.squat
 ./Sent/l/user/laurent^amt/cyrus.header
 ./Drafts/l/user/laurent^amt
 ./Drafts/l/user/laurent^amt/cyrus.cache
 ./Drafts/l/user/laurent^amt/cyrus.index
 ./Drafts/l/user/laurent^amt/cyrus.squat
 ./Drafts/l/user/laurent^amt/cyrus.header
 ./Trash/l/user/laurent^amt
 ./Trash/l/user/laurent^amt/cyrus.cache
 ./Trash/l/user/laurent^amt/cyrus.index
 ./Trash/l/user/laurent^amt/cyrus.squat
 ./Trash/l/user/laurent^amt/cyrus.header
 ./Junk/l/user/laurent^amt
 ./Junk/l/user/laurent^amt/cyrus.cache
 ./Junk/l/user/laurent^amt/cyrus.index
 ./Junk/l/user/laurent^amt/cyrus.squat
 ./Junk/l/user/laurent^amt/cyrus.header

 Thanks a lot ... where is my error ..
 --
 ~o00o-//{ ´°`(_)´°` }\\-o00o~--

   Laurent Archambault
Under Linux

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: plus addressing over lmtp not working / sam [box] anyone p set

2008-12-15 Thread Alain Spineux
On Fri, Dec 12, 2008 at 5:35 PM, Stefan Pampel antispam
spamtest-eir1beu...@asp4.polyformal.de wrote:
 Alain Spineux schrieb am 11.12.2008 08:15:

 I dont see nothing wrong in your main.cf
 Can you post your master.cf ?

 ok, here is the master.cf

I dont see anything vrong,
ask your question to the postfix mailing list !


 thx, and bye

 Stefan

 #
 # Postfix master process configuration file.  For details on the format
 # of the file, see the master(5) manual page (command: man 5 master).
 #
 # Do not forget to execute postfix reload after editing this file.
 #
 # ==
 # service type  private unpriv  chroot  wakeup  maxproc command + args
 #   (yes)   (yes)   (yes)   (never) (100)
 # ==
 smtp  inet  n   -   n   -   -   smtpd
-o no_address_mappings
 #submission inet n   -   -   -   -   smtpd
 #  -o smtpd_tls_security_level=encrypt
 #  -o smtpd_sasl_auth_enable=yes
 #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 #  -o milter_macro_daemon_name=ORIGINATING
 #smtps inet  n   -   -   -   -   smtpd
 #  -o smtpd_tls_wrappermode=yes
 #  -o smtpd_sasl_auth_enable=yes
 #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
 #  -o milter_macro_daemon_name=ORIGINATING
 #628  inet  n   -   -   -   -   qmqpd
 pickupfifo  n   -   -   60  1   pickup
 cleanup   unix  n   -   n   -   0   cleanup
 qmgr  fifo  n   -   n   300 1   qmgr
 #qmgr fifo  n   -   -   300 1   oqmgr
 tlsmgrunix  -   -   -   1000?   1   tlsmgr
 rewrite   unix  -   -   n   -   -   trivial-rewrite
 bounceunix  -   -   -   -   0   bounce
 defer unix  -   -   -   -   0   bounce
 trace unix  -   -   -   -   0   bounce
 verifyunix  -   -   -   -   1   verify
 flush unix  n   -   -   1000?   0   flush
 proxymap  unix  -   -   n   -   -   proxymap
 proxywrite unix -   -   n   -   1   proxymap
 smtp  unix  -   -   n   -   -   smtp
 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
 relay unix  -   -   -   -   -   smtp
-o smtp_fallback_relay=
 #   -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
 showq unix  n   -   -   -   -   showq
 error unix  -   -   -   -   -   error
 retry unix  -   -   -   -   -   error
 discard   unix  -   -   -   -   -   discard
 local unix  -   n   n   -   -   local
 virtual   unix  -   n   n   -   -   virtual
 lmtp  unix  -   -   n   -   -   lmtp
 anvil unix  -   -   -   -   1   anvil
 scacheunix  -   -   -   -   1   scache
 #
 # 
 # Interfaces to non-Postfix software. Be sure to examine the manual
 # pages of the non-Postfix software to find out what options it wants.
 #
 # Many of the following services use the Postfix pipe(8) delivery
 # agent.  See the pipe(8) man page for information about ${recipient}
 # and other message envelope options.
 # 
 #
 # maildrop. See the Postfix MAILDROP_README file for details.
 # Also specify in main.cf: maildrop_destination_recipient_limit=1
 #
 maildrop  unix  -   n   n   -   -   pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
 #
 # See the Postfix UUCP_README file for configuration details.
 #
 uucp  unix  -   n   n   -   -   pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
 ($recipient)
 #
 # Other external delivery methods.
 #
 ifmailunix  -   n   n   -   -   pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
 bsmtp unix  -   n   n   -   -   pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
 $recipient
 scalemail-backend unix  -   n   n   -   2   pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
 ${nexthop} ${user} ${extension}
 mailman   unix  -   n   n   -   -   pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
 amavisfeed unix-   -   n-  2 lmtp
 -o lmtp_data_done_timeout=1200
 -o lmtp_send_xforward_command=yes
 -o lmtp_tls_note_starttls_offer=no
 127.0.0.1:10025 inet n

Re: plus addressing over lmtp not working / sam [box] anyone p set

2008-12-10 Thread Alain Spineux
On Wed, Dec 10, 2008 at 4:04 PM, Stefan Pampel antispam
[EMAIL PROTECTED] wrote:
 Hello  all,

 thanks for you replies.

 [Followup-To: nach gmane.mail.imap.cyrus gesetzt.]
 Lan Tran [EMAIL PROTECTED] schrieb:
 From: Alain Spineux [EMAIL PROTECTED]
 On Tue, Dec 2, 2008 at 8:59 PM, Stefan Pampel
 [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Alain Spineux [EMAIL PROTECTED] schrieb:
 snip
 Dec  2 20:44:19 asp4 postfix/smtpd[6073]: connect from
 mail-qy0-f21.google.com[209.85.221.21]
 Dec  2 20:44:20 asp4 postfix/smtpd[6073]: 53DEDE01D5A:
 client=mail-qy0-f21.google.com[209.85.221.21]
 Dec  2 20:44:20 asp4 postfix/cleanup[6076]: 53DEDE01D5A:
 message-id=[EMAIL PROTECTED]
 Dec  2 20:44:20 asp4 postfix/qmgr[2392]: 53DEDE01D5A:
 from=[EMAIL PROTECTED], size=2214, nrcpt=1 (queue active)
 Dec  2 20:44:21 asp4 postfix/smtpd[6081]: connect from
 unknown[127.0.0.1]
 Dec  2 20:44:21 asp4 postfix/smtpd[6081]: D0B24EF4D11:
 client=unknown[127.0.0.1]
 Dec  2 20:44:21 asp4 postfix/cleanup[6076]: D0B24EF4D11:
 message-id=[EMAIL PROTECTED]
 Dec  2 20:44:21 asp4 postfix/smtpd[6081]: disconnect from
 unknown[127.0.0.1]
 Dec  2 20:44:21 asp4 postfix/qmgr[2392]: D0B24EF4D11:
 from=[EMAIL PROTECTED], size=2816, nrcpt=1 (queue active)
 Dec  2 20:44:21 asp4 cyrus/lmtpunix[6070]: accepted connection
 Dec  2 20:44:21 asp4 cyrus/lmtpunix[6070]: lmtp connection preauth'd as
 postman
 Dec  2 20:44:21 asp4 cyrus/master[6083]: about to exec
 /usr/lib/cyrus/bin/lmtpd
 Dec  2 20:44:21 asp4 cyrus/lmtpunix[6083]: executed
 Dec  2 20:44:21 asp4 amavis[17280]: (17280-18) Passed CLEAN,
 [209.85.221.21] [209.85.221.21] [EMAIL PROTECTED] - [EMAIL PROTECTED],
 Message-ID:
 [EMAIL PROTECTED],
 mail_id: ggSVa5nIr8Oq, Hits: -0.001, size: 2214, queued_as:
 D0B24EF4D11,
 1298 m
 s
 Dec  2 20:44:21 asp4 postfix/lmtp[6077]: 53DEDE01D5A:
 to=[EMAIL PROTECTED],
 orig_to=[EMAIL PROTECTED], relay=127.0.0.1
 [127.0.0.1]:10024, delay=1.7, delays=0.39/0/0/1.3, dsn=2.0.0,
 status=sent
 (250 2.0.0 Ok, id=17280-18, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok:
 queued a

 HERE is the culprit ! postfix tell us, it got user+spam and give
 back user to [127.0.0.1]:10024 !

 ok, the problem is that postfix remove the +whatever . I've done some
 researches on this, but actually i didn't found a solution. In case of
 being OT just ignore my reply, but maybe someone can give a hint on this
 issue.

I dont see nothing wrong in your main.cf
Can you post your master.cf ?
You will get a better answer on the postfix mailing list :-)


 My tests:
 sending fom command line to port 10025 (means bypassing amavis)

 snip
 Return-Path: [EMAIL PROTECTED]
 Received: from foo.org ([unix socket])
 by foo.org (Cyrus v2.2.13-Debian-2.2.13-14+b3) with LMTPA;
 Thu, 04 Dec 2008 19:39:50 +0100
 X-Sieve: CMU Sieve 2.2
 Received: from unknown (unknown [127.0.0.1])
by foo.org (Postfix) with SMTP id 2EE4DEEFB3A
for [EMAIL PROTECTED]; Thu,  4 Dec 2008 19:38:54 +0100 (CET)
 Message-Id: [EMAIL PROTECTED]
 Date: Thu,  4 Dec 2008 19:38:54 +0100 (CET)
 From: [EMAIL PROTECTED]
 To: undisclosed-recipients:;

 blah
 /snip

 testing with

 sendmail -bv [EMAIL PROTECTED]

 as mentioned in http://www.postfix.org/ADDRESS_REWRITING_README.html
 gives, the following.
 snip
 Return-Path: 
 Received: from foo.org ([unix socket])
 by foo.org (Cyrus v2.2.13-Debian-2.2.13-14+b3) with LMTPA;
 Thu, 04 Dec 2008 22:56:08 +0100
 X-Sieve: CMU Sieve 2.2
 Received: by foo.org (Postfix)
id 49719EF4D11; Thu,  4 Dec 2008 22:56:08 +0100 (CET)
 Date: Thu,  4 Dec 2008 22:56:08 +0100 (CET)
 From: [EMAIL PROTECTED] (Mail Delivery System)
 Subject: Mail Delivery Status Report
 To: [EMAIL PROTECTED]
 Auto-Submitted: auto-replied
 MIME-Version: 1.0
 Content-Type: multipart/report; report-type=delivery-status;
boundary=3B1BDEF4D13.1228427768/foo.org
 Message-Id: [EMAIL PROTECTED]

 This is a MIME-encapsulated message.

 - --3B1BDEF4D13.1228427768/foo.org
 Content-Description: Notification
 Content-Type: text/plain; charset=us-ascii

 This is the mail system at host foo.org.

 Enclosed is the mail delivery report that you requested.

   The mail system

 [EMAIL PROTECTED] (expanded from
[EMAIL PROTECTED]): delivery via
foo.org[/var/run/cyrus/socket/lmtp]: 250 2.1.5 ok

 - --3B1BDEF4D13.1228427768/foo.org
 Content-Description: Delivery report
 Content-Type: message/delivery-status

 Reporting-MTA: dns; foo.org
 X-Postfix-Queue-ID: 3B1BDEF4D13
 X-Postfix-Sender: rfc822; [EMAIL PROTECTED]
 Arrival-Date: Thu,  4 Dec 2008 22:56:08 +0100 (CET)

 Final-Recipient: rfc822; [EMAIL PROTECTED]
 Original-Recipient: rfc822; [EMAIL PROTECTED]
 Action: deliverable
 Status: 2.1.5
 Remote-MTA: dns; foo.org
 Diagnostic-Code: smtp; 250 2.1.5 ok

 - --3B1BDEF4D13.1228427768/foo.org
 Content-Description: Message Headers
 Content-Type: text/rfc822-headers

 Received: by foo.org (Postfix, from userid 1999)
id 3B1BDEF4D13; Thu,  4 Dec 2008

Re: Reconstruct Syntax Help

2008-12-03 Thread Alain Spineux
On Wed, Dec 3, 2008 at 11:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hello List,

  i am getting:
IOERROR: opening
 /opt/foo/imap/spool/domain/foo/user/archive/2008/12/cyrus.header: No
 such file or directory

 What is the syntax for reconstruct to fix this?

 I tried:
   reconstruct -r [EMAIL PROTECTED]
 but i get Mailbox does not exist.

 Whats the syntax?

here is how a use it, this work with unpatched version

/kolab/bin/cyrreconstruct -r -f' user/[EMAIL PROTECTED] user/h.b/[EMAIL 
PROTECTED]

Regards


 Thanks,
 Mario


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: plus addressing over lmtp not working / sam [box] anyone p set

2008-12-02 Thread Alain Spineux
I made multiple comments , look carefully

On Tue, Dec 2, 2008 at 8:59 PM, Stefan Pampel
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Alain Spineux [EMAIL PROTECTED] schrieb:
 On Thu, Nov 27, 2008 at 10:14 AM, Stefan Pampel
[EMAIL PROTECTED] wrote:
 it seems that plus addressing not work in my case:

 postfix configured correctly:
 main.cf:
 recipient_delimiter = +

 master.cf:
 lmtp  unix  -   -   n   -   -   lmtp

 Mails basically reach the INBOX, but not the folder itself

 cyrus config:
 snip
 altnamespace: yes # even with no does not work
 virtdomains: userid
 defaultdomain: foo.bar.org
 unixhierarchysep: no
 /snip

 The folder
 lam user.user1.spam

 user1 lrswipcda
 anyone p

 The mail header contains
 To: user1 [EMAIL PROTECTED]

 Any hints?

 Does the email goes in the user INBOX at least ?

 Yes, it goes to the INBOX, the header of the recieived mail looks like this

 snip

 Return-Path: [EMAIL PROTECTED]
 Received: from foo.org ([unix socket])
 by foo.org (Cyrus v2.2.13-Debian-2.2.13-14+b3) with LMTPA;
 Tue, 02 Dec 2008 20:44:21 +0100
 X-Sieve: CMU Sieve 2.2
 Received: from localhost (unknown [127.0.0.1])
by foo.org (Postfix) with ESMTP id D0B24EF4D11
for [EMAIL PROTECTED]; Tue,  2 Dec 2008 20:44:21 +0100 (CET)
 X-Virus-Scanned: Debian amavisd-new at
 X-Spam-Flag: NO
 X-Spam-Score: -0.001
 X-Spam-Level:
 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31
tests=[SPF_PASS=-0.001]
 Received: from foo.org ([127.0.0.1])
by localhost (foo.org [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id ggSVa5nIr8Oq for [EMAIL PROTECTED];

The problem is just here, above

Tue,  2 Dec 2008 20:44:20 +0100 (CET)
 Received: from mail-qy0-f21.google.com (mail-qy0-f21.google.com 
 [209.85.221.21])
by foo.org (Postfix) with ESMTP id 53DEDE01D5A
for [EMAIL PROTECTED]; Tue,  2 Dec 2008 20:44:20 +0100 (CET)

Because it was still user+spam here !

 Received: by qyk14 with SMTP id 14so3861085qyk.11
for [EMAIL PROTECTED]; Tue, 02 Dec 2008 11:44:19 -0800 (PST)
 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to
 :subject:mime-version:content-type:content-transfer-encoding
 :content-disposition;
bh=OsY01wpTsRs9wg12b8CJsXpNhhRKn9VYCZ0l9cxhl5Q=;
b=h9NS27DnBzXhMGBpPICUp2U5tEwgbn+ouAhGLuYteBJnMWw5hIQ4vj+d8bNn8TzV4E
 DNtPqxGU0QXa55JsPSjYZU4yZyCk5kA1oCNacatnsWRY2LvrVtdUS7spqAYZWNpxsXas
 z78A3NBawCutspEj0pOlUbfwNLDDrnjK20Ce8=
 DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:mime-version:content-type
 :content-transfer-encoding:content-disposition;
b=dvgd4c6c5TbTVmP0TibQyKDSpojbNRDZTIbmWt5DV9TMvTfdHmBtxL+564/pci7phD
 4knxRl2MUb483WxZJcKazltQuT5+WtoxN0Ljg2xtqGEc+EijyG9NMCno/CtQSIA82Mg+
 FWG33nCiGc/cAxhGSQo+oe0LMtap+BZVHYNIM=
 Received: by 10.214.183.9 with SMTP id g9mr12118283qaf.35.1228247059060;
Tue, 02 Dec 2008 11:44:19 -0800 (PST)
 Received: by 10.214.182.8 with HTTP; Tue, 2 Dec 2008 11:44:19 -0800 (PST)
 Message-ID: [EMAIL PROTECTED]
 Date: Tue, 2 Dec 2008 20:44:19 +0100
 From: Stefan Pampel [EMAIL PROTECTED]
 To: user [EMAIL PROTECTED]
 Subject: 123

 /snip

 Did you look into the lmtpd.log and postfix.log to check if the
 delivery looks ok .?

 too me it looks ok.

 snip
 Dec  2 20:44:19 asp4 postfix/smtpd[6073]: connect from 
 mail-qy0-f21.google.com[209.85.221.21]
 Dec  2 20:44:20 asp4 postfix/smtpd[6073]: 53DEDE01D5A: 
 client=mail-qy0-f21.google.com[209.85.221.21]
 Dec  2 20:44:20 asp4 postfix/cleanup[6076]: 53DEDE01D5A: message-id=[EMAIL 
 PROTECTED]
 Dec  2 20:44:20 asp4 postfix/qmgr[2392]: 53DEDE01D5A: from=[EMAIL 
 PROTECTED], size=2214, nrcpt=1 (queue active)
 Dec  2 20:44:21 asp4 postfix/smtpd[6081]: connect from unknown[127.0.0.1]
 Dec  2 20:44:21 asp4 postfix/smtpd[6081]: D0B24EF4D11: 
 client=unknown[127.0.0.1]
 Dec  2 20:44:21 asp4 postfix/cleanup[6076]: D0B24EF4D11: message-id=[EMAIL 
 PROTECTED]
 Dec  2 20:44:21 asp4 postfix/smtpd[6081]: disconnect from unknown[127.0.0.1]
 Dec  2 20:44:21 asp4 postfix/qmgr[2392]: D0B24EF4D11: from=[EMAIL 
 PROTECTED], size=2816, nrcpt=1 (queue active)
 Dec  2 20:44:21 asp4 cyrus/lmtpunix[6070]: accepted connection
 Dec  2 20:44:21 asp4 cyrus/lmtpunix[6070]: lmtp connection preauth'd as 
 postman
 Dec  2 20:44:21 asp4 cyrus/master[6083]: about to exec 
 /usr/lib/cyrus/bin/lmtpd
 Dec  2 20:44:21 asp4 cyrus/lmtpunix[6083]: executed
 Dec  2 20:44:21 asp4 amavis[17280]: (17280-18) Passed CLEAN, [209.85.221.21] 
 [209.85.221.21] [EMAIL PROTECTED] - [EMAIL PROTECTED],
 Message-ID: [EMAIL PROTECTED], mail_id: ggSVa5nIr8Oq, Hits: -0.001, size: 
 2214, queued_as: D0B24EF4D11, 1298 m
 s
 Dec  2 20:44:21 asp4 postfix/lmtp[6077]: 53DEDE01D5A: to=[EMAIL PROTECTED], 
 orig_to=[EMAIL

Re: plus addressing over lmtp not working / sam [box] anyone p set

2008-12-01 Thread Alain Spineux
On Thu, Nov 27, 2008 at 10:14 AM, Stefan Pampel
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello,

 it seems that plus addressing not work in my case:

 postfix configured correctly:
 main.cf:
 recipient_delimiter = +

 master.cf:
 lmtp  unix  -   -   n   -   -   lmtp

 Mails basically reach the INBOX, but not the folder itself

 cyrus config:
 snip
 altnamespace: yes # even with no does not work
 virtdomains: userid
 defaultdomain: foo.bar.org
 unixhierarchysep: no
 /snip

 The folder
 lam user.user1.spam

 user1 lrswipcda
 anyone p

 The mail header contains
 To: user1 [EMAIL PROTECTED]

 Any hints?

Does the email goes in the user INBOX at least ?

Did you look into the lmtpd.log and postfix.log to check if the
delivery looks ok .?

Regards


 Thanks in advance.

 Stefan Pampel

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAkkuZQgACgkQXXT1nfS2Z+HQZACePaK8zDCOamVl91z+hIhnK8b6
 XkMAn2iwps/ZU1Oet+Vg1g+uXWi/uAqM
 =6YOr
 -END PGP SIGNATURE-

 --
 / polyformal/
 | http://www.polyformal.de /
 |_/
 GPG KEY: 11678845

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Folder allowed character

2008-11-21 Thread Alain Spineux
On Thu, Nov 20, 2008 at 8:19 AM, Sebastian Hagedorn
[EMAIL PROTECTED] wrote:
 -- Alain Spineux [EMAIL PROTECTED] is rumored to have mumbled on 20.
 November 2008 07:57:13 +0100 regarding Re: Folder allowed character:

 On Tue, Nov 18, 2008 at 7:38 PM, Wesley Craig [EMAIL PROTECTED] wrote:

 On 18 Nov 2008, at 05:28, Antonio Talarico wrote:

 Where i can found a list with allowed character for a folder name?

 ./imap/mboxname.c:#define GOODCHARS  #$'+,-.
 0123456789:[EMAIL PROTECTED]


 These characters are about the mailbox name.
 Imap clients must use a modified UTF-7 encoding for Folders name.
 This allow you to use any characters in any language (if your client
 is compliant on this part of imap spec).

 Actually not *any* character. You can't have a '/' or a '!', for example.
 Those characters aren't encoded any differently with modified UTF-7. AFAICT
 you can use any character that's outside of US-ASCII, but only those from
 US-ASCII that are in GOODCHARS.

Yes right !
very good answer!

Alain

 --
 Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
 Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
 Universität zu Köln / Cologne University - Tel. +49-221-478-5587



-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Folder allowed character

2008-11-19 Thread Alain Spineux
On Tue, Nov 18, 2008 at 7:38 PM, Wesley Craig [EMAIL PROTECTED] wrote:
 On 18 Nov 2008, at 05:28, Antonio Talarico wrote:
 Where i can found a list with allowed character for a folder name?

 ./imap/mboxname.c:#define GOODCHARS  #$'+,-.
 0123456789:[EMAIL PROTECTED]


These characters are about the mailbox name.
Imap clients must use a modified UTF-7 encoding for Folders name.
This allow you to use any characters in any language (if your client
is compliant on this part of imap spec).

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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Size limitation on login realms

2008-11-03 Thread Alain Spineux
On Mon, Nov 3, 2008 at 11:46 AM, Mordur Ingolfsson [EMAIL PROTECTED] wrote:
 Dear list,

 I have a Cyrus imap 2.2.13  running on Debian serving 1500 users from
 358 domains, meaning 333 login realms. Today, when I was going to add
 login realm nr. 359 all hell broke loose and my logs filed up with this
 here message:

 Nov  3 09:38:20 mail cyrus/lmtpunix[7935]: FATAL: invalid option name on
 line 188 of configuration file /etc/imapd.conf

 It so happens, that the line containing the option loginrealms: is line
 187 in imapd.conf, so I have probably reached a size limit for the
 loginrealms option and the domains in exess of this size limit are
 somehow considered to be on the next line in the file, line 188.

 these are the statistics for my loginrealms line:

 Lines: 1
 Words:  333
 Characters: 3711

 Have I reached an unmovable barrier here, or is there a way around this?
 I would really like to know, because the setup is working very well
 except for this new problem.


The line in imapd.conf are limited to 4096 chars before  2.3.12
After 2.3.12 lines length are unlimited and you can also use the \
continuation char at the end of the line.

Update to last 2.3.X or try to apply the patch to your old 2.2.13.

Regards


 Thanks,

 Mordur Ingolfsson
 1984 ehf


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Unpredictable results from imapsync runs

2008-11-03 Thread Alain Spineux
On Mon, Nov 3, 2008 at 7:04 PM, Ciprian Marius Vizitiu (GBIF)
[EMAIL PROTECTED] wrote:
 Hi everybody,

 I'm trying to migrate a small 120GB IMAP store from a 32 bit Cyrus 2.2.12 on
 RHEL4 to a 64 bit Cyrus 2.3.7 running on RHEL5.

 Multiple test runs of imapsync on a 4.2 GB folder will result in annoying
 errors e.g. one of the destinations will show some extra 5 unread messages
 (in one folder) and/or 2 messages missing in another =:-o ... No easy way to
 predict which folder will be affected and I'm sure nobody's been messin'
 with the affected test folders.

 A scan of the logs left me empty handed so any hints would be appreciated.
 o:-)

Are you sure the cache of the imap client you are using is really in
sync with both client ?
Are you sure the source mailbox in not corrupted ? a reconstruct could be useful

Regards.


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Unpredictable results from imapsync runs

2008-11-03 Thread Alain Spineux
On Mon, Nov 3, 2008 at 10:13 PM, Ciprian Marius Vizitiu
[EMAIL PROTECTED] wrote:

 Hi Alain,

 Are you sure the cache of the imap client you are using is really in
 sync with both client ?

 I've checked from both Outlook and Thunderbird, Vista and Centos. Anyway, I
 know the drill so between the runs a dm user.xxx and then a cm was
 performed AND the accounts deleted and created again on the client(s); I'm
 sure the client cache is out of the question.

 ... Wait, here's the final argument against the client cache: a simple ls *.
 | wc -l shows the number of files to be different in the respective folders.

 Are you sure the source mailbox in not corrupted?

 H! Now THAT's an interesting question.

 a reconstruct could be useful

 On the source mailbox you mean? I'll try that OK.

Yes on the source.

Other trick :
- try to increas imapsync verbosity an check for any error message
- increase the cyrus verbosisty : You can trac any imap command send
by a user ,
by just creating a directory inside the cyrus logging directory with
the same name
as of the user you wan to monitor.
Dont forget to give cyrus user right to this directory.

Do this on both end and check for error




 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: segfault after upgrade

2008-11-03 Thread Alain Spineux
On Mon, Nov 3, 2008 at 11:10 PM, Steffen Vinther Sørensen
[EMAIL PROTECTED] wrote:
 On Mon, Nov 3, 2008 at 10:00 PM, Andreas Winkelmann [EMAIL PROTECTED] wrote:
 Am Montag 03 November 2008 21:45:30 schrieb Steffen Vinther Sørensen:

 I recently updated a CentOS 4 installation using the CentOS package
 manager yum. the cyrus imapd and the dbd packages was upgraded along
 with several other packages. After that there seems to be an issue
 with the Cyrus imapd shared mailboxes (the ones where users needs to
 subscribe in order to use)

 I already tried rebuilding mailboxes.db, by dumping it as text and
 restoring it, but with no luck. Any further advice would be very
 welcome:

 Here is all the info I can think of:

 cyradm version request:
 mail.somecompany.dk version
 name   : Cyrus IMAPD
 version: v2.2.12-Invoca-RPM-2.2.12-9.RHEL4 2005/02/14 16:43:51
 vendor : Project Cyrus
 support-url: http://asg.web.cmu.edu/cyrus
 os : Linux
 os-version : 2.6.9-78.0.5.ELsmp
 environment: Built w/Cyrus SASL 2.1.19
  Running w/Cyrus SASL 2.1.19
  Built w/Sleepycat Software: Berkeley DB 4.2.52: (July 14,
 2007) Running w/Sleepycat Software: Berkeley DB 4.2.52: (July 14, 2007)
 Built w/OpenSSL 0.9.7a Feb 19 2003
  Running w/OpenSSL 0.9.7a Feb 19 2003
  CMU Sieve 2.2
  TCP Wrappers
  mmap = shared
  lock = fcntl
  nonblock = fcntl
  auth = unix
  idle = poll


 /var/log/messages gets this every time a user tries to connect:
 mail kernel: imapd[13804]: segfault at  rip
 0030d36705f2 rsp 007fbfffcc88 error 4

 /var/log/maillog
 Nov  3 21:34:05 mail imap[14118]: accepted connection
 Nov  3 21:34:05 mail master[14144]: about to exec
 /usr/lib64/cyrus-imapd/imapd Nov  3 21:34:05 mail imap[14144]: executed
 Nov  3 21:34:05 mail imap[14118]: login: svs.somecompany.dk
 [192.168.1.20] svs plaintext User logged in
 Nov  3 21:34:05 mail master[31849]: process 14118 exited, signaled to
 death by 11
 Nov  3 21:34:05 mail master[31849]: service imap pid 14118 in BUSY
 state: terminated abnormally

 strace for imapd process having the segfault, using strace -ff -p
 pid on the cyrus-master pid:

 ...

 open(/var/spool/imap/user/ecivrese-fejl/cyrus.header, O_RDWR) = 14
 fstat(14, {st_mode=S_IFREG|0600, st_size=182, ...}) = 0
 mmap(NULL, 182, PROT_READ, MAP_SHARED, 14, 0) = 0x2a97f59000
 --- SIGSEGV (Segmentation fault) @ 0 (0) ---

 Did you run a reconstruct on this Mailbox (ecivrese-fejl)?

 --
 Andreas
 
 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


 yes, I already tried reconstruct user.ecivrese-fejl and then
 restarted cyrus, but with no positive result

You can try to debug the process using GDB.

look at the end of http://www.irbs.net/internet/info-cyrus/0709/0180.html
to know how to do that.


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: offering limited pop access

2008-10-31 Thread Alain Spineux
On Wed, Oct 29, 2008 at 2:36 PM, Ian Eiloart [EMAIL PROTECTED] wrote:
 Hi,

 I offer an IMAP service to 12000 users, but we don't offer POP3.

 However, we have a blind person who has a braille computer, with POP3
 client, but no IMAP client.

 I've configured a perdition proxy which can give him POP, but not IMAP
 access. However, we're moving toward using Cyrus proxyd front end, with
 LDAP authentication (through SASL).

 Is there a way I can configure my murder cluster to perform a different
 IMAP lookup for POP3 authentication, compared to IMAP authentication. Or,
 is there some other way that I can restrict POP3 access to certain users?

I use nginx to do that.
nginx require a daemon using http protocol. You have to write your in
your favorite
scripting language (10 lines of python or perl code).
This daemon can make the required check in my ldap database !
If you have only one user, just hard code his name in your script.


 I've got configuration files at
 /local/cyrus-sasl-2.1.22/lib/sasl2/imap.conf
 which just says:
pwcheck_method: saslauthd
mech_list: plain
 I presume I need a pop.conf file that's similar, but can't find any
 documentation.

 and
 /local/cyrus-sasl-2.1.22/etc/saslauthd.conf
 which specifies how to access the LDAP servers.

 I want everything the same, but with a different value for ldap_filter. Can
 I just override this in pop3.conf? Or do I set sasl_ldap_filter my cyrus
 configuration, instead?

 --
 Ian Eiloart
 IT Services, University of Sussex
 x3148
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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-imapd not providing realm information

2008-08-27 Thread Alain Spineux
On Tue, Aug 26, 2008 at 3:13 PM, tarjei [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi,

 Alain Spineux wrote:
 On Mon, Aug 25, 2008 at 2:51 PM, tarjei [EMAIL PROTECTED] wrote:
 Hi Again,
 tarjei wrote:
 lartc wrote:
 Hi,
 I've got the same setup -- you should have
 ldap_realm: yourdomain.com
 It seems that the parameter that needed to be set was
 ldap_default_realm, as I found when reading
 http://thread.gmane.org/gmane.mail.imap.cyrus/22049.


 You set
 virtdomains: userid

 What is happening if you configure a second domain name ?

 I thing your error was to configure

 defaultdomain: example.com
 Ok, so I should not set defaultdomain when creating a setup from scratch
 then?

Nicely said !
This is my understanding of defaultdomain option.


 kind regards,
 Tarjei

 because then when you login as [EMAIL PROTECTED], cyrus remove the
 @example.com

 This is working that way because when you updrade from

 virtdomains: off
 to
 virtdomains: userid

 you can keep your old user (without @domain.name)  without any changes.
 Just create new mailboxes and users specifying a domain name.

 Regards


 Again, thanks for helping me.

 Kind regards,
 Tarjei


 in /etc/saslauthd.conf
 and you should start saslauthd daemon with the -r argument

 Hi Charles, thank you for your quick reply.

 I tried your suggestions, but they do not seem to solve my problem. The
 same problem persists.

 Kind regards,
 tarjei

 hth,
 charles



 On Mon, 2008-08-25 at 14:04 +0200, tarjei wrote:
 Hi, I'm trying to get Cyrus IMAPD + saslauthd working with an
 virtdomains setup.
 Relevant info:
 OS: Centos 5.2
 Cyrus-Imapd: 2.3.7
 Sasl: 2.1.22
 imapd.conf:
 altnamespace: yes
 autocreatequota:-1
 createonpost: no
 autocreate_sieve_script: /var/lib/imap/sieve/default.script
 autocreateinboxfolders: Spam|Drafts|Sent|Trash
 autosubscribeinboxfolders: Spam|Drafts|Sent|Trash
 autosubscribesharedfolders: Spam|Ikke-Spam
 defaultdomain: example.com
 virtdomains: userid
 servername: mail.example.com
 unixhierarchysep: 1
 sasl_mech_list: plain
 sasl_pwcheck_method: saslauthd
 cmtp_overquota_perm_failure: no
 saslauthd.conf:
 ldap_servers: ldaps://ldap.example.com
 ldap_version: 3
 ldap_timeout: 10
 ldap_time_limit:  10
 ldap_search_base: dc=example,dc=com
 ldap_bind_dn: uid=saslauthd,ou=Services,dc=example,dc=com
 ldap_password:password
 ldap_scope:   sub
 ldap_uidattr: mail
 ldap_filter_mode: yes
 ldap_filter:  ([EMAIL PROTECTED])
 testsaslauth works:
 testsaslauthd -u tarjei -r example.com -p password
 0: OK Success.
 but imtest fails:
 imtest -u [EMAIL PROTECTED] -a [EMAIL PROTECTED] -t  localhost
 ...
 S: A01 NO authentication failure
 Authentication failed. generic failure
 I then find the following in the log files:
 saslauthd[27506]: do_auth : auth failure: [user=tarjei]
 [service=imap] [realm=] [mech=ldap] [reason=Unknown]
 And in the ldap log:
 SRCH base=dc=example,dc=com scope=2 deref=0 filter=(mail=tarjei@)

 It seems to me that for some reason, the imap server is not passing on
 the full username - but just the part before the domainname.
 Does anyone know what I am doing wrong? I seem so close :)
 Kind regards,
 Tarjei
 
 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


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFItAGIYVRKCnSvzfIRAtnsAJ9/LiX+5j7yp/SYgkNyAiUPzOO+vwCgpAlx
 cUqCz8jSR67aW2J70DhdQ4o=
 =Zztf
 -END PGP SIGNATURE-




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: root file system full: master.core?

2008-08-25 Thread Alain Spineux
On Mon, Aug 25, 2008 at 9:30 AM, Martin Schweizer
[EMAIL PROTECTED] wrote:
 Hello

 I use FreeBSD 7.0 an a single server with cyrus v2.3.12p2. So fare all
 works well. After the update from FreeBSD 6.3 to 7.0 I got always when
 I start cyrus a file which is called master.core in /etc/rc.d which
 has around 65MB. The problem here is that the root file system is now
 quite full. Any ideas?


This look like a core dump ! The dump of the memory of a process
when it crashed.
This should help you to find why it crashed !

Can you look in your log files at the creation time of this core
dump to see for any error ?

Are you sure master.core is coming from a problem with cyrus ?
Because postfix  master is also called master !

Could you remove this file and restart cyrus service ? Does this file
come back ?
If not can you try with postfix service ?


FYI : the ulimit command can't be used to disable the core dump
creation by setting a maximum size to 0
But this doesnt' solve the problem, just hide it.


 Kind regards,
 --
 Martin Schweizer
 [EMAIL PROTECTED]
 Tel.: +41 32 512 48 54 (VoIP)
 Fax: +1 619 3300587
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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-imapd not providing realm information

2008-08-25 Thread Alain Spineux
On Mon, Aug 25, 2008 at 2:51 PM, tarjei [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi Again,
 tarjei wrote:
 lartc wrote:
 Hi,

 I've got the same setup -- you should have

 ldap_realm: yourdomain.com

 It seems that the parameter that needed to be set was
 ldap_default_realm, as I found when reading
 http://thread.gmane.org/gmane.mail.imap.cyrus/22049.


You set
virtdomains: userid

What is happening if you configure a second domain name ?

I thing your error was to configure

defaultdomain: example.com

because then when you login as [EMAIL PROTECTED], cyrus remove the
@example.com

This is working that way because when you updrade from

virtdomains: off
to
virtdomains: userid

you can keep your old user (without @domain.name)  without any changes.
Just create new mailboxes and users specifying a domain name.

Regards


 Again, thanks for helping me.

 Kind regards,
 Tarjei



 in /etc/saslauthd.conf

 and you should start saslauthd daemon with the -r argument


 Hi Charles, thank you for your quick reply.

 I tried your suggestions, but they do not seem to solve my problem. The
 same problem persists.

 Kind regards,
 tarjei

 hth,

 charles




 On Mon, 2008-08-25 at 14:04 +0200, tarjei wrote:
 Hi, I'm trying to get Cyrus IMAPD + saslauthd working with an
 virtdomains setup.

 Relevant info:
 OS: Centos 5.2
 Cyrus-Imapd: 2.3.7
 Sasl: 2.1.22

 imapd.conf:
 altnamespace: yes
 autocreatequota:-1
 createonpost: no
 autocreate_sieve_script: /var/lib/imap/sieve/default.script
 autocreateinboxfolders: Spam|Drafts|Sent|Trash
 autosubscribeinboxfolders: Spam|Drafts|Sent|Trash
 autosubscribesharedfolders: Spam|Ikke-Spam
 defaultdomain: example.com
 virtdomains: userid
 servername: mail.example.com
 unixhierarchysep: 1
 sasl_mech_list: plain
 sasl_pwcheck_method: saslauthd
 cmtp_overquota_perm_failure: no

 saslauthd.conf:
 ldap_servers: ldaps://ldap.example.com
 ldap_version: 3
 ldap_timeout: 10
 ldap_time_limit:  10
 ldap_search_base: dc=example,dc=com
 ldap_bind_dn: uid=saslauthd,ou=Services,dc=example,dc=com
 ldap_password:password
 ldap_scope:   sub
 ldap_uidattr: mail
 ldap_filter_mode: yes
 ldap_filter:  ([EMAIL PROTECTED])

 testsaslauth works:
 testsaslauthd -u tarjei -r example.com -p password
 0: OK Success.

 but imtest fails:
 imtest -u [EMAIL PROTECTED] -a [EMAIL PROTECTED] -t  localhost
 ...
 S: A01 NO authentication failure
 Authentication failed. generic failure

 I then find the following in the log files:
 saslauthd[27506]: do_auth : auth failure: [user=tarjei]
 [service=imap] [realm=] [mech=ldap] [reason=Unknown]

 And in the ldap log:
 SRCH base=dc=example,dc=com scope=2 deref=0 filter=(mail=tarjei@)


 It seems to me that for some reason, the imap server is not passing on
 the full username - but just the part before the domainname.

 Does anyone know what I am doing wrong? I seem so close :)

 Kind regards,
 Tarjei

 
 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

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFIsqrrYVRKCnSvzfIRAjBHAKCBQYe6u8ZZOd7ssM68vSQ6en8oAwCgrUl+
 8dnhnjUTrfUoeL/nU6OZxp8=
 =cPzT
 -END PGP SIGNATURE-
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Very annoying IMAP problem (cyrus + Outlook)

2008-08-22 Thread Alain Spineux
On Fri, Aug 22, 2008 at 12:20 PM, Denis BUCHER [EMAIL PROTECTED] wrote:
 Michael Menge a écrit :
 Quoting Denis BUCHER [EMAIL PROTECTED]:

 We have 50 people using Outlook on our IMAP cyrus server. It's
 wonderful : fast, efficient, no problem, easy...

 But for 4-5 days I have a strange problem only on one PC :
 * Outlook has to reconnect to the server every 5 minutes because of
 Fatal error: word too long.

 As far as I understand, the cause of the problem is :
 * Outlook is sending either a token or quoted string that is longer
 than 8K bytes.

 But how could I correct this problem either in Outlook or cyrus ???
 * Can I simply delete the offending email in Outlook, but how to
 find which one ?

 Denis Bucher

 Hi

 you can investigate the problem further by activating cyrus telemetry
 logging for that user. Create a directory with the name of the userid
 in {configdirectory}/log . Cyrus will create files in there wich will
 contain all data send and recieved after authentication.

 Michael Menge

 What do you call the configdirectory for cyrus ? I have different places
 with cyrus (I'm using the standard package provided with SuSE Linux /
 SLES 10) :

for myself :

# mkdir /var/lib/imap/log/[EMAIL PROTECTED]
# chown cyrus.cyrus /var/lib/imap/log/[EMAIL PROTECTED]



 1. I have a cyrus user with all binaries inside bin in the homedir
 2. In /var/spool/imap/user/ there are all user accounts with the mails...

 But I think I understand, I have to create the log directory into :
 /var/spool/imap/user/dbucher
 which means :
 /var/spool/imap/user/dbucher/log

 Is that enough and correct, no config to add or command in cyradm ?

nothing more


 I restarted cyrus but nothing appears in the log directory...

 Thank you very much for your help

To solve your problem you could try to use an imap proxy between your
outlook and cyrus like nginx
Just for this user or other having problems at first



 Denis
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: limit user access to certain IP addresses?

2008-08-19 Thread Alain Spineux
On Mon, Aug 18, 2008 at 1:23 PM, Tomasz Chmielewski [EMAIL PROTECTED] wrote:
 It it possible to limit POP3/IMAP access for chosen users only to
 certain IP addresses?

 For example, I'd like to allow some users only access from 127.0.0.1
 (or, Squirrelmail running on the same address as Cyrus); those users
 shouldn't have public access to POP3/IMAP from the whole Internet.

I do that using nginx as a pop3/imap proxy

http://wiki.codemongers.com/NginxMailCoreModule


 At the same time, though, I would like to allow access for some other
 users via POP3/IMAP as well.


 Is it somehow possible with Cyrus? If it is, it would be great if it
 could be used to limit access to SMTP as well. As SMTP is different than
 what Cyrus does, this would perhaps suggest some additional PAM library?

postfix allow you to setup your own policy service.
You can insert your in smtpd_sender_restrictions or
smtpd_rcipient_restrictions lists



 Any ideas?


 --
 Tomasz Chmielewski
 http://wpkg.org
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: migrate to virtual domains

2008-08-18 Thread Alain Spineux
On Mon, Aug 18, 2008 at 11:21 AM, Peter Lokus [EMAIL PROTECTED] wrote:
 Hi list,

 I using cyrus imap for two domains without virtual domains.
 Say, my folder structure look like

 /var/spool/cyrus/mail/user/user1domain: example.net
 /var/spool/cyrus/mail/user/user2domain: example.com

 Every user has its own folders under the INBOX.

 In order to enhance the administration and migrate new domains easier I want
 to switch to virtual domains. It should look like

 /var/spool/cyrus/mail/domain/example.net/user/user1
 /var/spool/cyrus/mail/domain/example.com/user/user2

 How do I move the user folders' to the new folder structure?
 My approach was to copy these folder's to the new  folder structure and run
 reconstruct. However, I can see only mails in the INBOX.

If I had to do it myself : (it could be uncomplete, sorry)

- first in imapd.conf set 'virtdomains' to what you want,
- create new [EMAIL PROTECTED] and [EMAIL PROTECTED]
- try to login as user1, user2, [EMAIL PROTECTED] and [EMAIL PROTECTED],
check that the first have a not empty mailbox and the last have an empty  one.
- Use imapsync to copy all the emails from user1 to [EMAIL PROTECTED],
continue with all your other user.
- update your SMTP configuration to deliver to [EMAIL PROTECTED]
instead of user1

Be carefiull to have enough spece to do all you user at once, or do it
one by one, removing old user

Hope this help


 Any recommendations?

 Peter
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 vs Dovecot

2008-08-11 Thread Alain Spineux
2008/8/11 Mathieu Kretchner [EMAIL PROTECTED]:
 First of all : forgive me for my poor English

 Hello all,

 I've to compare cyrus with dovecot for my work. Because these are the only
 solutions that could fit our needs.
 Unfortunately I really don't know cyrus and I would like to have some of its
 assets.

what do you need ?
how many mailbox ?
how many users ?
what is in use now ?
what kind of access ? IMAP, POP3, webmail ?
how many server ?
Do you already have a database with your user ? in wich format ?


 Here are the properties of the versus table I've done :
dovecot cyrus
 Installation:
 Update:
 Migration from cyrus :
 Migration from dovecot :
 functionalities :
 Management :
 Local Delivery :
 availability :
 Security :
 Indexes management :
 NFS compatibility :
 Scalability :
 Configuration :
 interoperability :
 Sieve filter :
 Documentation :
 Quota capability :
 Performance :
 IMAP capability :

 So I know this can scared you, but If you have some asset for cyrus, It
 could be great and a lot more FAIR !!

 Thank you in advance for your advice.



 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: ipurge question

2008-07-21 Thread Alain Spineux
On Mon, Jul 21, 2008 at 2:31 PM,  [EMAIL PROTECTED] wrote:
 Hello,

 I'm am trying to use the ipurge command to delete messages and have a
 question.  Here is the directory structure and files:

   /var/spool/imap/d/user/john
 Deleted Items   07/19/2008  9:21:37 PM
 rwx--   cyrus
 Drafts  07/19/2008  9:21:37 PM
 rwx--   cyrus
 MACS07/19/2008  9:21:37 PM
 rwx--   cyrus
 Sent Items  07/19/2008  9:21:37 PM
 rwx--   cyrus
 1.  13,646  07/09/2008  5:09:00 PM
 rw---   cyrus
 2.  10,007  07/10/2008  10:18:01 AM
 rw---   cyrus
 cyrus.cache 1,796   07/18/2008  3:49:49 PM
 rw---   cyrus
 cyrus.header170 07/18/2008  5:04:49 PM
 rw---   cyrus
 cyrus.index 136 07/18/2008  3:49:49 PM
 rw---   cyrus
 cyrus.squat 17,023  07/18/2008  3:49:49 PM
 rw---   cyrus

 How can I delete the items in /var/spool/imap/d/user/john  (i.e. item 1.
 and 2.) without deleting the items in /var/spool/imap/d/user/john/MACS?

Dont know how with ipurge, bu you could try using the expire
attribute (man cyradm)
and then run cyr_expire


 I tried this command == su cyrus -c /bin/ipurge -d1 user/dino=== But
 nothing is deleted.

You dont use -f here, then it delete only shared folder

 When I try this one == su cyrus -c /opt/insight/bin/ipurge -d1 -f
 user/dino=== It deletes all messages in all directories in
 /var/spool/imap/d/user/john

-d1 , one day old

 What am I doing wrong?

 Thanks!

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: cyradm: dm permission denied AFTER setacl

2008-07-11 Thread Alain Spineux
On Sat, Jul 12, 2008 at 6:32 AM, brian [EMAIL PROTECTED] wrote:
 I cannot delete a mailbox with cyradm. Specifically, setacl seems not to
 be working:

 localhost.localdomain sam [EMAIL PROTECTED] cyrus -c

try this instead

sam [EMAIL PROTECTED] cyrus x

use x instead of -c

Regards


 localhost.localdomain dm [EMAIL PROTECTED]
 deletemailbox: Permission denied
 localhost.localdomain lam [EMAIL PROTECTED]
 [EMAIL PROTECTED] lrswipkxtecda


 So, it seems the that sam is not working suddenly. I've never
 encountered this and cannot find anything online that suggests how to
 deal with this. Does anyone have some idea of where to look?

 b
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: subscribe across domain

2008-07-09 Thread Alain Spineux
On Wed, Jul 9, 2008 at 5:48 PM, Mike Zupan [EMAIL PROTECTED] wrote:
 is there anyway to subscribe a user to a mailbox across a domain? subscribe
 [EMAIL PROTECTED] to [EMAIL PROTECTED] ?

No, you cannot access mailbox from another domain.
This is a limitation of cyrus, probably because nobody added
this feature when cyrus moved to multi domain.


 thanks
 Mike

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: changing namespace on a running server

2008-07-03 Thread Alain Spineux
On Wed, Jul 2, 2008 at 9:04 AM, Eugen Wintersberger
[EMAIL PROTECTED] wrote:
 Hi there
  I am new to this mailing list and hope you can help me. I use the cyrus
 IMAP server using the common namespace scheme. Now, since we need shared
 mail boxes, I have to switch to the alternate scheme.
 Can I do this with a running server? Meaning: when I change now the
 configuration and restart the server do I have to expect any kind of
 data loos?

No data lost.
Be careful to update your sieve script accordingly



 regards
   Eugen Wintersberger

 --
 
 |  |
 | Dipl. Ing. Eugen Wintersberger   |
 | Department of semicondutor physics   |
 | University of Linz   |
 | Altenbergerstrasse 69|
 | A-4040 Linz  |
 | Austria  |
 |  |
 | Mobile.: +43 664 3112861 |
 | Tel.: +43 732 2468 9605  |
 | E-Mail.: [EMAIL PROTECTED]  |
 | Skype: eugen20056221 |
 | ICQ: 214418739, nickname: thot   |
 |  |
 

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 filter rules

2008-06-30 Thread Alain Spineux
On Mon, Jun 30, 2008 at 4:06 PM, dick hoogendijk [EMAIL PROTECTED] wrote:

 dick hoogendijk wrote:

 midgard# telnet yanta 2000
 Trying 192.168.11.35...
 Connected to yanta.nagual.nl.
 Escape character is '^]'.
 IMPLEMENTATION Cyrus timsieved v2.3.11
 SASL PLAIN OTP LOGIN DIGEST-MD5 CRAM-MD5
 SIEVE comparator-i;ascii-numeric fileinto reject vacation imapflags
 notify envelope relational regex subaddress copy
 STARTTLS
 OK

 And I'm sure it's the latter rule: STARTTLS that's causing the failure.
 Older versions of cyrus imap did not send this and then avelsieve +
 squirrelmail worked fine. What can I do except retun to the older stable
 release?

Cyrus was not conforming to the standard, now it does !
Other clients used cyrus as a reference in the past,
and then are not compatible with it anymore,
until they are conforming to the standard too.


 --
 Dick Hoogendijk -- PGP/GnuPG key: F86289CE
 ++ http://nagual.nl/ | SunOS 10u5 05/08 ++

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 and PHP imap_mail_move

2008-06-26 Thread Alain Spineux
On Thu, Jun 26, 2008 at 6:11 PM, Marten Lehmann [EMAIL PROTECTED] wrote:
 Hello,

 I noticed, that imap_mail_move() does not move the message(s) on our
 cyrus-imapd-2.2.12-8.1.RHEL4, while imap_mail_copy() works fine. When
 I'm requesting the capabilities, then cyrusd announces NO_ATOMIC_RENAME.
  Does this mean, that it is not possible to move a message from one
 folder to another directly? Of course one could copy and delete+expunge
 later, but thats annoying and error-prone.

You can rename a mailbox (or a folder) and can copy (aka duplicate) an email.
But to move an email, you have to copy and delete it.
This the way imap works.


 Regards
 Marten
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: DBERROR - how do I recover?

2008-06-23 Thread Alain Spineux
On Mon, Jun 23, 2008 at 7:08 PM, Shelley Waltz [EMAIL PROTECTED] wrote:
 I just restarted my cyrus-imapd 2.2 and got a DBERROR.  I removed the
 duplicate db since the error persisted and this has worked in the past.

 I am still in trouble on my production system - help

 Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR db4: fatal region error
 detected; run recovery
 Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: dbenv-open
 '/var/lib/imap/db' failed: DB_RUNRECOVERY: Fatal error, run database
 recovery
 Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: init() on berkeley
 Jun 23 12:57:34 chipmunk lmtpunix[4948]: executed
 Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR db4: environment not yet
 opened
 Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: opening
 /var/lib/imap/deliver.db: Invalid argument

Do the dliver.db file exists ?
What are the unix right ? What are the unix right for the directory ?

 Jun 23 12:57:34 chipmunk lmtpunix[4948]: DBERROR: opening
 /var/lib/imap/deliver.db: cyrusdb error
 Jun 23 12:57:34 chipmunk lmtpunix[4948]: FATAL: lmtpd: unable to init
 duplicate delivery database
 Jun 23 12:57:34 chipmunk master[1691]: process 4948 exited, status 75
 Jun 23 12:57:34 chipmunk master[1691]: service lmtpunix pid 4948 in READY
 state: terminated abnormally
 Jun 23 12:57:34 chipmunk master[4949]: about to exec
 /usr/lib/cyrus-imapd/lmtpd

 what can i do to recover from this problem - no mail is going through.

 thanks S

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Seen database issue

2008-06-17 Thread Alain Spineux
On Tue, Jun 17, 2008 at 6:00 PM, Shelley Waltz [EMAIL PROTECTED] wrote:
 The architecture of the old server is intel 32bit RHEL3 and the new server
 is intel 32bit RHEL5.  Any suggestions on what may be wrong is appreciated
 as this is the only issue I have in the transition and I need to move a
 large number of users to the new server without losing the seen
 information.

 I tried converting the skiplist db on the old server to various formats -
 berkeley flat and then back to skiplist on the new server, but the
 messages on the new server still all come up as not seen.
 thanks much S

 Shelley Waltz said:
 I am migrating my users from cyrus-imapd-2.2.3-4 to cyrus-imapd-2.3.7-2

 Moving the /var/spool/imap directories, and /var/lib/user/{}.seen
 files to the new server and reconstructing works fine except that all the
 mail shows up as not read on the new sever.

 The username.seen on both servers is skiplist.  What do I need to do to
 have the seen preserved in the migration?

 No issues were mentioned in the upgrade documentation regarding a
 migration
 from 2.2 to 2.3 and skiplist.  Any help is appreciated.
 thanks S

Do you have any error message ?
Are you sure you have restored your seen file in the good place  ?
If you you create a completely new user, is the seen working then ?


 
 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



 { Shelley Waltz
  Center for Advanced Biotechnology and Medicine
  Rutgers University / UMDNJ
  679 Hoes Lane
  Piscataway, NJ 08854-5638
  732 235 3346 };
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Is skiplist dependant on byte order?

2008-06-16 Thread Alain Spineux
Another interesting question is :

IS skiplist 32 vs 64 bit dependant ?

Then how to transfers annotation.db between incompatible platform ?

flat format is excluded because annotation could contain binary data, and flat
is not a permitted format in imapd.conf.

Then should I convert into berkeley DB and then make a BDB dump ?
Then restore the BDB on the target and convert it back to skiplist ?

Or does it exist something simpler ?

Regards


On Mon, Jun 16, 2008 at 3:38 AM, Gary Mills [EMAIL PROTECTED] wrote:
 I recently upgraded a murder front end server from Solaris 9 SPARC to
 Solaris 10 x86 by copying the /imap directory.  I did dump the
 mailboxes database before the copy.  It's a skiplist database.  I'm
 running cyrus-imapd-2.3.8 on both systems.  As a test, I first checked
 on the mailboxes database like this:

# su cyrus -c ksh
# /usr/local/cyrus/bin/ctl_mboxlist -d | wc -l
   0

 This message appeared in the log:

Jun 11 16:24:43 setup01 ctl_mboxlist[14082]: [ID 864961 local6.crit] 
 DBERROR: critical database situation

 After I reloaded it, I got the correct output:

# /usr/local/cyrus/bin/ctl_mboxlist -u  mailboxes.txt
# /usr/local/cyrus/bin/ctl_mboxlist -d | wc -l
  77

 This is a test server with only a few mailboxes.  I'll upgrade the
 production server later.

 I'm assuming that skiplist is dependant on the machine's byte order,
 and that a dump and reload is necessary in this case.

 Are there any other databases that I should also dump and reload?  As
 far as I can tell, the annotation_db, duplicate_db, and tlscache_db
 are empty and can simply be removed.  Are there any others on a murder
 front end that I've missed?  Where do they reside?

 --
 -Gary Mills--Unix Support--U of M Academic Computing and Networking-
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: (SOLVED) Re: Problem on creating users account and their mail boxes

2008-06-16 Thread Alain Spineux
On Mon, Jun 16, 2008 at 9:29 AM, Stephen Liu [EMAIL PROTECTED] wrote:
 --- Simon Matter [EMAIL PROTECTED] wrote:

 - snip -

 Exactly, I suggest you remove all mailboxes and then start creating
 the
 correct new ones.


 Hi Simon,


 I take your advice deleting all mailboxes while running cyradm and
 recreate them afterwards.


 SquirrelMail is now running nicely sending/receiving emails w/o
 problem.  Emails on SM can be deleted and transferred btw mailboxes.



 Looks like you are almost there.
 If you really want unixhierarchysep then you may try to activate it
 after
 you have everything up and runnning and the configs in a safe place.
 But I
 don't think there is a very good reason to do so.


 I don't think I need unixhierarchysep.  Neither I have a full
 understanding of its function.


unixhierarchysep is usefull to have allow dot into mailbox name.
If you are not using unixhierarchysep and want dot, you need to do
some mapping at SMTP level.



 Others noted with thanks.



 Hi folks, lot of thanks for your assistance.



 B.R.
 Stephen

 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: pam pop issue

2008-06-16 Thread Alain Spineux
On Mon, Jun 16, 2008 at 7:19 PM, Ashay Chitnis [EMAIL PROTECTED] wrote:
 Dear All,

 I need to access pop and imap  on user based IP level restrictions. I found
 pam to be best suited for this service level restriction. The restriction
 will be as below.

 User pqr should be allowed POP from IPADDR-1
 User B should be allowed IMAP from IPADDR-2
 User C should be allowed POP and IMAP from IPADDR-3

 and so on.

 To achieve this below settings are done in  /etc/pam.d/pop

If you dont find the solution with pam, look a this

http://wiki.codemongers.com/NginxImapCoreModule

install nginx and wrote a peace of code to
handle your need.




 cat /etc/pam.d/pop
 authrequired/lib/security/pam_ldap.so
 account required  /lib/security/pam_access.so debug
 accessfile=/usr/local/etc/popaccess.conf
 account required/lib/security/pam_ldap.so


 cat  /usr/local/etc/popaccess.conf

 +:pqr:192.168.2.66/32

 OR

 -:pqr:ALL EXCEPT 192.168.2.66/32


 But this does not see to be working as it is not yielding desired effect
 even after restarting saslauthd and cyrus..


 Kindly guide me through..

 regards
 Ashay












 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: (SOLVED) Re: Problem on creating users account and their mail boxes

2008-06-16 Thread Alain Spineux
On Tue, Jun 17, 2008 at 2:51 AM, Stephen Liu [EMAIL PROTECTED] wrote:

 --- Alain Spineux [EMAIL PROTECTED] wrote:


  I don't think I need unixhierarchysep.  Neither I have a full
  understanding of its function.
 

 unixhierarchysep is usefull to have allow dot into mailbox name.


 Hi Alain,


 Whether you meant;


 INBOX
 INBOX.Drafts
 INBOX.Sent Items
 INBOX.friends
 INBOX.work
 INBOX.work.aaa
 user.aaa
 user.aaa.stuff
 etc.

 ???

rather

user/stephen.liu
user/stephen.liu/Drafts
user/stephen.liu/Sent Items

user/someone.else





 Thanks


 B.R.
 Stephen


 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 - can't create user mailbox

2008-06-10 Thread Alain Spineux
On Tue, Jun 10, 2008 at 3:21 PM, Stephen Liu [EMAIL PROTECTED] wrote:
 Hi Jorey,


 - snip -


  The output here is;
  $ id postfix
  uid=107(postfix) gid=111(postfix) groups=111(postfix)

 Yes. Now add the postfix user to the mail group, and the permissions
 error should disappear.


 I'm prepared to run;

 $ sudo groupadd mail -g 1001
 $ useradd postfix -u 1001 -g 1001

 Shall I use number 1001?  OR another number?


 However on /etc/group I found following entries;

 mail:x:8:dovecot
 dovecot:x:113:

if you can edit /etc/group, change mail group like that

mail:x:8:dovecot,postfix

and restart postfix


private joke:  I dont understand why all ubuntu and debian users use
always the same prompt : $ sudo  :-)





 I don't have dovecot-* running.  Shall I remove them manually?  Thanks


 Other advice noted with thanks



 B.R.
 Stephen

 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 - can't create user mailbox

2008-06-09 Thread Alain Spineux
On Mon, Jun 9, 2008 at 11:36 AM, Stephen Liu [EMAIL PROTECTED] wrote:
 Hi Michael,


 Thanks for your advice.


 Quoting Stephen Liu [EMAIL PROTECTED]:

 
   $ cyradm -u cyrus localhost
   Password:
   localhost cm user.satimiscyrus
   localhost quit
  
   it works.  But I can't find this new user NOR its mailbox.
 
  $ locate satimiscyrus
  /var/spool/cyrus/mail/u/user^satimiscyrus
  /var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
  /var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
  /var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
 
 
  The mailbox is there.  What is user^ for?

 This indicates that you have set unixhierarchysep: 1 in
 /etc/imapd.conf


 $ cat /etc/imapd.conf | grep unixhierarchysep
 unixhierarchysep: yes


 It is set as yes


 To create a Inbox for the user satimiscyrus you have to use
 cm user/satimiscyrus

 The ^ is the reperentation of the . on filesystem.


 Tried to delete the mailbox without success.  Performed following
 steps;


 $ su - cyrus
 Password:

 $ cyradm -u cyrus localhost
 Password:
 localhost dm user.satimiscyrus
 deletemailbox: Permission denied

 I can't delete the mailbox created previously.

Because you need to give yourself the right before

 sam user.satimiscyrus manager x
or maybe
 sam user.satimiscyrus manager c
then
 dm user.satimiscyrus



 Continued

 localhost cm user/satimiscyrus
 localhost lm
 user.groupware (\HasNoChildren) user/satimiscyrus (\HasNoChildren)

 user.satimiscyrus (\HasNoChildren)

 Still can't create the subdirectory.

I dont understand !



 Continued
 localhost quit
 $ exit
 logout


 $ sudo updatedb

in this case  'find' is more appropriate than locate



 $ locate satimiscyrus

find / -iname  *satimiscyrus*

 /home/satimiscyrus
 /home/satimiscyrus/.bash_history
 /home/satimiscyrus/.bash_logout
 /home/satimiscyrus/.bash_profile
 /home/satimiscyrus/.bashrc
 /var/spool/cyrus/mail/s/user/satimiscyrus
 /var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.cache
 /var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.header
 /var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.index
 /var/spool/cyrus/mail/u/user^satimiscyrus
 /var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
 /var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
 /var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
 * end *


 Send a webmail to satimiscyrus on Gmail.  The mail never arrives.

Is your MX pointers configured ? Is your SMTP reachable from outside ?
Did you look in postfix log ?




 B.R.
 Stephen L

 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 - can't create user mailbox

2008-06-09 Thread Alain Spineux
On Mon, Jun 9, 2008 at 4:07 PM, Stephen Liu [EMAIL PROTECTED] wrote:
 Hi Simon,


  Whether I have to run the command as root?

 NO, you shouldn't run this as root!
 If you want to delete a cyrus mailbox you have to give the cyrus
 admin
 user the rights to do so (as someone else already stated).


 Noted with thanks.


 ^^

 Try to find out where you cyrus creates it's lmtp socket and point
 your
 postfix config to it.

 I don't know Debian but I think it should come with some docs to get
 things to work. (Ubuntu ins mainly a copy of Debian so the same
 should
 apply there as well). Maybe some Debian/Ubuntu user can point you to
 the
 right docs.


 $ cat /etc/cyrus.conf | grep socket
 # UNIX sockets start with a slash and are absolute paths
# (you must keep the Unix socket name in sync with imap.conf)
lmtpunixcmd=lmtpd listen=/var/run/cyrus/socket/lmtp
 prefork=0 maxchild=20
notify  cmd=notifyd
 listen=/var/run/cyrus/socket/notify proto=udp prefork=1
 * end *


 Would it be /var/run/cyrus/socket/lmtp ?

You have somewhere int your postfix main.cf  /var/run/lmtp, probably
a mailbox_transport=... or a local_transport=
You must replace it by the cyrus path : /var/run/cyrus/socket/lmtp

If smtpd daemon is chrooted this become more difficult !
You have 2 possibilities
- just try to replace the 'y' in master.cf by a 'n' to make smtpd not chrooted
- change the path in cyrus.conf to move the socket somewhere bellow the
postfix chroot jail. Be carefull cyrus must have enough right in the
postfix directory to create the socket.



 $ sudo ls -la /var/run/cyrus/socket | grep lmtp
 srwxrwxrwx 1 root  root  0 2008-06-09 21:26 lmtp


 $ sudo ls -la /var/run/cyrus/socket/
 total 0
 drwxr-x--- 2 cyrus mail 80 2008-06-09 21:26 .
 drwxr-xr-x 3 cyrus mail 60 2008-06-09 21:26 ..
 srwxrwxrwx 1 root  root  0 2008-06-09 21:26 lmtp
 srwxrwxrwx 1 root  root  0 2008-06-09 21:26 notify
 * end *


 How to link it to postfix config?  Thanks



 B.R.
 Stephen


 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 - can't create user mailbox

2008-06-09 Thread Alain Spineux
On Mon, Jun 9, 2008 at 7:42 PM, Jorey Bump [EMAIL PROTECTED] wrote:
 Stephen Liu wrote, at 06/09/2008 01:19 PM:

 There's no need to run Postfix in a chroot jail. You are better off
 disabling chroot entirely (explicitly with an 'n' in master.cf).
 
 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


I agree. Make a copy of your master.cf and replace all '-' in the 5th
column by 'n'
Then the possible problem is that master.cf or main.cf could contains
some configuration stuff to run
in a chroot jail. run the folowing command and report the result

# postconf -n


Then in main.cf replace

mailbox_transport = lmtp:unix:/var/run/lmtp
by
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp


Restart all, and try to send an email,
look in the postfix log to see what is the next problem :-)

-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: lmtpd Internal error: asserstion failed: append.c

2008-06-06 Thread Alain Spineux
=vmail argv=/usr/local/bin/maildrop -d ${recipient}
 #
 # The Cyrus deliver program has changed incompatibly, multiple times.
 #
 old-cyrus unix  -   n   n   -   -   pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension}
 ${user}
 # Cyrus 2.1.5 (Amos Gouaux)
 # Also specify in main.cf: cyrus_destination_recipient_limit=1
 cyrus unix  -   n   n   -   -   pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m
 ${extension} ${user}
 #
 # See the Postfix UUCP_README file for configuration details.
 #
 uucp  unix  -   n   n   -   -   pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
 ($recipient)
 #
 # Other external delivery methods.
 #
 ifmailunix  -   n   n   -   -   pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
 bsmtp unix  -   n   n   -   -   pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
 $recipient


 Any suggestions on causes for the lmtp error are appreciated.
 S

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Imap spool directory

2008-06-02 Thread Alain Spineux
On Mon, Jun 2, 2008 at 3:01 PM, Shelley Waltz [EMAIL PROTECTED] wrote:

 Alain Spineux said:
 On Sat, May 31, 2008 at 3:55 AM, Shelley Waltz [EMAIL PROTECTED]
 wrote:

 Simon Matter said:
 I just created a new cyrus-2.3.7-2 server on RHEL5.  I created the
 /etc/imapd.conf and started up /etc/init.d/cyrus-imapd start.

 On my old cyrus-2.2 server, the /var/spool/imap  has all the
 directories
 for the user's mail files under a b c ...

 Question is ... I specified /var/spool/imap as the sppol directory in
 imapd.conf. however, when I started cyrus, no a b c ... directories
 were
 created.  Does this only happen as I add accounts or migrate accounts?

 Yes.

 Simon



 I migrated my mailboxes.db to the new server, so I need to create the
 /var/spool/imap/{a-z}/user/username/* and reconstruct?

 No need to create dirs! reconstruct is able to read mailbox.db and
 reconstruct all missing
 directories

 using something like:(depending unixhierarchysep)

 $ reconstruct -rf user/*

Ops, you need to specify the domain name

$ reconstruct -rf user/[EMAIL PROTECTED]

is working for me

$ reconstruct -rf user/*
will reconstruct only mailbox in the defaultdomain

 or
 $ reconstruct -rf user.*

I dont know the domain notation here sorry


 -r is a little broken and can be useless, but the '*' wilcard do the job



 I loaded mailboxes.db using ctl_mboxlist -u mailboxes.dump  where
 mailboxes.dump is a dump of the mailboxes on my old server.  I then try
 reconstruct -rf user.* and no mailboxes under /var/spool/imap are
 reconstructed?  The mailboxes.db contains the mailboxes as I can see them
 if I do a ctl_mboxlist -d mailboxes.dump2 . I see no messages in
 /var/log/messages or /var/log/maillog.  Why aren't they created?
 unixhierarchysep is 0, the default of .

 thnx
 S
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Not all mailboxes listed when migrating to new server

2008-05-27 Thread Alain Spineux
On Tue, May 27, 2008 at 7:32 PM, Keith Edmunds [EMAIL PROTECTED] wrote:
 I am migrating a Cyrus IMAP server to new hardware. To
 migrate the accounts I did the following on the old server:

 ctl_mboxlist -d  /tmp/mailboxes.dump

 ...and on the server:

 /usr/sbin/ctl_mboxlist -u  /tmp/mailboxes.dump
 /usr/sbin/cyrreconstruct

 (This is a Debian system, so the reconstruct command has
 been renamed).

 From inside cyradm, a lm lists about a quarter of the
 mailboxes (that's a guess; if it's important I'll find out
 how many), yet the directory structure within the Cyrus
 partition appears to contain all accounts.

 If I do a 'lam user.xxx' where user.xxx is one of the
 accounts not listed, I get 'Mailbox does not exist'. If I
 send a mail to that user on the new server and repeat the
 'lam user.xxx', I get a blank line output, suggesting that
 the mailbox does now exist but with no acls. The mail sent
 to that user can be seen in the filesystem.

 Can anyone shed any light on what is happening here?

You should read the message posted one week ago with subject:
Hyphens in folder names break LIST

Maybe it will help


 Thanks,
 Keith

 Versions:
 Old server:
 name   : Cyrus IMAPD
 version: v2.2.10 2004/11/23 17:52:52
 vendor : Project Cyrus
 support-url: http://asg.web.cmu.edu/cyrus
 os : FreeBSD
 os-version : 4.11-STABLE
 environment: Built w/Cyrus SASL 2.1.20
 Running w/Cyrus SASL 2.1.20
 Built w/Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
 Running w/Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
 Built w/OpenSSL 0.9.7d 17 Mar 2004
 Running w/OpenSSL 0.9.7d 17 Mar 2004
 CMU Sieve 2.2
 TCP Wrappers
 mmap = shared
 lock = fcntl
 nonblock = fcntl
 auth = unix
 idle = poll


 New server:
 name   : Cyrus IMAPD
 version: v2.2.13-Debian-2.2.13-10 2006/11/13 16:17:53
 vendor : Project Cyrus
 support-url: http://asg.web.cmu.edu/cyrus
 os : Linux
 os-version : 2.6.18-6-686
 environment: Built w/Cyrus SASL 2.1.22
 Running w/Cyrus SASL 2.1.22
 Built w/Sleepycat Software: Berkeley DB 4.2.52: (December  3, 
 2003)
 Running w/Sleepycat Software: Berkeley DB 4.2.52: (December  3, 
 2003)
 Built w/OpenSSL 0.9.8c 05 Sep 2006
 Running w/OpenSSL 0.9.8c 05 Sep 2006
 CMU Sieve 2.2
 TCP Wrappers
 NET-SNMP
 mmap = shared
 lock = fcntl
 nonblock = fcntl
 idle = poll


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 POP access restritcion to users

2008-05-20 Thread Alain Spineux
On Tue, May 20, 2008 at 5:27 PM, Ashay Chitnis [EMAIL PROTECTED] wrote:
 Hi,

 I wanted to know if we can restrict some users to access POP and allow some
 users to access POP. I do not want to have firewall based restriction.  I am
 using cyrus-imapd-2.3.7-4. The same users should be allowed through Webmail
 without any issue. The users are LDAP users.  Can anyone help me on this?


If you are using saslauthd you could customize the ldap_filter in
saslauthd.conf
to take care of the service name.

adding something like

|(!(allowed_service=*))(allowed_service=%s))

Here i suppose %s is the service name  (like %u is the username) and you have
an ldap attribute allowed_service containing the allowed service per
user, or empty for no restriction.


Regards.


 regards,
 Ashay




 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: are these error messages severe? and how to fix them?

2008-05-20 Thread Alain Spineux
On Tue, May 20, 2008 at 3:55 PM,  [EMAIL PROTECTED] wrote:
 Thanks, all for your responses
 I still have some questions, though:

 1. under what conditions will cyrus delete or hide messages from the
 users' (and admins) sight if it does it at all?

if the expire annotation is set on the folder (man cyradm for more)


 2. Ihave been running this cyrus for about 2 yrs now, and never done any
 maintenance; does cyrus takes care of its own?

Yes

 if not, what is suggested? I
 do backups every night, export the db to a txt files, etc. but nothing
 else...

At least keep multiple version of your mailbox.db using ctl_mboxlist -d .
Backup is mandatory on any system !
Google for cyrus imap backup to find more, also kolab backup wiki
could be helpful.




 Thanks, again

 On Mon, 19 May 2008 21:07:55 +0200 (CEST), Simon Matter
 [EMAIL PROTECTED] said:
  On Mon, May 19, 2008 at 6:31 PM, [EMAIL PROTECTED] wrote:
  greetings all.
 
  This morning a user called me saying that he was using reading his
 email
  (via squirrelmail) in one computer, then he logged out, and some time
  later
  went to another computer open squirrelmail, and his mail was gone
 
  I checked directly in the mailstore and he had only a couple of
  messages,
  but he assures me that he did not delete anything
 
  After some search on the log files, I found something like this:
 
  May 19 09:56:05 ccaix imaps[8619]: skiplist: recovered
  /var/lib/imap/user/C/user^name.seen (3 records, 7316 bytes) in 0
 seconds

 I think skiplist files are always recovered when they are opened. So
 that is not a sign of anything wrong.

 Yeah, all that means is that the timestamp of the skiplist file is earlier
 than the timestamp of the last time cyrus was started. A recovery just
 goes through the file and makes sure that all the pointers are correct.

 That message is harmless.

 Bron.
 --
 Bron Gondwana
 [EMAIL PROTECTED]

 
 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





-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: are these error messages severe? and how to fix them?

2008-05-19 Thread Alain Spineux
On Mon, May 19, 2008 at 6:31 PM,  [EMAIL PROTECTED] wrote:
 greetings all.

 This morning a user called me saying that he was using reading his email
 (via squirrelmail) in one computer, then he logged out, and some time later
 went to another computer open squirrelmail, and his mail was gone

 I checked directly in the mailstore and he had only a couple of messages,
 but he assures me that he did not delete anything

 After some search on the log files, I found something like this:

 May 19 09:56:05 ccaix imaps[8619]: skiplist: recovered
 /var/lib/imap/user/C/user^name.seen (3 records, 7316 bytes) in 0 seconds

 after some more digging, Ifind that a bunch of account have the same type of
 error messages.

Is it always about the .seen file ? Or about a skiplist ?


 What do they mean? and how to fix them? are they serious?


- The .seen is an index that contains the state of emails, if you have
already read it or not.
- cyrreconstruct aka reconstruct is the tool to do the job, but it
looks like cyrus do it by itself !
- The .seen is only the .seen :-) This error is harmless, except if it
appears to often and
is the sign of something going wrong.


 I read some info and it says to delete the .seen and athen reconstruct the
 db for all users, but I'm not sure I want to do that for all the system.

Don't delete these files. Cyrus and cyrreconstruct are able to repair them!
If you still get a problem after a repair then you could try to delete
it, for a try,
but the you loose all your mail status


 Is there a way to do it for a single user (or a smal group of users).

Yes cyrreconstruct can work for one ore more user and also all user at once.


 Will cyrus delete emails during the process of recovering a user.seen file?


No

But the file that can be bring into play whe emailq are disappearing
is the .index file,
and a cyrreconstruct will repair it also.


As you can see, running this command ,
# man imapd.conf | col -b | grep _db
   annotation_db: skiplist
   duplicate_db: berkeley-nosync
   mboxkey_db: skiplist
   mboxlist_db: skiplist
   ptscache_db: berkeley
   quota_db: quotalegacy
   seenstate_db: skiplist
   subscription_db: flat
   tlscache_db: berkeley-nosync

cyrus use a lot of db with a lot of backend, some back-end are more or
less reliable than other,
depending the OS or the imap version. As a workaround it is possible
to change the backend.

 Currently using:
 Cent OS 4 x_64

If you look in previous post (1 year ago maybe)  theyr was post about
probleme in the map function that was generating problem with old kernel.
And a 64bits should not help.

Was your system working well in the past ?
Before to do something, be sure to have identified your problem.

 Cyrus POP3 v2.2.12-Invoca-RPM-2.2.12-8.1
 ESMTP Sendmail 8.13.1/8.13.1

 Thanks in advanced.

 Thanks

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Imap saslauthd produces huge no of logs crashe

2008-05-16 Thread Alain Spineux
 0 .
 May 16 11:28:36 mxstore2a saslauthd[7862]: returning 0.
 May 16 11:28:36 mxstore2a saslauthd[7862]: pam_mysql: acct_mgmt called but
 not implemented. Dont panic though :)
 May 16 11:28:55 mxstore2a saslauthd[7861]: pam_sm_authenticate called.
 May 16 11:28:55 mxstore2a saslauthd[7861]: dbuser changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: dbpasswd changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: host changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: database changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: table changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: usercolumn changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: passwdcolumn changed.
 May 16 11:28:55 mxstore2a saslauthd[7861]: db_connect  called.
 May 16 11:28:55 mxstore2a saslauthd[7861]: returning 0 .


 Thanks !

 Faris

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Need help with mailbox error.

2008-05-15 Thread Alain Spineux
: PLAIN
 allowapop: no
 sasl_minimum_layer: 0
 sasl_pwcheck_method: saslauthd
 sasl_auto_transition: no
 tls_session_timeout: 1440
 tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH

 Thanks in advance for any help.

 Regards
 Tobias
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 questions, lost emails, reconstruct

2008-05-15 Thread Alain Spineux
On Wed, May 14, 2008 at 11:44 PM, Derrick Seymour [EMAIL PROTECTED] wrote:
 Blake,

 --- Blake Hudson [EMAIL PROTECTED] wrote:



  Original Message  
 Subject: Cyrus questions, lost emails, reconstruct
 From: Derrick Seymour [EMAIL PROTECTED]
 To: info-cyrus@lists.andrew.cmu.edu
 Date: Wednesday, May 14, 2008 10:20:28 AM
  I have been having a few problems as of late.
 
  First, lost emails.  Well they aren't really lost,
 i
  have located them in the imap mail store under the
  users name, kind of hidden i guess you would say.
 not
  sure why that is.
 
  This happens randomly with incoming emails, maybe
 one
  out of a couple thousand.
 
  My fix to this was to reconstruct the user box.
 
 ...
  while this works, it seems to corrupt the inbox,
 only
  the inbox all other folders stay intack.
 
 ...
  sudo -u cyrus /usr/bin/cyrus/bin/reconstruct -i
 
  and of course this fixes the problem of the mail
 box
  does not exist but i always seems to lose some
 emails
  in the process, usually one or two users at random
 
  You can probably see a very bad cycle here.
 
 ...

 Sounds like bad RAM maybe corrupting the cyrus
 databases... Any other
 indication of file corruption or system
 locking/freezing/rebooting
 (things associated with bad memory) ?

 In a PC I'd run memtest86, dunno if that option is
 available to you.

 -Blake
 
 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


 No signs of bad memory, the server operates off a
 fiber channel RAID and there are no warnings or
 failures with that either.  There are a couple of
 utilities i can try to test the memory, but i will not
 have an answer on that until this weekend.

 Why would reconstruct -i work (minus the few
 disappearing emails) and reconstruct -r user/short
 name corrupt the inbox?

What is the -i for ?
The -r was broken until last last 2.3.12 ! You must use
$ reconstruct -r user/shortname/*
to take care of subdirectories and add -f to discover unknown directories.


Can you give more information about your system ? OS, cyrus version ?
How long did it operate without problems ? Did you change anything ? Even
something you thing is unreleated ?


 I have to assume if the inbox
 didn't get corrupted that the missing emails in
 question would be there.  I have tried to copy emails
 from inbox to a folder in side the usernames folder,
 upon a reconstruct -r those emails are now viewable,
 but the main inbox is still corrupt.

Try to reset the cyrus.index file before to reconstruct, because cyreconstruct
could try to reuse it.
something like
# echo  cyrus.index
or just delete it


Regards


 Just a few things I tried if any of this helps.

 Thanks again for you help in advance

 Derrick
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: can sieve file emails to corresponding folder by subaddress?

2008-05-15 Thread Alain Spineux
On Wed, May 14, 2008 at 1:57 PM, Zhang Weiwu [EMAIL PROTECTED] wrote:
 The question is pretty simple:

 I wish sieve to file new emails to sub-folders of Projects folder by
 using sub-address.

 e.g.
 [EMAIL PROTECTED] goes to INBOX.Projects.EECZ
 [EMAIL PROTECTED] goes to INBOX.Projects.GTZ.PADO
 [EMAIL PROTECTED] goes to INBOX.Projects.web.yuliansu

Do you now the plus addressing ?

When cyrus receive an email for [EMAIL PROTECTED],
it will try to deliver it into the folder web.yuliansu in zhangweiwu's INBOX
if the folder exists and anyone has p right on it. cyrus dont need sieve to
do that. Anyway you still have to create the folder and give anyone
the p right.
Be careful if you mix lower and uppercase and the use of . (dot) in
the folder name.

Hope this help



 I have been doing it with the following statements:

 if envelope :detail to web.realss
{ fileinto INBOX.Projects.Web.RealSS;}
  [a dozen similar statements]


 The problem is I maintain a list of a dozen projects, and they update
 and changes. Everytime I had a different project I had to maintain
 sieve. I am looking for is it possible to write only one statement?

 --
 Real Softservice

 Huateng Tower, Unit 1788
 Jia 302 3rd area of Jinsong, Chao Yang

 Tel: +86 (10) 8773 0650 ext 603
 Mobile: 135 9950 2413
 http://www.realss.com

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 questions, lost emails, reconstruct

2008-05-15 Thread Alain Spineux
On Thu, May 15, 2008 at 2:21 AM, Blake Hudson [EMAIL PROTECTED] wrote:


 Sounds like bad RAM maybe corrupting the cyrus
 databases... Any other
 indication of file corruption or system
 locking/freezing/rebooting
 (things associated with bad memory) ?

 In a PC I'd run memtest86, dunno if that option is
 available to you.

 -Blake
 
 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



 No signs of bad memory, the server operates off a
 fiber channel RAID and there are no warnings or
 failures with that either.  There are a couple of
 utilities i can try to test the memory, but i will not
 have an answer on that until this weekend.

 Why would reconstruct -i work (minus the few
 disappearing emails) and reconstruct -r user/short
 name corrupt the inbox?  I have to assume if the inbox
 didn't get corrupted that the missing emails in
 question would be there.  I have tried to copy emails
 from inbox to a folder in side the usernames folder,
 upon a reconstruct -r those emails are now viewable,
 but the main inbox is still corrupt.

 Just a few things I tried if any of this helps.

 Thanks again for you help in advance

 Derrick


 I'm honestly not familiar with the -i option as my 2.3 systems do not seem
 to have that option and I seem to only run reconstruct when restoring
 backups so I don't use it very often on individual mailboxes. The fact that
 files seem to disappear no mater what, and the problem is reproducible,
 seems to indicate there is some larger problem. I haven't heard of this
 being a wide-spread problem I'm going to assume this is something with your
 config or scenario not common to all Cyrus installations.

 One of the tests I've used to burn in new systems and test for file
 corruption is to take a large file (an iso or dd if=/dev/urandom works fine)
 and compute the md5sum. Then copy the file and compute the md5sum on the
 copy. Compare, delete, and repeat via shell script. This could be from one
 drive to another, one partition to another, or just one file to a different
 file.

Nice idea for system that cannot be stopped, but memtest86 available
on all centos, redhat, fedora
installation cd (and probably lot of other distributions) are made for
that and will detect any failure in memory.
Of course memetest86 will ignore any drive failure :-)


 Might try something similar to test your system, and it doesn't even require
 a maintenance window...

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 questions, lost emails, reconstruct

2008-05-15 Thread Alain Spineux
 do i change
 this back to lowercase and or which reconstruct
 command (i know -r is broken) will work.  I don't mind
 the broken construct if i can edit the mailbox.db
 successfully to fix the one issue with the caps.  can
 always do up a script.

use cyradm to change ACL, using sam command


 i've checked other users, all of there info is in
 lowercase

 thanks

 Derrick


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 questions, lost emails, reconstruct

2008-05-15 Thread Alain Spineux
On Thu, May 15, 2008 at 11:41 PM, Derrick Seymour [EMAIL PROTECTED] wrote:
 I am on a mac os x server 10.3.9

 not sure how to find the cyrus version, naive i
 know...

 I dont know anything to os x packaging


 the -i is from one of apples documents on how to
 reconstruct the entire database for cyrus.  the -r
 is
 for a single user, knowing now that it is broken
 makes
 a lot of sense with the problems i am having
 reconstructing.

 -r is for recursive (on usual cyrus install)


 latest system changes was the installation of
 spamassassin with procmail for the relay.  This i
 believe this caused my initial problem with the
 disappearing emails.  Not to concerned about that
 right now, though i will be very happy to receive
 suggestions on that.

 cyrus users use SIEVE instead of procmail.
 Of course sieve is not as flexible as procmail, but a
 lot lot
 faster, more secure, and part of cyrus

 Read this, to be sure your procmail configuration is
 compatible with
  cyrus
 http://www.oreilly.com/catalog/mimap/chapter/ch09.html

 Is your mail store on a networked disk ?


 Main problem is to get reconstruct working, I will
 deal with the disappearing emails later on, need to
 get them back now and be able to get them back
 reliably in the future until i fix the core problem
 with the disappearing emails.

 updated info that i found:

 when i take a look at the mailbox.db for the user
 that
 has a corrupted in box i get this

 myserver2:/var/imap user# sudo -u cyrus
 /usr/bin/cyrus/bin/ctl_mboxlist -d | grep brokenuser
 user.brokenuser   default BROKENUSER
 lrswipcda
 user.brokenuser.INBOX^Drafts  default brokenuser
 lrswipcda
 user.brokenuser.INBOX^Sentdefault brokenuser
 lrswipcda
 user.brokenuser.INBOX^Trash   default brokenuser
 lrswipcda

 as you can see the inbox has the user in all caps,
 makes sense now why they can't get into there inbox,
 i
 believe this is case sensitive, so now how do i
 change
 this back to lowercase and or which reconstruct
 command (i know -r is broken) will work.  I don't
 mind
 the broken construct if i can edit the mailbox.db
 successfully to fix the one issue with the caps.
 can
 always do up a script.

 use cyradm to change ACL, using sam command


 i've checked other users, all of there info is in
 lowercase



 First off let me thank all of you for your help so
 far.

 To answer the above questions:

 My mail store is on a fiber channel RAID
 Procmail looks to be set up properly, i will look into
 this further
 Mac os x 10.3.9 ships with cyrus 2.2.10, or should i
 say was updated to 2.2.10
 Up until the installation of spamassassin and procmail
 there has been no 'reported' problems

 though i don't think the reconstruct problem has
 anything to do with the install, the disappearing
 emails maybe.

 Here is some updates:

 Through long searching I decided to try this, after i
 backed up everythingtwice ;-)

 stopped mail

 sudo -u cyrus /usr/bin/cyrus/bin/ctl_mboxlist -d 
 /mailboxdb.txt

 edited the caps user to lower case with pico

I already used this too, but cyradm allow you to keep your system running.


 sudo -u cyrus /usr/bin/cyrus/bin/ctl_mboxlist -u 
 /mailboxdb.txt

 started mail

 this worked, as far as i can tell, no loss of email
 and the user can log back in with squirrelmail with
 out the error mailbox does not exist

 Logged in with a couple of other users via IMAP and
 POP everything looks good.

 While editing the mailboxdb i found something
 strange.

 as you can see below there is an entry for some users
 in all upper case, there is also complete entries for
 these users also in lower case.

 user.USER1default USER1 lrswipcda
 user.USER2  default USER2lrswipcda

 user.user1 default user1  lrswipcda
 user.user1.INBOX^Draftsdefault user1
 lrswipcda
 user.user1.INBOX^Sent  default user1  lrswipcda
 user.user1.INBOX^Trash default user1  lrswipcda

 user.user2   default user2lrswipcda
 user.user2.INBOX^Drafts  default user2
 lrswipcda
 user.user2.INBOX^Sentdefault user2
 lrswipcda
 user.user2.INBOX^Trash   default user2
 lrswipcda

 The user that had the problem (mailbox does not exist)
 after i did a reconstruct  was one of the users that
 had multiple entries in the mailbox.db.  I am
 wondering if these single entries have any use, can i
 delete them, is this perhaps why when i did the
 reconstruct the user had an all caps entry for the
 inbox and then wasn't able to log in?  Because that
 looks like what the problem was.  I am also wondering
 if i deleted this single entries would the reconstruct
 work?


 Thanks again for all the help

 -derrick


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http

Re: sieve extension squirrelmail not working anymore

2008-05-12 Thread Alain Spineux
On Mon, May 12, 2008 at 11:53 AM, Dick Hoogendijk [EMAIL PROTECTED] wrote:
 Some time ago I filed a bug for the CSWcyrus package. Using it I
 could no longer access my sieve scripts through my squirrelmail. (that
 use to work very well with cyrus-2.3.09 and stopped working w/ 2.3.11


Did you read this post from Ken Murchison on cyrus-devel ?

Subject: [POLL] timsieved STARTTLS implementation

Folks,

I have recently been informed that Cyrus timsieved has had an
incompatible MANAGESIEVE STARTTLS implementation since v2.1.10.  The
problem is that the server is supposed to automatically issue a
CAPABILITY response at the completion of STARTTLS, but this
functionality was removed in v2.1.10 (see bug #1338 for details).

My question is this:  If I fix timsieved to be compliant with the
MANAGESIEVE text (which has always been consistent), will this break
any client implementations?


Now, You know why !

Regards


 Not only squirrelmail has problems; also the thunderbird extension does
 not work right (I read in this list).

 From the maintainer at CSW I got this reply:

 ---
  yann - 2008-05-11 20:47 EDT
 ---
 Ok I've had some time to work on your bug and I was able to reproduce it
 with Thunderbird Sieve extension.

 This problem seems related to TLS. Can you confirm that you only
 reproduce it with TLS enabled in Thunderbird sieve extension or with
 the squirrelmail plugin ?

 Unfortunately, it's not sure the bug is on the cyrus side as I can
 connect without problem with TLS with sieve-connect:
 http://people.spodhuis.org/~pdp/software/
 Can you also try to connect with sieve-connect ?

 Sniffing the traffic and looking at the log, it seems tls is negociated,
 thunderbird authenticate successfully but is blocked before any sieve
 command is sent.

 Did you also try to report the bug to the thunderbird sieve extension
 author ?

 Unfortunately sieve-connect does not compile on my S10 box. So I can't
 check it. I did not sent a report to the thunderbird ext owner eithe,
 because the problems are already known ;-)

 But what strikes me is that it is NOT only thunderbird sieve that
 chokes; squirrelmail chokes too. And that was not the case with older
 versions of cyrus.

 --
 Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
 ++ http://nagual.nl/ + SunOS sxde 01/08 ++
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Migration issues

2008-05-05 Thread Alain Spineux
On Sat, May 3, 2008 at 10:18 PM, DESCOMBES Thierry
[EMAIL PROTECTED] wrote:
 Hello,

  I'm the system administrator of a french research unit (CNRS), and we
  are using cyrus and postfix, on a server, for 2 years now, without
  troubles.

  Now, we have bought a DAS (Direct Attached Storage) attached to a
  dedicated server (with tape backup system...)  and we'd like to use the
  DAS to store mailboxes.

  My idea was to uninstall the IMAP service on our old mailserver, change
  its postfix configuration to SMTP relay mails to the new server
  (attached to the DAS), and install new versions of postfix and cyrus on
  the new server (where the DAS filesystem are mounted locally).

Yes fine, just configure a transport for your domain to your new server.
You can avoid the second postfix configuration by delivering directly your
email trough LMTP by adding something like

  lmtp  cmd=lmtpd -a listen=your.ip.address.here:2003

to your cyrus.conf. If you use -a be careful to secure your lmtpd port
with some iptables
rules.


 Do you
  think this is the best way to do that ? (I have already tested
  unsuccesfully, exporting files (with NFS) or partition (with
  open-iSCSI)... but in case of crash, it seems that data integrity is
  often broken)

  I have tried to configure this setup. On the old server, we are using
  cyrus 2.2.12 (on Linux), and in the new one, I have installed cyrus
  2.3.8 (on Linux). So, I have tried to follow the Upgrading from 2.2.x
  or earlier part of cyrus documentation. I have copied the spool
  directory (rsync of the /var/spool/imap directory), and the db directory
  (a tar of /var/lib/imap after a cyrus shutdown) from the old server to
  the new one, created a metapartition directory, launched
  tools/migrate-metadata script... but now, when I start cyrus , it
  freezes and writes messages in system log files:

imapsync is a nice tool for migration. For now it can sync everything except
annotation and quota. It works like rsync but on top of imap protocol, you dont
need to bother about format conversion.


  kernel: ctl_cyrusdb[26239]: segfault at 2b7e51a60efc rip
  2b5652b30f96 rsp 7fff59062d60 error 4

You missed something. You have to dump bdb data file on your old
system and restore it on your new system to use the correct library
version on each of them.

You can try to guess what wrong by running something like

# su cyrus -c strace ctl_cyrusdb -r

and look in the strace log for the last file opened by ctl_cyrusdb.


  cyrus-master[26233]: process 26239 exited, signaled to death by 11

  What's wrong ? The new server is running a 64 bits linux distribution
  (the old a 32 bits). Should I try with a version of cyrus build for
  32bits architecture ?

32bits are still less problematic yet, up to 2Go of RAM 32bits is
probably the best choice,
up to 4Go you can have little benefit using a 64bit system, above 4Go
You have to consider a 64bit
system.


  Thanks a lot in advance.
  Cheers,

  --

  DESCOMBES Thierry
  Station Biologique de Roscoff
  Service Informatique - FR2424
  Place George Teissier
  BP 74
  29682 Roscoff Cedex

  Tel:  (00 33)2 98 29 23 14
  Port: (00 33)6 63 03 04 74
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: timsieved logon problem

2008-05-01 Thread Alain Spineux
On Thu, May 1, 2008 at 1:22 PM, Dick Hoogendijk [EMAIL PROTECTED] wrote:
 I use SquirrelMail version 1.4.13 an Cyrus-2.3.11 from Blastwave Stable
  on solaris 10. I never experienced problems before, but today I wanted
  to add a filter from within SquirrelMail and got this warning:

  Could not log on to timsieved daemon on your IMAP server yanta:2000.
  Please contact your administrator.

  What does this :2000 mean?
  What could have happened/changed?
  Many thanks for tips.

Are you sure timsieved is running ?

# netstat -anp | grep 2000
tcp0  0 127.0.0.1:2000  0.0.0.0:*
 LISTEN  12912/cyrmaster

ATTN: netstat can use different parameters on solaris !

Cant you show us you cyrus.conf ?



  --
  Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
  ++ http://nagual.nl/ + SunOS sxde 01/08 ++
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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


Fwd: timsieved logon problem

2008-05-01 Thread Alain Spineux
ops


-- Forwarded message --
From: Alain Spineux [EMAIL PROTECTED]
Date: Thu, May 1, 2008 at 4:48 PM
Subject: Re: timsieved logon problem
To: Dick Hoogendijk [EMAIL PROTECTED]


On Thu, May 1, 2008 at 4:29 PM, Dick Hoogendijk [EMAIL PROTECTED] wrote:
  On Thu, 1 May 2008 13:47:03 +0200
   Alain Spineux [EMAIL PROTECTED] wrote:
 
On Thu, May 1, 2008 at 1:22 PM, Dick Hoogendijk [EMAIL PROTECTED]
wrote:
 
 Could not log on to timsieved daemon on your IMAP server
 yanta:2000. Please contact your administrator.
 
   Are you sure timsieved is running ?
   
# netstat -anp | grep 2000
tcp0  0 127.0.0.1:2000  0.0.0.0:*
 LISTEN  12912/cyrmaster
 
   Cyr-master does not show up. So I guess it's not running.

 Here is your problem!


 
 
Cant you show us you cyrus.conf ?
 
   [cyrus.conf]
 
   START {
recover   cmd=/opt/csw/sbin/ctl_cyrusdb -r
# this is only necessary if using idled for IMAP IDLE
   #  idledcmd=idled
   }
 
   # UNIX sockets start with a slash and are put into /var/imap/sockets
   SERVICES {
# add or remove based on preferences
imap  cmd=imapd listen=imap prefork=5
   #  imapscmd=imapd -s listen=imaps prefork=1
pop3  cmd=pop3d listen=pop3 prefork=3
   #  pop3scmd=pop3d -s listen=pop3s prefork=1
sieve cmd=timsieved listen=sieve prefork=0

 You should see some error in your log file when trying to connect to
 the sieve daemon
 or when restarting cyrus !
 Look at it.

 Regards


 
# these are only necessary if receiving/exporting usenet via NNTP
   #  nntp cmd=nntpd listen=nntp prefork=3
   #  nntpscmd=nntpd -s listen=nntps prefork=1
 
# at least one LMTP is required for delivery
   #  lmtp cmd=lmtpd listen=lmtp prefork=0
lmtpunix  cmd=lmtpd
listen=/opt/csw/var/cyrus/config/socket/lmtp prefork=1
 
# this is only necessary if using notifications
   #  notify   cmd=notifyd
listen=/opt/csw/var/cyrus/config/socket/notify proto=udp prefork=1
   }
 
   EVENTS {
# this is required
checkpointcmd=/opt/csw/sbin/ctl_cyrusdb -c period=30
 
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune  cmd=/opt/csw/sbin/cyr_expire -E 3 at=0400
 
# this is only necessary if caching TLS sessions
tlsprune  cmd=/opt/csw/sbin/tls_prune at=0400
   }
   [/cyrus.conf]
 
   Nothing changed in this file recently.
   Hope to get some help. It used to work quite nicely.
 
   --
 
 
  Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
   ++ http://nagual.nl/ + SunOS sxde 01/08 ++
 



 --

Alain Spineux
 aspineux gmail com


May the sources be with you



-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: quota bug involving nested quota roots?

2008-05-01 Thread Alain Spineux
On Thu, May 1, 2008 at 2:22 PM, Nik Conwell [EMAIL PROTECTED] wrote:

  I'm running 2.3.8 (Invoca) and see strange quota behavior.  I checked the
  changelog for 2.3.12p1 and no mention of quota fixes (32-bit).  
 Unfortunately I
  don't have a 2.3.12p1 system to check this out.  Do people see similar 
 things on
  the current version?  Am I doing something wrong having nested quotas this 
 way?


  My mailbox has quota and usage:

  quota -f |grep -E user/nik|Quota

 Quota   % Used Used Root
   10485760   15  1640288 user/nik


  If I set a quota on user/nik/restore (empty mailbox) and do quota -f, my
  recorded usage changes:

  sq user/nik/restore 1

  quota -f|grep -E user/nik|Quota

 Quota   % Used Used Root
   10485760   13  1442491 user/nik
 100 user/nik/restore


  I did finds on the filesystem and added up file sizes:


  full=`find /cyrus/master07/spool/n/user/nik -type f -ls|grep -v 
 cyrus\.|awk '{print $7}'|add`;echo full=$full

  restore=`find /cyrus/master07/spool/n/user/nik/restore -type f -ls|grep -v 
 cyrus\.|awk '{print $7}'|add`;echo restore=$restore


  full=1679655197
  restore=0


  The full / 1024 matches the original 1640288 used so the problem seems to be
  quota -f not correctly traversing when there is another lower quota root.

traversing ? Hum. Is it possible that cyrus stop counting as soon as
it find another quota root ?
What appends if you call your restore folder,  or z.

Is it possible you have some hardlink in your mailbox, created by the
imap option
singleinstancestore ? An some times hardlinks could be counted only
once like with
the du -l.


  If I remove the user/nik/restore quota and do quota -f, the value matches the
  original again:

  sq user/nik/restore remove 1

  quota -f|grep -E user/nik|Quota
 Quota   % Used Used Root
   10485760   15  1640288 user/nik


  -nik
  Nik Conwell
  Office of Information Technology
  [EMAIL PROTECTED]

  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Account re-initialization after directory deletion

2008-04-28 Thread Alain Spineux
On Sun, Apr 27, 2008 at 8:34 PM, Thomas Manson
[EMAIL PROTECTED] wrote:
 Hi,

   I've an issue with my account.

   the directory of the account in /var/spool/imap/t/user was deleted.

   When I try to gets its mail, I get : Unable to open maildrop : System I/O
 error
 (Apr 27 20:33:06 dell1 pop3[29552]: Unable to open maildrop for thomas:
 System I/O error)


cyrreconstruct is the tool that synchronize the file system tree
and the mailboxes list.
Their was a long thread about reconstruct use some week ago in this list.

Regards

   A restart of cyrus do not correct the issue.

   How can I re init the account ?

 Regards,
 Thomas.
 
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 infrastructure performance less than expected

2008-04-28 Thread Alain Spineux
On Mon, Apr 28, 2008 at 11:31 PM, Eric Déchaux [EMAIL PROTECTED] wrote:
 Dear all,


  I have juste setup a Cyrus infrastructure based on VMware Virtual
  Infrastructure 3.0.1 and I have a huge performance problem.

  The new infrastructure was sized for 120 000 mailboxes with 42 000
  maximum concurrent IMAPS sessions (neither POP3 nor IMAP available). The
  important point is the concurrent sessions count rise from 6 000 to 42
  000 in less than an hour, at the beginning of the day when everybody
  starts to work.


  The hardware is made of two Sun Microsystems X4600 chassis with 8 dual
  core AMD Opteron 885, 64 Gb RAM, 2 dual port 4G QLogic HBA and 4 Intel
  e1000 NIC (2 being used for ESX System Console and VMotion). LAN backend
  is 100% Giga Ethernet, SAN backend is 100% 4 Gb FC.


  The Virtual machines are running Debian Etch 4.0r3 AMD64 and Cyrus 2.2
  and are configured as follow :

  On each physical server :

 - 4 frontends : 2 vCPU, 8 Gb RAM, 8 Gb SWAP / Total 8 vCPU, 32 Gb RAM
 - 3 backends : 4 vCPU, 8 Gb RAM, 8 Gb SWAP, ~500 Gb reizerfs storage
  through a 550 Gb VMFS LUN / Total 12 vCPU, 24 Gb RAM, 1.5 Tb storage
 - 1 webmail : 2 vCPU, 2 Gb RAM, 2 Gb SWAP
 - 1 smtp : 2 vCPU, 2 Gb RAM, 2 Gb SWAP
 - 1 mupdate : 2 vCPU, 2 Gb RAM, 2 Gb SWAP

  Total : 26 vCPU, 62 Gb RAM.


  This infrastructure is the consolidation of an existing one that runs
  Debian Sarge 3.0 i386 with 8 frontends and 5 backends. Each server is a
  dual Intel Xeon 3.0 Ghz with 4 Gb RAM and 4Gb SWAP.


  The older infrastructure can stand the 42 000 concurrent sessions, the
  new one can't : I was expecting each frontend to be able to handle 5 500
  concurrent sessions but they are not. Around 3 000 / 3 500 concurrent
  sessions the frontends begin to SWAP and are not more able keep up the load.

At least you know your problem :-) SWAP should be easier to solve than
IO or CPU problem.
I suppose your old frontends where never (or rarely) swapping ! You
have replaced 2 old frontents
with 4Gb by 1 bigger with 8Gb ! Something in the new configuration
make the new frontent
swap!
Do you use 64bits software, 64bits OS ?
Are you sure all the 8Gb are available to your applications or are in use ?

Can you give a list of all configuration and software changes between
old and new configuration ?

Regards.



  I don't have any system log that complains about something and the only
  Cyrus message I got is a DB4 warning about lockers. I think the DB4 in
  question is the TLS sessions cache DB and in my case the number of
  lockers can be as high as 8 000...



  Does somebody have any clue of what I could tune / tweak / configure
  either on Linux or Cyrus side to make the solution work better ?
  Is my initial sizing wrong and only solution is to add hardware ?


  Many thanks.
  --
  Eric
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Hello cyrus users

2008-04-24 Thread Alain Spineux
On Thu, Apr 24, 2008 at 9:06 AM, Simon Matter [EMAIL PROTECTED] wrote:
  I am not sure how happy I am too find out about cyrus.
  
   I just spent a lot of time getting everythig working on my first
   server...and even sendmail was not too hard (centos 5 sets it up rather
   well)...
  
   Then I see I needed a pop3 doo hickey..
  
   Holy moly.
  
   Looking for cyrus on machine was interesting as almost all of the files
   would not come up with a 'locate' command. And still do not. I am manually
   going through all the doc folders and etc and sys folders since locate
   cannot find them (and they are there)

  maybe
  rpm -ql cyrus-imapd


  
   There is only one book on amazon about cyrus and it is not in print
   yetone. And it has nothing to do with sendmail. Redhat has little info
   on it although it calls it the 'default' pop3 for the enterprise 5.1
   (centos
   in my case)
  
   All I am looking to do is have sendmail put the mail into users mailboxes
   (users who will be from virtual hosts like [EMAIL PROTECTED] and
   [EMAIL PROTECTED]) and just allow me to grab the emails with good old
   outlookand of course send the mails (but that is sendmail I believe.)
  
   Are there any good tutorials just for that, cause by god the program does
   everything under the sun and is rather confusing at first glance...

  How many users do you have, how do you want to authenticate them? Things
  are quite different if you have 10 or 1 users on a server. Cyrus can
  do alot which is why it has quite some features you may have to configure.
  I can't help with sendmail, I didn't touch it in the last 8 years but
  found postfix much easier for me.

postfix is a very good alternative to sendmail, I dont know why
redhat/fedora still
provide sendmail as the default !

Use google, for example search for : postfix cyrus imap howto
You will find link like below, read some of them to have a whider advice.

http://nakedape.cc/info/Cyrus-IMAP-HOWTO/quickstart-fedora.html

an hint: prefer LMTP  to cyrdeliver.

Regards




  Simon



  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Piecemeal migration

2008-04-18 Thread Alain Spineux
On Mon, Apr 14, 2008 at 5:42 PM, Shelley Waltz [EMAIL PROTECTED] wrote:
 I wish to migrate imap accounts from my current cyrus-imapd-2.2.3-4 on RHEl3
  to cyrus-imapd-2.3.7 on RHEL5.  I have the new server installed and the db
  formats will ramin the same on both servers except for deliver.db and
  tls_sessions.db which will change from berkeley to skiplist.  My
  understanding is that I can simply start with fresh db on the new server
  and do not need to migrate these(copy and convert).


Right

  I will be migrating about 250 accounts of 1GB or less.  I need to do these in
  5-10 at a time to minimize complications and downtime.  Last time I did
  this, it worked out well, migrating from 1.6 to 2.2 even though I did need
  to convert dbs.  I will set up alias forwarding for the migrated accounts
  and once all migrated, change TTL on DNS and modify records to move
  completely to new server.

  I know I need to copy from olde server to new server,
  (1) /var/lib/imap/user/a-z/username.sub,seen
  (2) /var/lib/quota/a-z/user.username
  (3) /var/lib/imap/sieve/a-z/username/
  and
  (4)/var/spool/imap/a-z/user/username/

  Additionally, and this was the sticky part the last time, is the
  mailboxes.db which contains the INBOX/folder structure.  Last time, I
  migrated my LDAP database(for authentication) and the entire
  mailboxes.db(dumped to flatfile and then recreated on the new server)
  before beginning to migrate the accounts in batches.  The issue arose,
  however, of this being out of sync with some mailboxes in time as users
  changed their folders.  S, my question is, is there a way to update or
  add new mailboxes individually using the flatfile information I can
  extract from the old server?  Can one easily do this without stopping the
  server?

Do you know imapsync ?
It can synchronize two imap mailbox, including SEENand ACL (but not
quota or sieve script)
You can sync all mailboxes at once using the cyrus manager account: 'cyrus'
Here is a script I used for testing, I use ssh port fowarding to bypass IMAPS
not very well supported by current imapsync

# /bin/bash
S_HOST=localhost
T_HOST=fc8asx

S_USER=cyrus
T_USER=cyrus

S_PASSWD=**
T_PASSWD=**

DOMAIN=mydomain.loc

ssh -f -L 8143:127.0.0.1:143 $T_HOST sleep 60
/kolab/bin/perl -I/kolab/lib/emailgency/perl /usr/bin/imapsync \
--host1 $S_HOST --user1 $S_USER --authuser1 $S_USER
--password1 $S_PASSWD \
--host2 127.0.0.1 --port2 8143 --user2 $T_USER
--authuser2 $T_USER --password2 $T_PASSWD \
--include ^user/[EMAIL PROTECTED] \
--syncacls \

/kolab/lib/emailgency/perl  contains perl-Mail-IMAPClient-2.2.9
because imapsync like it

Hope this help regards


  Any suggestions are greatly appreciated!
  S.Waltz
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: can not run cyradm from remote server .. realm gets appended to username

2008-04-07 Thread Alain Spineux
On Thu, Apr 3, 2008 at 11:33 PM, ram [EMAIL PROTECTED] wrote:
 On my cryus imap server , when I try login  from my localserver cyrus
  login works

You used localhost ? Only localhost is working then.
Try using the IP address you used from your remote server, it should fail too.



  But when I login from a remote server realm gets added autmatically ,
  causing login to fail

man imad.conf, look for virtdomains option, it use the ip address of
your interface to guess a
realm. The key is arround options virtualdomains, defaultdomains and
loginrealms,
but it depend of what you want ! Dou you have multiple domains ?



  In my sasl logs I can see for a local connection
  -
  saslauthd[21947] :do_auth : auth success: [user=cyrus]
  [service=imap] [realm=] [mech=pam]
  saslauthd[21947] :do_request  : response: OK
  --





  For a remote connection
  -
  saslauthd[24011] :do_auth : auth failure:
  [EMAIL PROTECTED] [service=imap] [realm=netcore.co.in]
  [mech=pam] [reason=PAM auth error]
  --


  What can be seen simply is that the realm netcore.co.in is getting added
  automatically. How can I avoid this

  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: patch to force cyrus to reload its configuration in a more rigorous way

2008-04-06 Thread Alain Spineux
I opened a new bug on bugzilla.

https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2987

Alain

On 4/2/08, Alain Spineux [EMAIL PROTECTED] wrote:
 On Wed, Apr 2, 2008 at 10:30 AM, Simon Matter [EMAIL PROTECTED] wrote:
Before this patch, cyrus was already able to detect a configuration
 file change,
 but only at the end of a connection. And any process waiting for a
 new connection was ignoring the change during the next connection,
 until they have finished.
 In other word, after a configuration change, any waiting process can
 still serve a new
 connection with the old configuration and let the administrator
 believe its change is not
 working.

 My patch force cyrmaster to send a SIGHUP to all its children when it
 detect a configuration change:
 - any working process will ignore the SIGHUP when processing a
 connection (what my patch does)
 and at the end of the connection, it will detect the configuration
 change and terminate
 (this is what is doing the original code).
 - any waiting process, will catch the SIGHUP and handle it like SIGALARM
 (what my patch does) and make the process believe its waiting period
 (-T option of imapd command) is expired and then terminate. (like was
 doing the original code)
  
Hi Alain,
  
Thanks for the patch, I'll try it out and may include it in my rpms later.
If I understand this correctly one drawback could be that on a heavy
loaded server sending SIGHUP will resuilt in much more newly created
processes after the SIGHUP has been sent. Could that be a problem somehow?


 The only difference, is that without the patch,
  any waiting process can still serve one connection before to terminate
  and this during the timeout
  period of 60sec (the cyrus default)
  Then, it should not impact the load, this should not be measurable.

  Some more details, because your question was a little unclear :

  - After having made change, you have to SIGHUP cyrmaster only, like
  before! Not all imapd, pop3, ... processes.
  - When an inactive imapd nor pop3d, ... process get the SIGHUP, it
  will terminate immediately. Their
  is no reasons to terminate an active process. Active process, will
  detect the configuartion change by temself
  at the end of the connection and terminate.
  - cyrmaster will start a new process when new connections arrive or to
  match prefork in cyrus.conf.

  Regards



  
Simon
  
  
  

 Here is the patch and also in attachment.

 Regards

 --- cyrus-imapd-2.3.11/imap/signals.c.orig  2006-11-30
 18:11:20.0 +0100
 +++ cyrus-imapd-2.3.11/imap/signals.c   2008-03-23 17:24:54.0
 +0100
 @@ -79,6 +79,12 @@
 fatal(unable to install signal handler for %d: %m, SIGALRM);
  }

 +/* ASX: SIGHUP is used to force a configuration reload, and the
 waiting
 + * period is a privileged moment, so we don't set SA_RESTART */
 +if (alarm  sigaction(SIGHUP, action, NULL)  0) {
 +   fatal(unable to install signal handler for %d: %m, SIGHUP);
 +}
 +
  #ifdef SA_RESTART
  action.sa_flags |= SA_RESTART;
  #endif
 --- cyrus-imapd-2.3.11/master/master.c.orig 2007-10-10
 15:59:48.0 +0200
 +++ cyrus-imapd-2.3.11/master/master.c  2008-03-23 17:29:33.0
 +0100
 @@ -1568,6 +1568,23 @@
 syslog(LOG_DEBUG, init: service %s socket %d pipe %d 
 %d,
Services[i].name, Services[i].socket,
Services[i].stat[0], Services[i].stat[1]);
 +} else if (Services[i].exec  Services[i].socket) {
 +/* refresh the old one */
 +syslog(LOG_DEBUG, ASX SOMETHING TO DO service %s socket
 %d pipe %d %d %d,
 +  Services[i].name, Services[i].socket,
 +  Services[i].stat[0], Services[i].stat[1],
 +   Services[i].exec ? 1:0);
 +/* send SIGHUP to all children */
 +for (j = 0 ; j  child_table_size ; j++ ) {
 +c = ctable[j];
 +while (c != NULL) {
 +if ((c-si == i)  (c-service_state !=
 SERVICE_STATE_DEAD)) {
 +syslog(LOG_DEBUG, ASX send SIGHUP to %d,
 c-pid);
 +kill(c-pid, SIGHUP);
 +}
 +c = c-next;
 +}
 +}
 }
  }

 --- cyrus-imapd-2.3.11/master/service.c.orig2007-09-27
 22:10:39.0 +0200
 +++ cyrus-imapd-2.3.11/master/service.c 2008-03-23 17:32:46.0
 +0100
 @@ -460,7 +460,12 @@
 notify_master(STATUS_FD,
 MASTER_SERVICE_UNAVAILABLE);
 service_abort(EX_OSERR

Re: patch to force cyrus to reload its configuration in a more rigorous way

2008-04-02 Thread Alain Spineux
 sockaddr_storage from;
  
  
   --
   Alain Spineux
   aspineux gmail com
   May the sources be with you
   
   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






-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: reconstruct doing nothing

2008-04-01 Thread Alain Spineux
On Tue, Apr 1, 2008 at 3:42 AM, Jo Rhett [EMAIL PROTECTED] wrote:
  *sigh*  No, not in a virtual domain environment they don't.  Try
   adding
  
   13a. Run su cyrus -c '/usr/local/cyrus/bin/reconstruct -x -f
   user.username/*'.
   13b. Run su cyrus -c '/usr/local/cyrus/bin/reconstruct -x -f
   user.username/*/*'.
   13c. Run su cyrus -c '/usr/local/cyrus/bin/reconstruct -x -f
   user.username/*/*/*'.
   13d. Run su cyrus -c '/usr/local/cyrus/bin/reconstruct -x -f
   user.username/*/*/*/*'.
   ...etc whatever depth of folders people have.
  
   Maybe I'm rehashing the earlier discussion...  Does reconstruct -x
   -f [EMAIL PROTECTED] fail to detect new mailboxes?

Yes and No :-)

No because it will detect all new subfolder of
user/[EMAIL PROTECTED] and their own
new subfolder.
Yes because if user/username/[EMAIL PROTECTED] already exist,
all new subfolders beside will be ignored.


  Yes, see the bugs often reported on this list and in the bugzilla for
  imapd.


   Also, why the multiple * parameters (user.username/*/*/*)?  I
   thought % matched up to a folder separator boundary (. or / in
   Cyrus) and * matched everything including a folder separator.

  That didn't work for me.  I had to use the commands I listed above.

This is maybe why  the use of user/username/*/*/*  help to detect
deepest subfolders.

Regards



  --
  Jo Rhett
  Net Consonance : consonant endings by net philanthropy, open source
  and other randomness


  


 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 forwarding loop destroys e-mail

2008-03-31 Thread Alain Spineux
On Mon, Mar 31, 2008 at 5:12 AM, Gary Mills [EMAIL PROTECTED] wrote:
 On Sun, Mar 30, 2008 at 02:27:29PM +0100, Alain Spineux wrote:
   On Mon, Mar 17, 2008 at 5:39 PM, Gary Mills [EMAIL PROTECTED] wrote:
Once again, we had somebody use the sieve facility to redirect e-mail
 back to the same mailbox and then go on vacation.  This sets up a
 forwarding loop which cyrus breaks by discarding the e-mail.  During
 this vacation, all of the person's e-mail disappeared.
  
   If you force a keep in your sieve script, the mail will be delivered
   at least once in
   the mailbox

  It's perfectly valid to have nothing but a `forward' in a sieve
  script.  People do this all the time when they don't want to keep
  a copy for themselves.  Unfortunately, some also forward e-mail to
  themselves, expecting that to work.

sieve script is only a language.
The language nor its interpreter nor its compiler dont need to be smart, because
the script writer is supposed to be smart enough.

If the user in unable to write such script, it must use a sieve
script manager, (application
written by a smarter developer) that will help him generating well
suited script.

redirect is a sieve command that forward an email to another address.
redirect_and_keep is not a valid sieve command, but you can write
such an extension.

Regards.



 Once the message has been `seen' and is about to be forwarded again,
 it would be better to deliver the message into the mailbox, rather
 than deleting it.  Is this possible with the current design of the
 duplicate delivery database?
  
   How can a message be 'seen' if it is not in the mailbox, and how can
   the mailbox owner read this message if he is in vacation ?
   Or you mean 'seen', already in the delivered db ? But then this
   is the job of the delivered db to drop the email to avoid loop.

  I suppose I mean `delivered'.  Yes, it will be discarded the next time
  it's delivered.  That's the problem.  There needs to be some
  connection between delivery and the forwarding process.  Of course,
  it's impossible to distinguish between a forwarding loop and a real
  duplicate unless another `Received' header is added to the message
  header.

  --


 -Gary Mills--Unix Support--U of M Academic Computing and Networking-




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: IMAPS problem

2008-03-31 Thread Alain Spineux
On Mon, Mar 31, 2008 at 10:30 AM, Bernhard D Rohrer [EMAIL PROTECTED] wrote:

  Patrick Boutilier wrote:

  and I am getting this error:

 Mar 31 01:33:41 collab cyrus/imaps[12733]: unable to get certificate
 from '/usr/lib/ssl/imap.pem'
 Mar 31 01:33:41 collab cyrus/imaps[12733]: TLS server engine: cannot
 load cert/key data, may be a cert/key mismatch?
 Mar 31 01:33:41 collab cyrus/imaps[12733]: error initializing TLS
 Mar 31 01:33:41 collab cyrus/imaps[12733]: Fatal error: tls_init() failed
 Mar 31 01:33:41 collab cyrus/imaps[12733]: DBERROR: error exiting
 application: Invalid argument

 help??


 unable to get certificate from '/usr/lib/ssl/imap.pem'

 Look in /etc/imapd.conf and make sure you don't have tls_cert_file
 defined twice.




  no joy with your or Alain's suggestions :(

Are you sure /etc/imapd.conf is the configuration file in use ?
can you use -C in cyrus.conf to be sure ?

FYI here is my log when certificate file are missing:

When both are missing :
Mar 31 14:25:04 eg01.emailgency.loc notice imaps[20187]: TLS server
engine: cannot load CA data
Mar 31 14:25:04 eg01.emailgency.loc error imaps[20187]: unable to
get certificate from '/kolab/etc/kolab/cert.pem'
Mar 31 14:25:04 eg01.emailgency.loc error imaps[20187]: TLS server
engine: cannot load cert/key data
Mar 31 14:25:04 eg01.emailgency.loc error imaps[20187]: error initializing TLS
Mar 31 14:25:04 eg01.emailgency.loc error imaps[20187]: Fatal error:
tls_init() failed
Mar 31 14:25:04 eg01.emailgency.loc warning imaps[20187]: DBERROR
db4: Database handles still open at environment close
Mar 31 14:25:04 eg01.emailgency.loc warning imaps[20187]: DBERROR
db4: Open database handle: /kolab/var/imapd/tls_sessions.db
Mar 31 14:25:04 eg01.emailgency.loc error imaps[20187]: DBERROR:
error exiting application: Invalid argument

When only the key is missing

Mar 31 14:30:04 eg01.emailgency.loc notice imaps[20778]: TLS server
engine: cannot load CA data
Mar 31 14:30:04 eg01.emailgency.loc error imaps[20778]: unable to
get private key from '/kolab/etc/kolab/key.pem'
Mar 31 14:30:04 eg01.emailgency.loc error imaps[20778]: TLS server
engine: cannot load cert/key data
Mar 31 14:30:04 eg01.emailgency.loc error imaps[20778]: error initializing TLS
Mar 31 14:30:04 eg01.emailgency.loc error imaps[20778]: Fatal error:
tls_init() failed
Mar 31 14:30:04 eg01.emailgency.loc warning imaps[20778]: DBERROR
db4: Database handles still open at environment close
Mar 31 14:30:04 eg01.emailgency.loc warning imaps[20778]: DBERROR
db4: Open database handle: /kolab/var/imapd/tls_sessions.db
Mar 31 14:30:04 eg01.emailgency.loc error imaps[20778]: DBERROR:
error exiting application: Invalid argument


regards.




  thanks

  Bernhard

  --
 Graylion's Fetish  Fashion Store
 Goth and Kinky Boots, Clothing and Jewellery
 http://www.graylion.net


 
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 forwarding loop destroys e-mail

2008-03-31 Thread Alain Spineux
On Mon, Mar 31, 2008 at 2:40 PM, Joseph Brennan [EMAIL PROTECTED] wrote:

  Jo Rhett [EMAIL PROTECTED] wrote:

I would ask that you spend some time determining how the
   program could determine it is a bad rule, and provide a patch to fix this
   behavior.  (in short -- it's harder than you think)

  A mail delivery system that loses mail is buggy.  I don't need to look
  at the code to know that.

  You can tell me no one has time to fix it, and in an open source project
  I can respect that.  But it is a bug.

Look at this:

If my script is

redirect [EMAIL PROTECTED]

I expect my mailbox to stay empty, because this is what redirect is
supposed to do!
If I found and email in my mailbox this is a BUG, because the script I wrote
should never let an email come in!

What you want is a smart_redirect command ! Write a new RFC to
extend SIEVE, then
write a patch for cyrus.





 or back to sender (grounds: not deliverable as configured).
  
   Only if you want to become a source for backscatter.

  Losing mail is much worse than backscatter.  With bounces limited to
  people who get a forward loop going, bounces are not a big issue.




  Gary Mills [EMAIL PROTECTED] wrote:


   Of course,
   it's impossible to distinguish between a forwarding loop and a real
   duplicate unless another `Received' header is added to the message
   header.

  Hm.  What if duplicate suppression is turned off?  Infinite loop?

  Hop count is the classic MTA method of detection, but here the very
  first time around the loop will hit dup suppression.  This calls for
  something else that lets the system know the message already passed
  through a local sieve script.




  Joseph Brennan
  Columbia University Information Technology


  


 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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 forwarding loop destroys e-mail

2008-03-30 Thread Alain Spineux
On Mon, Mar 17, 2008 at 5:39 PM, Gary Mills [EMAIL PROTECTED] wrote:
 Once again, we had somebody use the sieve facility to redirect e-mail
  back to the same mailbox and then go on vacation.  This sets up a
  forwarding loop which cyrus breaks by discarding the e-mail.  During
  this vacation, all of the person's e-mail disappeared.

If you force a keep in your sieve script, the mail will be delivered
at least once in
the mailbox

  Shouldn't we have a better solution to this problem?  Some people
  expect that forwarding e-mail to yourself should work; nobody expects
  the messages to vanish without a trace.

You must enforce this at sieve script creation, because sieve and even cyrus
dont know about yourself. They dont know if the forwarding address is
not an alias or even an external address with a forwarding to the cyrus mailbox.


  Once the message has been `seen' and is about to be forwarded again,
  it would be better to deliver the message into the mailbox, rather
  than deleting it.  Is this possible with the current design of the
  duplicate delivery database?

How can a message be 'seen' if it is not in the mailbox, and how can
the mailbox owner read this message if he is in vacation ?
Or you mean 'seen', already in the delivered db ? But then this
is the job of the delivered db to drop the email to avoid loop.

enforce a keep in the sieve script is a good solution.

Reagrds


  --
  -Gary Mills--Unix Support--U of M Academic Computing and Networking-
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: IMAPS problem

2008-03-30 Thread Alain Spineux
On Mon, Mar 31, 2008 at 2:37 AM, Bernhard D Rohrer [EMAIL PROTECTED] wrote:
 Hi all

  I have created my TLS cert according to these instructions:

  openssl req -new -nodes -out req.pem -keyout key.pem
  openssl rsa -in key.pem -out new.key.pem
  openssl x509 -in req.pem -out ca-cert -req \
  -signkey new.key.pem -days 999

  mkdir /var/imap

  cp new.key.pem /var/imap/server.pem
  rm new.key.pem
  cat ca-cert  /var/imap/server.pem

  chown cyrus:mail /var/imap/server.pem
  chmod 600 /var/imap/server.pem # Your key should be protected

  echo tls_ca_file: /var/imap/server.pem  /etc/imapd.conf
  echo tls_cert_file: /var/imap/server.pem  /etc/imapd.conf
  echo tls_key_file: /var/imap/server.pem  /etc/imapd.conf

  [EMAIL PROTECTED]:/usr/lib/ssl# ls -al im*
  -rw--- 1 cyrus mail 5219 2008-03-31 00:12 imap.pem

  and I am getting this error:

  Mar 31 01:33:41 collab cyrus/imaps[12733]: unable to get certificate
  from '/usr/lib/ssl/imap.pem'
  Mar 31 01:33:41 collab cyrus/imaps[12733]: TLS server engine: cannot
  load cert/key data, may be a cert/key mismatch?
  Mar 31 01:33:41 collab cyrus/imaps[12733]: error initializing TLS
  Mar 31 01:33:41 collab cyrus/imaps[12733]: Fatal error: tls_init() failed
  Mar 31 01:33:41 collab cyrus/imaps[12733]: DBERROR: error exiting
  application: Invalid argument

Maybe a problem with your tls_session.db file,
delete it and let cyrus create a new one. This is probably not the solution but
so easy to try.


  help??

  thanks

  Bernhard

  --
  Graylion's Fetish  Fashion Store
  Goth and Kinky Boots, Clothing and Jewellery
  http://www.graylion.net

  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: rebuilt cyrus server weirdness

2008-03-29 Thread Alain Spineux
On Sat, Mar 29, 2008 at 4:29 AM, Bernhard Rohrer
[EMAIL PROTECTED] wrote:
 On 29/03/2008, Alain Spineux [EMAIL PROTECTED] wrote:
  --snip--

 
   Maybe a problem with the cache in your thunderbird.
Create a new thunderbird account and if this solved your
problem drop the old one.
  --snip--
--

   Alain Spineux
aspineux gmail com
May the sources be with you
  
  Bummer. Should have mentioned that i tried that, shouldn't I? Sorry.
  Yes that was the first thing I tried. Even purged T-Bird and did a new
  install. Same effect.

Maybe the file 3056 is corrupted.
Can you try to open it with a text editor, look if it an email and
remove it (and all similar files).
Then use cyrreconstruct to rebuild this mailbox


  cheers



  Bernhard
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: error when applying UoA patches to cyrus-imapd 2.3.11

2008-03-29 Thread Alain Spineux
On Sat, Mar 29, 2008 at 4:14 AM, David Newman [EMAIL PROTECTED] wrote:
 Greetings. I'm building a 2.3.11 server from ports on FreeBSD 7.0/i386.
  I'm also using these two University of Athens patches:

  
 http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.11/cyrus-imapd-2.3.11-autocreate-0.10-0.diff

  
 http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.11/cyrus-imapd-2.3.11-autosieve-0.6.0.diff

  The following steps produced the error output pasted below. Thanks in
  advance for any help in understanding what's wrong.

  cd /usr/ports/mail/cyrus-imapd23/
  make patch
  cd work/cyrus-imapd-2.3.11/
  patch -p1  ~/cyrus-imapd-2.3.11-autocreate-0.10-0.diff
  patch -p1  ~/cyrus-imapd-2.3.11-autosieve-0.6.0.diff
  cd ../..
  make

  snip

  cc -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib
  -rpath=/usr/lib:/usr/local/lib -o imapd  ../master/service.o pushstats.o
  imapd.o proxy.o imap_proxy.o index.o version.o mutex_fake.o  libimap.a
  ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/local/lib
  -R/usr/local/lib -lsasl2  -lgssapi -lkrb5 -lasn1 -lroken -lcrypt
  -lcom_err  -lfl   -L/usr/local/lib  -R/usr/local/lib -ldb41 -lssl
  -lcrypto -lmd ../com_err/et/libcom_err.a -lwrap
  libimap.a(autosieve.o)(.text+0x598): In function `autoadd_sieve':



  : undefined reference to `sieve_interp_alloc'
  libimap.a(autosieve.o)(.text+0x77f): In function `autoadd_sieve':
  : undefined reference to `sieve_register_redirect'
  libimap.a(autosieve.o)(.text+0x80a): In function `autoadd_sieve':
  : undefined reference to `sieve_register_discard'
  libimap.a(autosieve.o)(.text+0x98a): In function `autoadd_sieve':
  : undefined reference to `sieve_register_reject'
  libimap.a(autosieve.o)(.text+0x9be): In function `autoadd_sieve':
  : undefined reference to `sieve_register_fileinto'
  libimap.a(autosieve.o)(.text+0xb14): In function `autoadd_sieve':
  : undefined reference to `sieve_register_keep'
  libimap.a(autosieve.o)(.text+0xb6b): In function `autoadd_sieve':
  : undefined reference to `sieve_register_imapflags'
  libimap.a(autosieve.o)(.text+0xc58): In function `autoadd_sieve':
  : undefined reference to `sieve_register_size'
  libimap.a(autosieve.o)(.text+0xcc5): In function `autoadd_sieve':
  : undefined reference to `sieve_register_header'
  libimap.a(autosieve.o)(.text+0xe58): In function `autoadd_sieve':
  : undefined reference to `sieve_register_envelope'
  libimap.a(autosieve.o)(.text+0xf83): In function `autoadd_sieve':
  : undefined reference to `sieve_register_vacation'
  libimap.a(autosieve.o)(.text+0xfef): In function `autoadd_sieve':
  : undefined reference to `sieve_register_notify'
  libimap.a(autosieve.o)(.text+0x1023): In function `autoadd_sieve':
  : undefined reference to `sieve_register_parse_error'
  libimap.a(autosieve.o)(.text+0x10a3): In function `autoadd_sieve':
  : undefined reference to `sieve_script_parse'
  libimap.a(autosieve.o)(.text+0x10ca): In function `autoadd_sieve':
  : undefined reference to `sieve_interp_free'
  libimap.a(autosieve.o)(.text+0x10d9): In function `autoadd_sieve':
  : undefined reference to `sieve_generate_bytecode'
  libimap.a(autosieve.o)(.text+0x10f7): In function `autoadd_sieve':
  : undefined reference to `sieve_emit_bytecode'
  libimap.a(autosieve.o)(.text+0x1104): In function `autoadd_sieve':
  : undefined reference to `sieve_free_bytecode'
  libimap.a(autosieve.o)(.text+0x110f): In function `autoadd_sieve':
  : undefined reference to `sieve_script_free'
  libimap.a(autosieve.o)(.text+0x111c): In function `autoadd_sieve':
  : undefined reference to `sieve_interp_free'
  libimap.a(autosieve.o)(.text+0x114b): In function `autoadd_sieve':
  : undefined reference to `sieve_free_bytecode'
  libimap.a(autosieve.o)(.text+0x1156): In function `autoadd_sieve':
  : undefined reference to `sieve_script_free'
  libimap.a(autosieve.o)(.text+0x11ae): In function `autoadd_sieve':
  : undefined reference to `sieve_script_free'
  *** Error code 1

  Stop in /usr/ports/mail/cyrus-imapd23/work/cyrus-imapd-2.3.11/imap.
  *** Error code 1

  Stop in /usr/ports/mail/cyrus-imapd23/work/cyrus-imapd-2.3.11.
  *** Error code 1

  Stop in /usr/ports/mail/cyrus-imapd23.
  *** Error code 1

  Stop in /usr/ports/mail/cyrus-imapd23.

  Again, thanks for any help in debugging this.

  dn




  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Slow local network performance for image attachments

2008-03-28 Thread Alain Spineux
On Sat, Mar 29, 2008 at 2:09 AM, Jeff Larsen [EMAIL PROTECTED] wrote:
 I run cyrus imap in a virtual machine at home using fetchmail to pull
  my ISP mail into a local imap store. For the most part it works great.
  But with messages that have digital photo attachments it takes a
  seemingly inappropriate long time for Thunderbird to download the
  message (over local wired 100Mb network) and display the pictures.

  I've got plenty of memory overhead on both the virtual machine and the
  VMware Server host. While in the process of downloading an image
  email, the CPU usage goes higher than I would expect (20%) for a
  simple file transfer. It takes 10-15 seconds to load a message with 3
  images totaling  5MB over non-encrypted port 143. It's 2 or 3 times
  that long if I use imaps on 993.

  The VMware host is a 2GHz Pentium, with very little load from other 
 processes.

First I thing about a probleme with Vmware or hardware (disk access or network)

Find the file that match your email in your imap spool, and try to
download/upload it using
scp on your workstation, and measure the time.
Also try using imap client on your server, and other imap client 


Regards


  What's gong on here and can I do anything to fix it? Why so much CPU
  to transfer a 5MB message?. Doesn't Thunderbird handle the mime
  decoding?

  We use a similar setup at work (cyrus on virtual machine) for 50 users
  and I don't have the same problem there. Granted, the hardware is
  faster, but it's also carrying a much heavier load for other services.

  --
  Jeff
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: rebuilt cyrus server weirdness

2008-03-28 Thread Alain Spineux
On Sat, Mar 29, 2008 at 3:32 AM, Bernhard Rohrer
[EMAIL PROTECTED] wrote:
 Hi folks

  I am running a cyrus server for a few users, mainly myself and I
  recently had a catastropic failure that led to me reconstructing the
  server from an older installation.

  OS is Ubuntu Gutsy, Cyrus 2.2

  I copied /var/lib/cyrus and /var/spool/cyrus back and followed the
  instructions here to get my databases back. this works fine in
  principle, but leaves me with this problem:

  In my Thunderbird I see a bunchload of empty messages, that show read,
  unread, replied, forwarded marks and nothing else. no subject, no
  contents.

Maybe a problem with the cache in your thunderbird.
Create a new thunderbird account and if this solved your
problem drop the old one.


  When I try to delete on I get an error message that the IMAP server
  reported an IO error and syslog says: Mar 29 01:33:41 collab
  cyrus/imap[26479]: IOERROR: opening 3056.: No such file or directory

  This screenshot here (http://www.sm-wg.net/Thunderbird.png) shows in
  the background said Thunderbird with the email that I tried to delete
  marked and in the foreground midnight commander showing the very
  directory and message.

  [EMAIL PROTECTED]:/var/spool/cyrus/mail/user/houselion# ls -al 3056
  -rw-r--r-- 1 cyrus mail 4369 2008-03-13 00:11 3056

  cyrus clearly also has the permissions to access this.

  hjaelp!

  what else do you need? is there a verbose flag that I can set
  somewhere to get more info?

  Thanks

  Bernhard
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: How I have to configure my mailboxes in the POP/IMAP clients

2008-03-27 Thread Alain Spineux
On Thu, Mar 27, 2008 at 4:36 PM, Andres Tarallo [EMAIL PROTECTED] wrote:
  I'm about to deploy a new mail server, with postfix and cyrus IMAP
  2.2.13 on Ubuntu 8.04. I can't access my mailboxes via POP3 neither
  IMAP.

   I've created my mailbox in cyradm as follows:
  [EMAIL PROTECTED] Mail is being delivered successfully to my
   mailboxes, but I can't access them.

Did you configure the way cyrus will be able to authenticate your user ?
Using unix password, ldap, mysql  ? This is related to auth_mech
in imapd.conf

What is the proper username for
  the  mailboxes?

usualy [EMAIL PROTECTED] or username
depending on option virtdomains and defaultdomain in imapd.conf


  Thanks


   Andrés
  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Help please, cyrus imapd production system down

2008-03-26 Thread Alain Spineux
 exited, signaled to death 
 by 7
  Mar 26 08:59:40 elo master[20695]: service lmtpunix pid 23916 in READY 
 state: terminated abnormally
  Mar 26 08:59:40 elo master[23998]: about to exec /usr/lib/cyrus-imapd/lmtpd
  Mar 26 08:59:40 elo lmtpunix[23998]: executed
  Mar 26 08:59:40 elo sendmail[23997]: m2QDxJCu023967: to=$USER, 
 delay=00:00:19, xdelay=00:00:00, mailer=cyrusv2, pri=37785, relay=local



  $ db_verify deliver.db  21 | head

db_berify check Berkeley db file, as shown below, deliver.db is in
skiplist format.
Then tis is useless.

  db_verify: deliver.db: unexpected file type or format
  db_verify: Page 0: pgno incorrectly set to 1953720684
  db_verify: Page 0: bad magic number 543582572
  db_verify: Page 0: bad page size 16777216
  db_verify: Page 1: bad page number 1206496269
  db_verify: Page 1: bad page type 255
  db_verify: Page 1: unknown page type 255
  db_verify: Page 2: bad page number 1701145449
  db_verify: Page 2: bad page type 142
  db_verify: Page 2: unknown page type 142
  ..
  db_verify: Page 228: bad page type 109
  db_verify: Page 228: unknown page type 109
  db_verify: Page 229: bad page number 1465276490
  db_verify: Page 229: bad page type 105
  db_verify: Page 229: unknown page type 105
  db_verify: deliver.db: DB_VERIFY_BAD: Database verification failed


  $ file *.db
  annotations.db:  Cyrus skiplist DB
  deliver.db:  Cyrus skiplist DB
  mailboxes.db:Cyrus skiplist DB
  tls_sessions.db: Cyrus skiplist DB


  $ file *.db
  annotations.db:  Cyrus skiplist DB
  deliver.db:  Cyrus skiplist DB
  mailboxes.db:Cyrus skiplist DB
  tls_sessions.db: Cyrus skiplist DB
  [EMAIL PROTECTED] ~]$ cat /etc/cyrus.conf
  # standard standalone server implementation

  START {
   # do not delete this entry!
   recover   cmd=ctl_cyrusdb -r

   # this is only necessary if using idled for IMAP IDLE
   idled cmd=idled
  }

  # UNIX sockets start with a slash and are put into /var/lib/imap/sockets
  SERVICES {
   # add or remove based on preferences
   imap  cmd=imapd listen=imap prefork=10
   imaps cmd=imapd -s listen=imaps prefork=5
   pop3  cmd=pop3d listen=pop3 prefork=2
   pop3s cmd=pop3d -s listen=pop3s prefork=2
   sieve cmd=timsieved listen=sieve prefork=10

   # these are only necessary if receiving/exporting usenet via NNTP
  #  nntp cmd=nntpd listen=nntp prefork=3
  #  nntpscmd=nntpd -s listen=nntps prefork=1

   # at least one LMTP is required for delivery
  #  lmtp cmd=lmtpd listen=localhost:lmtp prefork=1
   lmtpunix  cmd=lmtpd listen=/var/lib/imap/socket/lmtp prefork=10

   # this is only necessary if using notifications
  #  notify   cmd=notifyd listen=/var/lib/imap/socket/notify 
 proto=udp prefork=1
  }

  EVENTS {
   # this is required
   checkpointcmd=ctl_cyrusdb -c period=30

   # this is only necessary if using duplicate delivery suppression,
   # Sieve or NNTP
   delprune  cmd=cyr_expire -E 3 -X 1 at=0200

   # this is only necessary if caching TLS sessions
   tlsprune  cmd=tls_prune at=0400

   # mikee 080109 - make sure messages are trimmed
   msgprune1 cmd=ipurge -f -d 2 -X user.%.backup at=2200
   msgprune2 cmd=ipurge -f -d 5 -X user.%.spam at=2230
   msgprune3 cmd=ipurge -f -d 4 -X user.%.Trash at=2300
  }


  $ cat /etc/imapd.conf
  admins: cyrus
  allowanonymouslogin: no
  allowplaintext: yes
  autocreatequota: -1
  autocreateinboxfolders: Sent | Drafts | | spam | backup
  configdirectory: /var/lib/imap
  drachost: localhost
  dracinterval: 0
  hashimapspool: true
  partition-default: /var/spool/imap
  poptimeout: 10
  postmaster: postmaster
  quotawarn: 90
  reject8bit: no
  sasl_mech_list: PLAIN
  sasl_pwcheck_method: saslauthd
  sendmail: /usr/lib/sendmail
  servername: servername
  sieveusehomedir: 0
  sievedir: /var/lib/imap/sieve
  sieve_maxscripts: 5
  sieve_maxscriptsize: 96
  timeout: 1440
  tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
  tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd-071024.pem
  tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd-071024.pem
  #unixhierarchysep: yes

  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: reconstruct doing nothing

2008-03-22 Thread Alain Spineux
On Fri, Mar 21, 2008 at 8:59 PM, Rudy Gevaert [EMAIL PROTECTED] wrote:
 Gabor Gombas wrote:
   On Fri, Mar 21, 2008 at 04:57:18PM +0100, Bart Coninckx wrote:
  
   Gabor, is this patch relevant when I do get a result onscreen from
   reconstruct?
  
   Without the patch, reconstruct -r processes only the exact mailbox
   given on the command line but does not descend into subfolders, like
   when the -r switch was not given at all. At least that's the case with
   my configuration.

  Some time ago I noticed the same, but some time after that it did
  recurse.  Anyway, doing reconstruct -rfx user/first.lastname/[EMAIL 
 PROTECTED]
  reconstructs the sub folders too.


I thing '*' and '%' are used as wildcard in the list of know
mailboxes, I means the mailbox.db

Then

reconstruct user/first.lastname/[EMAIL PROTECTED]  #withount -r

display all known sub folder of mailbox [EMAIL PROTECTED] except
Inbox itself 

Then to repair an inbox and all its folders 2 commands are required !

reconstruct user/[EMAIL PROTECTED]
reconstruct user/first.lastname/[EMAIL PROTECTED]

I suppose

reconstruct -r user/[EMAIL PROTECTED]  #withount * but with -r

SOULD do the same. But is not working for me. The -f doest help more if
the mailbox is already knwon !

If I copy my Sent folder into a new Foo folder then run (create a new
mailbox without
telling to cyrus), then use

reconstruct -f user/[EMAIL PROTECTED]  # without a -r but
(work same with -r )

It display

discovered domain.com!first.last.Foo


Conclusion


- -r looks to be useless
- -f discover yet unknow folder, recursively too, but only inside new
folder, not if already known, use * to for a full discovery in two
time user/[EMAIL PROTECTED] and
user/first.lastname/[EMAIL PROTECTED]
- '*' and '%' allow to walk around the mailbox tree, but only inside
already know folder

This was tested on a 2.3.11

Hope this help






  Rudy




  --
  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
  Directie ICT, afd. Infrastructuur  Direction ICT, Infrastructure dept.
  Groep Systemen Systems group
  Universiteit Gent  Ghent University
  Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  


 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: reconstruct doing nothing

2008-03-22 Thread Alain Spineux
On Sat, Mar 22, 2008 at 1:31 PM, Sebastian Hagedorn
[EMAIL PROTECTED] wrote:
 -- Alain Spineux [EMAIL PROTECTED] is rumored to have mumbled on 22.
  März 2008 11:29:36 +0100 regarding Re: reconstruct doing nothing:


   Conclusion
   
  
   - -r looks to be useless
   - -f discover yet unknow folder, recursively too, but only inside new
   folder, not if already known, use * to for a full discovery in two
   time user/[EMAIL PROTECTED] and
   user/first.lastname/[EMAIL PROTECTED]
   - '*' and '%' allow to walk around the mailbox tree, but only inside
   already know folder
  
   This was tested on a 2.3.11

  FWIW, I think -r works just fine unless you're using virtual domains ...

Regarding the patch, I looks you are right.
Also it looks -r replace :

reconstruct -r user/[EMAIL PROTECTED]

into

reconstruct user/first.lastname/[EMAIL PROTECTED]

  --
  Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
  Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
  Universität zu Köln / Cologne University - Tel. +49-221-478-5587
 
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Fedora 8 cyrus-imap install w/ cyrus admin cm permission errors (long post)

2008-03-21 Thread Alain Spineux
 on /var/net-snmp/cyrusMaster.conf
 -maillog from command line startup
 tail -100 maillog
 Mar 16 16:40:55 lauren master[1957]: service lmtpunix pid 1990 in READY
 state: terminated abnormally
 Mar 16 16:40:55 lauren master[1957]: service lmtpunix now has 0 ready
 workers
 Mar 16 16:40:55 lauren master[1991]: set maximum file descriptors to 256/256
 Mar 16 16:40:55 lauren master[1991]: about to exec
 /usr/lib/cyrus-imapd/lmtpd
 Mar 16 16:40:55 lauren lmtpunix[1991]: executed
 Mar 16 16:40:55 lauren lmtpunix[1991]: DBERROR db4:
 /var/lib/imap/deliver.db: unexpected file type or format
 Mar 16 16:40:55 lauren lmtpunix[1991]: DBERROR: opening
 /var/lib/imap/deliver.db: Invalid argument
 Mar 16 16:40:55 lauren lmtpunix[1991]: DBERROR: opening
 /var/lib/imap/deliver.db: cyrusdb error
 Mar 16 16:40:55 lauren lmtpunix[1991]: FATAL: lmtpd: unable to init
 duplicate delivery database
 Mar 16 16:40:55 lauren master[1957]: listening for messages from imap
 Mar 16 16:40:55 lauren master[1957]: listening for messages from pop3
 Mar 16 16:40:55 lauren master[1957]: listening for messages from sieve
 Mar 16 16:40:55 lauren master[1957]: listening for connections for sieve
 Mar 16 16:40:55 lauren master[1957]: listening for messages from lmtpunix
 Mar 16 16:40:55 lauren master[1957]: listening for messages from imap
 Mar 16 16:40:55 lauren master[1957]: listening for messages from pop3
 Mar 16 16:40:55 lauren master[1957]: listening for messages from sieve
 Mar 16 16:40:55 lauren master[1957]: listening for connections for sieve
 Mar 16 16:40:56 lauren ctl_cyrusdb[1961]: archiving log file:
 /var/lib/imap/db/log.01
 Mar 16 16:40:57 lauren ctl_cyrusdb[1961]: archiving database file:
 /var/lib/imap/annotations.db
 Mar 16 16:40:57 lauren ctl_cyrusdb[1961]: archiving database file:
 /var/lib/imap/mailboxes.db
 Mar 16 16:40:57 lauren ctl_cyrusdb[1961]: archiving log file:
 /var/lib/imap/db/log.01
 Mar 16 16:40:59 lauren ctl_cyrusdb[1961]: done checkpointing cyrus databases
 Mar 16 16:40:59 lauren master[1957]: process 1961 exited, status 0
 Mar 16 16:40:59 lauren master[1957]: process 1991 exited, status 75
 Mar 16 16:40:59 lauren master[1957]: service lmtpunix pid 1991 in READY
 state: terminated abnormally
 Mar 16 16:40:59 lauren master[1957]: service lmtpunix now has 0 ready
 workers
 Mar 16 16:40:59 lauren master[1992]: set maximum file descriptors to 256/256
 Mar 16 16:40:59 lauren master[1992]: about to exec
 /usr/lib/cyrus-imapd/lmtpd
 Mar 16 16:40:59 lauren lmtpunix[1992]: executed
 Mar 16 16:40:59 lauren lmtpunix[1992]: DBERROR db4:
 /var/lib/imap/deliver.db: unexpected file type or format
 Mar 16 16:40:59 lauren lmtpunix[1992]: DBERROR: opening
 /var/lib/imap/deliver.db: Invalid argument
 Mar 16 16:40:59 lauren lmtpunix[1992]: DBERROR: opening
 /var/lib/imap/deliver.db: cyrusdb error
 Mar 16 16:40:59 lauren lmtpunix[1992]: FATAL: lmtpd: unable to init
 duplicate delivery database

 
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: reconstruct doing nothing

2008-03-21 Thread Alain Spineux
On Fri, Mar 21, 2008 at 3:27 PM, Bart Coninckx [EMAIL PROTECTED] wrote:
 If you are using the unix hierarchy seperator, you need to use
  reconstruct -r user/testuser.

  Or user/[EMAIL PROTECTED] if you are using virtual domains.  Also make
  sure that the files are chown cyrus:mail (or whatever uid/guid you are
  using).

  You can run strace reconstruct ... that will maybe you give an better
  idea what it is trying to do.

  Rudy

  Spoke too soon I believe: I see reconstruct do some stuff, but the cyrus.*
  files are unaffected. Also, a folder I restored is not processed by
  reconstruct.

  I used this command:

  su cyrus -c /usr/lib/cyrus/bin/reconstruct -rfx
  user/[EMAIL PROTECTED]

You used a ^ instead of a . between first and last name !

try

 su cyrus -c /usr/lib/cyrus/bin/reconstruct -rfx
user/[EMAIL PROTECTED]


Regards


  All files have ownership cyrus:mail

  Any idea on why he doesn't touch the restored folders?

  Thx!

  B.



  
  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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Cyradm - bug or incorrect settings ?

2008-02-13 Thread Alain Spineux
On Feb 13, 2008 7:10 AM, Oleg Kostyuk [EMAIL PROTECTED] wrote:
 2008/2/13, Alain Spineux [EMAIL PROTECTED]:

  On Feb 12, 2008 10:32 PM, Oleg Kostyuk [EMAIL PROTECTED] wrote:
   Hello all!
   I have problem with connecting to cyrus via cyradm.
   This my configuration:
  
   === from imapd.conf ===
   virtdomains: userid
   defaultdomain: cub.org.ua
   loginrealms: cub.org.ua home.cub.org.ua
   sasl_pwcheck_method: auxprop
   sasl_auxprop_plugin: sql
   sasl_mech_list: PLAIN
   sasl_sql_engine: sqlite
   sasl_sql_database: /etc/sasldb2.sqlite
   sasl_sql_select: select password from sasl_users where username = '%u'
   and domain='%r'
   === end imapd.conf ===
  
  
   === from sasldb2.sqlite ===
   # echo select username, domain, password from sasl_users; | sqlite
   /etc/sasldb2.sqlite
   cyrus||MailAdmin
   cyrus|cub.org.ua|MailAdmin
   #
   === end sasldb2.sqlite ===
  
  
   === from host command line ===
   # hostname
   hosting
   # hostname -f
   hosting.cub.org.ua
   # ls -la /etc/sasldb2.sqlite
   -rw-rw 1 cyrus sasl 4096 2008-02-12 18:25 /etc/sasldb2.sqlite
   #
   === end of host command line ===
  
   === try to connect ===
   # cyradm --user [EMAIL PROTECTED] localhost
   IMAP Password:
  at /usr/lib/perl5/Cyrus/IMAP/Admin.pm line 119
   cyradm: cannot authenticate to server as [EMAIL PROTECTED]
   #
   === end of try ===
  
   === errors in log ===
   == /var/log/auth.log ==
   Feb 12 18:27:10 hosting cyrus/imap[9940]: sql auxprop plugin using sqlite 
   engine
   Feb 12 18:27:10 hosting perl: No worthy mechs found
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username 
   cyrus
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a 
   host
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db
   '/etc/sasldb2.sqlite' on host 'localhost'
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username 
   cyrus
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a 
   host
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db
   '/etc/sasldb2.sqlite' on host 'localhost'
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username 
   cyrus
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a 
   host
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db
   '/etc/sasldb2.sqlite' on host 'localhost'
   Feb 12 18:27:14 hosting cyrus/imap[9940]: begin transaction
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin: unable to open
   database file
   Feb 12 18:27:14 hosting cyrus/imap[9940]: Unable to begin transaction
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin create statement
   from userPassword cyrus hosting
   Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin doing query
   select password from sasl_users where username = 'cyrus' and
   domain='hosting';
  
   == /var/log/syslog ==
   Feb 12 18:27:16 hosting cyrus/master[9803]: process 9940 exited,
   signaled to death by 11
   Feb 12 18:27:16 hosting cyrus/master[9803]: service imap pid 9940 in
   BUSY state: terminated abnormally
   === end of errors ===
  
   And finally, my questions:
   1) why cyradm tries hosting realm, instead of cub.org.ua ? This is
   bug or my mistake ?
 
  can you make a
  # grep  localhost /etc/hosts
  Do you have hosting on this line too ?

 # grep -E localhost\|hosting /etc/hosts
 127.0.0.1   localhost
 127.0.1.1   hosting.cub.org.ua  hosting
 #

This is unusual but it should work. I would have used :

127.0.0.1   hosting.cub.org.ua  hosting localhost
or
127.0.0.1localhost
1.2.3.4   hosting.cub.org.ua  hosting

with 1.2.3.4 one of the ip address of the server, one that would never change.

Then I dont know why it is using hosting as your realm


 This is my first debian install, and it's something strange to me (127.0.1.1 
 :)
 Is this should be corrected?

   2) from where coming sql plugin: unable to open database file error ?
 
  Can you try a
  # chmod 666 /etc/sasldb2.sqlite
  just for testing ?

 Already tried, but unfortunately this not help - all work exactly same
 way with 0666 and 0660

Do you still have the error about sql plugin: unable to open database file.

I have no more idea and coonot help you more.




   Btw, if I create entry in database with domain == hosting - all
   things work correctly (except ignoring cub.org.ua realm).
   I'm using Debian Etch, and all software installed from stable branch
   (cyrus is 2.2.13-10 and sasl2 is 2.1.22.dfsg1-8).

 --
 Sincerely yours,
 Oleg Kostyuk (CUB-UANIC)




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Cyradm - bug or incorrect settings ?

2008-02-12 Thread Alain Spineux
On Feb 12, 2008 10:32 PM, Oleg Kostyuk [EMAIL PROTECTED] wrote:
 Hello all!

 I have problem with connecting to cyrus via cyradm.

 This my configuration:

 === from imapd.conf ===
 virtdomains: userid
 defaultdomain: cub.org.ua
 loginrealms: cub.org.ua home.cub.org.ua
 sasl_pwcheck_method: auxprop
 sasl_auxprop_plugin: sql
 sasl_mech_list: PLAIN
 sasl_sql_engine: sqlite
 sasl_sql_database: /etc/sasldb2.sqlite
 sasl_sql_select: select password from sasl_users where username = '%u'
 and domain='%r'
 === end imapd.conf ===


 === from sasldb2.sqlite ===
 # echo select username, domain, password from sasl_users; | sqlite
 /etc/sasldb2.sqlite
 cyrus||MailAdmin
 cyrus|cub.org.ua|MailAdmin
 #
 === end sasldb2.sqlite ===


 === from host command line ===
 # hostname
 hosting
 # hostname -f
 hosting.cub.org.ua
 # ls -la /etc/sasldb2.sqlite
 -rw-rw 1 cyrus sasl 4096 2008-02-12 18:25 /etc/sasldb2.sqlite
 #
 === end of host command line ===

 === try to connect ===
 # cyradm --user [EMAIL PROTECTED] localhost
 IMAP Password:
at /usr/lib/perl5/Cyrus/IMAP/Admin.pm line 119
 cyradm: cannot authenticate to server as [EMAIL PROTECTED]
 #
 === end of try ===

 === errors in log ===
 == /var/log/auth.log ==
 Feb 12 18:27:10 hosting cyrus/imap[9940]: sql auxprop plugin using sqlite 
 engine
 Feb 12 18:27:10 hosting perl: No worthy mechs found
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db
 '/etc/sasldb2.sqlite' on host 'localhost'
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db
 '/etc/sasldb2.sqlite' on host 'localhost'
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin Parse the username cyrus
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin try and connect to a host
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin trying to open db
 '/etc/sasldb2.sqlite' on host 'localhost'
 Feb 12 18:27:14 hosting cyrus/imap[9940]: begin transaction
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin: unable to open
 database file
 Feb 12 18:27:14 hosting cyrus/imap[9940]: Unable to begin transaction
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin create statement
 from userPassword cyrus hosting
 Feb 12 18:27:14 hosting cyrus/imap[9940]: sql plugin doing query
 select password from sasl_users where username = 'cyrus' and
 domain='hosting';

 == /var/log/syslog ==
 Feb 12 18:27:16 hosting cyrus/master[9803]: process 9940 exited,
 signaled to death by 11
 Feb 12 18:27:16 hosting cyrus/master[9803]: service imap pid 9940 in
 BUSY state: terminated abnormally
 === end of errors ===

 And finally, my questions:
 1) why cyradm tries hosting realm, instead of cub.org.ua ? This is
 bug or my mistake ?

can you make a
# grep  localhost /etc/hosts
Do you have hosting on this line too ?

 2) from where coming sql plugin: unable to open database file error ?

Can you try a
# chmod 666 /etc/sasldb2.sqlite
just for testing ?


 Btw, if I create entry in database with domain == hosting - all
 things work correctly (except ignoring cub.org.ua realm).




 I'm using Debian Etch, and all software installed from stable branch
 (cyrus is 2.2.13-10 and sasl2 is 2.1.22.dfsg1-8).

 --
 Sincerely yours,
 Oleg Kostyuk (CUB-UANIC)
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Reject large emails

2008-02-12 Thread Alain Spineux
2008/2/12 Nikos Gatsis [EMAIL PROTECTED]:


First, this is the king of stuff you should setup at SMTP level to
reject the message before it enter the server.


  Does cyrus send a rejection message to the sender?

No, cyrus cannot send such a message.

When a system accept an email via SMTP or LMTP protocol,
this is its responsibility to warn the sender if it cannot
handle it further!
If it choose to reject it, this is then the responsibility of the
system that connected to it. Then look your SMTP documentation.

Regards.



  Michael Menge wrote:

 Hi,

  Set maxmessagesize in imapd.conf


  Quoting Nikos Gatsis [EMAIL PROTECTED]:


 Hello list.
  Is it possible with cyrus to reject emails with large attachments and
  inform the sender for the rejection?
  Thank you
  Nikos
  
  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





 
  M.Menge Tel.: (49) 7071/29-70316
  Universitaet Tuebingen  Fax.: (49) 7071/29-5912
  Zentrum fuer Datenverarbeitung  mail:
 [EMAIL PROTECTED]
  Waechterstrasse 76
  72074 Tuebingen
  


 
 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


 --
  
  Γατσής Νίκος - Gatsis Nikos
  Web developer
  tel.: 2108256721 - 2108256722
  fax: 2108256712
  email: [EMAIL PROTECTED]
  http://www.qbit.gr
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: migrate mailboxes from cyrus-imap-1.6.24 to cyrus-imapd-2.3.7

2008-02-07 Thread Alain Spineux
On Feb 7, 2008 10:19 AM, Alexander Tsebenko [EMAIL PROTECTED] wrote:
 Hello

 We need to migrate lots of |cyrus mailboxes| from one host
 (cyrus-imap-1.6.24_4 with cyrus-sasl-1.5.28_3)
 to new host (cyrus-imapd-2.3.7 with cyrus-sasl-2.1.22 ).
 Authentication is done via mysql plugin. MySQL user base on third machine
 I've tested that new cyrus authenticate test user just fine.

 May we just rsync user folders to complete migration?

rsync could be used without problem if you have to migrate to an
identical platform,
not here.
Use imapsync instead.

Regards




 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Old Domain Being Added By Cyrus

2008-02-07 Thread Alain Spineux
On Feb 7, 2008 6:04 AM, Daniel Aquino [EMAIL PROTECTED] wrote:
 When I use imtest without a realm option it appears that cyrus tries
 to quality it with an old hostname.

 I have changed my settings in imapd.conf to reflect the new hostname.

 Why could this be happening?

This is exactly what should append when you turn on virtdomains in imapd.conf
Cyrus can use defaultdomain option or guess the realm via names in
hosts file or DNS.
For more details looks for this option in man imapd.conf




 Thanks...
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: R: R: R: Error creating mailboxex with an inside

2008-02-07 Thread Alain Spineux
On Feb 7, 2008 3:35 PM, Toschi Pietro [EMAIL PROTECTED] wrote:

 Alain,
 mailboxes.c specifies, in GOODCHARS macro, the list of allowed characters for 
 creating subfolders. Do you know where it is the list of characters admitted 
 when creating a mailbox?

I don't know. Maybe in the authentication side.


 Thanx

 Pietro


 -Messaggio originale-
 Da: Alain Spineux [mailto:[EMAIL PROTECTED]
 Inviato: martedì 5 febbraio 2008 17.43
 A: Toschi Pietro
 Cc: info-cyrus@lists.andrew.cmu.edu
 Oggetto: Re: R: R: Error creating mailboxex with an  inside

 On Feb 5, 2008 5:22 PM, Toschi Pietro [EMAIL PROTECTED] wrote:
 
  Test result: failed.
 
  Even if testsaslauthd -u test\[EMAIL PROTECTED] -p password results in 
  an 0: OK Success. response, and the mailbox really exists on IMAP server, 
  I can't successfully login using IMAP clients to the IMAP server.
 
  Maybe some issues related to the way that cyrus and sasl communicate

 The restriction is done in cyrus itself!
 Their is 2 different list of allowed characters!

 For example, cyradm allow you to create some root mailbox (like
 user/test[EMAIL PROTECTED])
 but dont allow you to manage it !
 Try this
  sam user/test[EMAIL PROTECTED] anyone p
 you will get an error !



 
 
  -Messaggio originale-
  Da: Toschi Pietro
  Inviato: martedì 5 febbraio 2008 15.49
  A: 'Michael Menge'; 'Jorey Bump'
  Cc: info-cyrus@lists.andrew.cmu.edu
  Oggetto: R: R: Error creating mailboxex with an  inside
 
 
  I'm afraid I think you're right.
  The problem is not related to the Kolab patch, in fact I tried to create a 
  maibox both on a patched and an unpatched server with the same results, 
  using cyradm:
 
  cm user/test[EMAIL PROTECTED]
  Returns an error from cyradm
 
  cm user/test\[EMAIL PROTECTED]
  Returns an error from IMAP server:
  XX CREATE user/test[EMAIL PROTECTED]
  XX NO Invalid Mailbox Name
 
  cm user/test\[EMAIL PROTECTED]
  Actually creates user/test[EMAIL PROTECTED]
 
  Maybe a well-designed IMAP client should consider - an escape sequence and 
  show it a single  like in test[EMAIL PROTECTED], but doubts about 
  authentication problems still remain. I'll have a complete test in a short 
  using Thunderbird and let you know my results.
 
 
  See you later.
 
  P
 
 
  -Messaggio originale-
  Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Michael Menge
  Inviato: martedì 5 febbraio 2008 15.20
  A: info-cyrus@lists.andrew.cmu.edu
  Oggetto: Re: R: Error creating mailboxex with an  inside
 
  Hi,
 
  i think you have another problem,  has to be encoded in imap as - .
  The encoding is done by the mailclient. But on the other hand cyrus
  expacts the user
  to have a folder under user that matches the username used for 
  authentication.
  IMHO using  in username is a bad idea as the authenticationlayer does not
  know the special meaning of  and that it has to be escaped as -
 
 
 
  Quoting Toschi Pietro [EMAIL PROTECTED]:
 
   Unfortunately I am using imapsync to migrate messages between
   already created top-level mailboxex, but it doesn't seem to take
   care of those details for me and failed to create every subfolder
   with special character until I applied the Kolab patch that modified
GOODCHAR macro in mailboxes.c.
  
   Apparently, the Kolab patch doesn't apply to top level mailboxes,
   INBOX. And creating user/this[EMAIL PROTECTED] still fails with
   cyradm or other applications.
  
   pietro
  
  
  
  
   -Messaggio originale-
   Da: Jorey Bump [mailto:[EMAIL PROTECTED]
   Inviato: martedì 5 febbraio 2008 14.10
   A: Toschi Pietro
   Cc: info-cyrus@lists.andrew.cmu.edu
   Oggetto: Re: Error creating mailboxex with an  inside
  
   Toschi Pietro wrote, at 02/05/2008 06:57 AM:
  
   Apparently, cyrus-imapd does not support mailboxes with some letters
   inside the name.  is one of that. I have some mailboxes containing
   that symbol to be migrated from another server (SUN) but I always get an
   error.
  
   Looking at the IMAP RFC it seems very complex to me to understand what
   characters are supported and how by the protocol. I wander if there is a
   way to make cyrus accept such mailboxes, for example using some sort of
   escape sequences, encoding rules or so.
  
   Do someone have a solution to this annoying problem?
  
   In Thunderbird, I can create a new folder named:
  
 thisthat
  
   This results in a directory on the server named:
  
 this-that
  
   What tool are you using to migrate your mailboxes? Hopefully, something
   like imapsync will take care of these details for you.
   
   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
  
 
 
 
  
  M.Menge Tel.: (49) 7071/29-70316
  Universitaet Tuebingen  Fax.: (49) 7071

Re: Upgrade all Berkeley db's

2008-02-07 Thread Alain Spineux
On Feb 7, 2008 6:21 PM, Martin Schweizer [EMAIL PROTECTED] wrote:
 Hello

  I use FreeBSD 6.3 and Cyrus 2.3.11 (with sasldb2). All works correct.

All works corrects ?
Have you already upgraded ?
Then why your questions ?


 In the upgrade process (2.3.9 to 2.3.11) I checked also all the db
 files.  I found the following:

 file /usr/local/etc/sasldb2:
 /usr/local/etc/sasldb2.db: Berkeley DB 1.85 (Hash, version 2, native 
 byte-order)

Depend which binary are or will access saasldb2.


 - Do I need to upgrade the sasldb2 or can I let is as is?

 file /var/imap/*.db:
 - annotations.db:  Apple QuickTime movie (modified)\012- Cyrus skiplist DB

 - deliver.db:  Hitachi SH big-endian COFF object, not
 stripped\012- Berkeley DB (Btree, version 8, native byte-order)\012-
 Berkeley DB (Btree, version 8, little-endian)

 - mailboxes.db:Apple QuickTime movie (modified)\012- Cyrus skiplist DB

 - tls_sessions.db: Berkeley DB (Btree, version 8, native
 byte-order)\012- Berkeley DB (Btree, version 8, little-endian)

 pkg_info|grep db:
 db3-3.3.11_3,1  The Berkeley DB package, revision 3.3
 db41-4.1.25_4   The Berkeley DB package, revision 4.1

The problem is wich version of bdb is used by your application

# ldd binary_file

should tell you


 db3_dump deliver.db and tls_sessions.db:
 VERSION=3
 format=bytevalue
 type=btree
 ...
 This means for me it's db3. Can I upgrade it with db3_dump to a text
 file db41_load in a new database file? Or can cyrus create
 tls_session.db and deliver.db new?

 annotations.db:
 How I can upgrade this db? Do I need it or can cyrus createannotations.db?

 mailboxes.db:
 This I can dump/restore by ctl_mboxlist -d/-u.

annotations and mailboxes are skiplist, this is not bdb !
You dont need to upgrade.

PS: annotations contains annotations :-) It is important if your MUA
is using annotation.

deliver and tls_session can be dropped, cyrus will re-create them.


 What is about the files in the directories /var/imap/db and
 /var/imap/user? How I should dealt with these? Did I foreget
 something?

file is you friend !
Look for file named cyrus.*


 Regards,
 --
 Martin Schweizer
 [EMAIL PROTECTED]
 Tel.: +41 32 512 48 54 (VoIP)
 Fax: +1 619 3300587
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: Old Domain Being Added By Cyrus

2008-02-07 Thread Alain Spineux
On Feb 7, 2008 7:44 PM, Daniel Aquino [EMAIL PROTECTED] wrote:
 So why are my email clients trying to send user@domain when user
 already has @domain included?

Don't understand.


 Because from my testing it appears that only when I don't pass in a
 realm or domain with the authentication name that it tries to grab
 names from the host files.

Right

if defaultdomain is set, when getting foo, imap will use [EMAIL PROTECTED]

foo - [EMAIL PROTECTED]
[EMAIL PROTECTED] - [EMAIL PROTECTED]
[EMAIL PROTECTED] - [EMAIL PROTECTED]


 So that means that these MUA's are not passing in the domain at all...

Witch MUA ?


 Does plain authentication by MUA's not pass the domain along?

Dont things so




 On Feb 7, 2008 7:10 AM, Alain Spineux [EMAIL PROTECTED] wrote:
 
  On Feb 7, 2008 6:04 AM, Daniel Aquino [EMAIL PROTECTED] wrote:
   When I use imtest without a realm option it appears that cyrus tries
   to quality it with an old hostname.
  
   I have changed my settings in imapd.conf to reflect the new hostname.
  
   Why could this be happening?
 
  This is exactly what should append when you turn on virtdomains in 
  imapd.conf
  Cyrus can use defaultdomain option or guess the realm via names in
  hosts file or DNS.
  For more details looks for this option in man imapd.conf
 
 
 
  
   Thanks...
   
   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
  
 
 
 
  --
  Alain Spineux
  aspineux gmail com
  May the sources be with you
 




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: quota and quota-root

2008-02-06 Thread Alain Spineux
On Feb 6, 2008 8:45 PM, Joseph Silverman [EMAIL PROTECTED] wrote:
 can someone explain what the difference is?

 so, I use cyradm to 'sq user/ME 12345678' - afterwards I see than if I
 'lq user/ME' I see the number.  HOWEVER, if I 'lqr user/ME' I don't
 see anything.  There appears to be no 'sqr' command and the only way I
 know to set the quota-root is to use the shell command utility 'quota -
 f user/ME' after the 'sq' command

Be carrefull the quota command exist also for the file system.
Use
# which quota
to be sure you are using the cyrus one !
cyrus's quota is sometime rename in cyrquota!

You should use

 sq user/ME STORAGE 12345678
instead of
 sq user/ME 12345678




 what am I misunderstanding?!

 thanks - Yossie
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: R: R: Error creating mailboxex with an inside

2008-02-05 Thread Alain Spineux
On Feb 5, 2008 5:22 PM, Toschi Pietro [EMAIL PROTECTED] wrote:

 Test result: failed.

 Even if testsaslauthd -u test\[EMAIL PROTECTED] -p password results in an 
 0: OK Success. response, and the mailbox really exists on IMAP server, I 
 can't successfully login using IMAP clients to the IMAP server.

 Maybe some issues related to the way that cyrus and sasl communicate

The restriction is done in cyrus itself!
Their is 2 different list of allowed characters!

For example, cyradm allow you to create some root mailbox (like
user/test[EMAIL PROTECTED])
but dont allow you to manage it !
Try this
 sam user/test[EMAIL PROTECTED] anyone p
you will get an error !





 -Messaggio originale-
 Da: Toschi Pietro
 Inviato: martedì 5 febbraio 2008 15.49
 A: 'Michael Menge'; 'Jorey Bump'
 Cc: info-cyrus@lists.andrew.cmu.edu
 Oggetto: R: R: Error creating mailboxex with an  inside


 I'm afraid I think you're right.
 The problem is not related to the Kolab patch, in fact I tried to create a 
 maibox both on a patched and an unpatched server with the same results, using 
 cyradm:

 cm user/test[EMAIL PROTECTED]
 Returns an error from cyradm

 cm user/test\[EMAIL PROTECTED]
 Returns an error from IMAP server:
 XX CREATE user/test[EMAIL PROTECTED]
 XX NO Invalid Mailbox Name

 cm user/test\[EMAIL PROTECTED]
 Actually creates user/test[EMAIL PROTECTED]

 Maybe a well-designed IMAP client should consider - an escape sequence and 
 show it a single  like in test[EMAIL PROTECTED], but doubts about 
 authentication problems still remain. I'll have a complete test in a short 
 using Thunderbird and let you know my results.


 See you later.

 P


 -Messaggio originale-
 Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Michael Menge
 Inviato: martedì 5 febbraio 2008 15.20
 A: info-cyrus@lists.andrew.cmu.edu
 Oggetto: Re: R: Error creating mailboxex with an  inside

 Hi,

 i think you have another problem,  has to be encoded in imap as - .
 The encoding is done by the mailclient. But on the other hand cyrus
 expacts the user
 to have a folder under user that matches the username used for authentication.
 IMHO using  in username is a bad idea as the authenticationlayer does not
 know the special meaning of  and that it has to be escaped as -



 Quoting Toschi Pietro [EMAIL PROTECTED]:

  Unfortunately I am using imapsync to migrate messages between
  already created top-level mailboxex, but it doesn't seem to take
  care of those details for me and failed to create every subfolder
  with special character until I applied the Kolab patch that modified
   GOODCHAR macro in mailboxes.c.
 
  Apparently, the Kolab patch doesn't apply to top level mailboxes,
  INBOX. And creating user/this[EMAIL PROTECTED] still fails with
  cyradm or other applications.
 
  pietro
 
 
 
 
  -Messaggio originale-
  Da: Jorey Bump [mailto:[EMAIL PROTECTED]
  Inviato: martedì 5 febbraio 2008 14.10
  A: Toschi Pietro
  Cc: info-cyrus@lists.andrew.cmu.edu
  Oggetto: Re: Error creating mailboxex with an  inside
 
  Toschi Pietro wrote, at 02/05/2008 06:57 AM:
 
  Apparently, cyrus-imapd does not support mailboxes with some letters
  inside the name.  is one of that. I have some mailboxes containing
  that symbol to be migrated from another server (SUN) but I always get an
  error.
 
  Looking at the IMAP RFC it seems very complex to me to understand what
  characters are supported and how by the protocol. I wander if there is a
  way to make cyrus accept such mailboxes, for example using some sort of
  escape sequences, encoding rules or so.
 
  Do someone have a solution to this annoying problem?
 
  In Thunderbird, I can create a new folder named:
 
thisthat
 
  This results in a directory on the server named:
 
this-that
 
  What tool are you using to migrate your mailboxes? Hopefully, something
  like imapsync will take care of these details for you.
  
  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
 



 
 M.Menge Tel.: (49) 7071/29-70316
 Universitaet Tuebingen  Fax.: (49) 7071/29-5912
 Zentrum fuer Datenverarbeitung  mail:
 [EMAIL PROTECTED]
 Waechterstrasse 76
 72074 Tuebingen




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: migrating to virtual domain support

2008-02-01 Thread Alain Spineux
On Feb 1, 2008 2:29 PM, Stefan Palme [EMAIL PROTECTED] wrote:
 Hi

 I have a cyrus imap server installation without virtual domain support.
 Some months ago I started receiving mails for other domains besides my
 default domain, so I have usernames like bob (for the default
 domain) and fred.domain2 (for the additional domain domain2.com).
 (The naming scheme NAME.DOMAIN has been introduced to avoid
 collisions, in fact I emulated virtual domains this way).

 This gets more and more ugly, so I want to migrate to real virtual
 domain support. I've tested virtual domains on a test server, and
 everything is fine.

 My only problem: how do I migrate the mails from the old fred.domain2
 mailbox to the new [EMAIL PROTECTED] mailbox? Until now there
 exists a mailbox user/fred.domain2 (I'm using unixhierarchystyle).
 The new mailbox for this user is user/[EMAIL PROTECTED] - so there
 is a new mailspool directory for this account.

 I guess I can not simply move the content of 
 /var/spool/imap/f/user/fred^domain2
 to the new location /var/spool/imap/domain/d/domain2.com/f/user/fred
 without breaking something.

Create new mailboxes and move old content using imapsync tools.

For user that dont need to be migrated you can use
defaultdomain=yourdomain.com in imapd.conf
that will make [EMAIL PROTECTED] match your old user fred.

Regards




 So what needs to be done to ensure, that fred will be able to read his
 old mails (and seeing his old mailbox structure) after switching to
 virtual domains and logging in using his new account [EMAIL PROTECTED]?

 Thanks and regards
 -stefan-


 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: sievefilter if user overquota (was :quota check befor sieve script?)

2008-01-31 Thread Alain Spineux
 PROTECTED]
 Waechterstrasse 76
 72074 Tuebingen




 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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

2008-01-30 Thread Alain Spineux
On Jan 30, 2008 2:17 PM, Rudy Gevaert [EMAIL PROTECTED] wrote:
 Hi,

 Any anybody who is using cyrus heading to Fosdem (that's in Brussels,
 Belgium)?  http://www.fosdem.org

 If so, maybe we can have an informal meet.

Yes I will, if I don't need to renew my passport until there :-)

[ We have some Political difficulties in Belgium, between the two main
linguistic communities, more than usual :-) ]


Regards.

 Rudy
 --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264 4734
 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
 Groep SystemenSystems group
 Universiteit Gent Ghent University
 Krijgslaan 281, gebouw S9, 9000 Gent, Belgie   www.UGent.be
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: cyr_expire, deliver.db and other curiosities

2008-01-30 Thread Alain Spineux
On Jan 30, 2008 1:06 PM, Sven Juergensen (KielNET)
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi list,

 I could use an overview of how
 cyr_expire and the entry
 ~ delprunecmd=/usr/sbin/cyr_expire -E 3
 in the cyrus.conf within the START
 section works.

 Background is, that for some
 reason, every now and then cyrus
 decides that it is a good idea
 to resign and stop responding
 on the pop3/imap4 ports.

Here the problem is.


 This can be remedied by restarting
 cyrus in it's entirety but when
 doing this after a couple of months
 uptime, the cyr_expire kicks in and
 it takes 30 minutes to get it back
 to work:

Always by two they are !

 - ---8---
 Jan 30 06:44:46 srv1 cyrus/master[32247]: about to exec /usr/sbin/cyr_expire
 Jan 30 06:44:48 srv1 cyrus/cyr_expire[32247]: duplicate_prune: pruning
 back 3 days
 Jan 30 06:44:48 srv1 cyrus/cyr_expire[32247]: mydelete: starting txn
 2147483650
 Jan 30 06:44:48 srv1 cyrus/cyr_expire[32247]: mydelete: committing txn
 2147483650
 [entries omitted]
 Jan 30 06:58:31 srv1 cyrus/cyr_expire[32247]: duplicate_prune: purged
 717903 out of 817184 entries
 Jan 30 06:58:31 srv1 cyrus/cyr_expire[32247]: expunged 0 out of 0
 messages from 0 mailboxes
 - ---8---

 Would it make sense to enter the
 above cyr_deliver command from the
 START section into the EVENT section
 or does this make things worse?

I always saw it in the EVENT section (in Kolab and fedora/centos distribution)
Here is the line in my kolab cyrus.conf

  delprune  cmd=cyr_expire -E 3 period=1440


 All this is just combatting the
 symptoms, not the reason. If anyone
 has an idea about what causes this,
 sizing of the hardware, underlying
 filesystem or harddisk technology,
 I'd be thankful for some pointers.

If you are speaking about unavailability at restart time ...
This is probably bacause cyr_expire is reading all maiboxes,
searching for emails to delete, and this _before_ to start the
first service because of the START section.
In the EVENTS you should just get some slowdown.

For your main problem, without more info( log ) , I cannot help you.


 The server itself has to deal with
 about 20k inboxes.

 Thanks and best regards,

 sven03

 Mit freundlichen Gruessen

 i. A. Sven Juergensen

 - --
 Fachbereich
 Informationstechnologie

 KielNET GmbH
 Gesellschaft fuer Kommunikation
 Preusserstr. 1-9, 24105 Kiel

 Telefon : 0431 / 2219-053
 Telefax : 0431 / 2219-005
 E-Mail  : [EMAIL PROTECTED]
 Internet: http://www.kielnet.de

 AS# 25295

 Key fingerprint:
 65B6 90FC 010A 39CE DCA5  336D 9C45 3B7A B02D E132

 221 2.7.0 Error: I can break rules, too. Goodbye.

 Geschaeftsfuehrer Eberhard Schmidt
 HRB 4499 (Amtsgericht Kiel)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.7 (GNU/Linux)

 iD8DBQFHoGg6nEU7erAt4TIRAhIvAJoC7d6rj8hsfcw9r/CZUh4d5Kj1GgCfXtU2
 SddW0Sv5p9o0/3ev+JGFwrM=
 =VBI7
 -END PGP SIGNATURE-
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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

2008-01-30 Thread Alain Spineux
On Jan 30, 2008 11:42 PM, Pascal Gienger [EMAIL PROTECTED] wrote:
 Rudy Gevaert [EMAIL PROTECTED] wrote:

  Hi,
 
  Any anybody who is using cyrus heading to Fosdem (that's in Brussels,
  Belgium)?  http://www.fosdem.org
 

 I would like very much to come but I did not find a registration link on
 the webpage. And  love Brussels *g*

This free, like in free speech, not as in free beer :-)

Choose your talk, find the room and enjoy.



 Pascal
 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: quota check befor sieve script?

2008-01-29 Thread Alain Spineux
On Jan 29, 2008 9:06 AM, Michael Menge
[EMAIL PROTECTED] wrote:
 Hi,

 i don't know if this is a bug or a feature, but it seems that lmtpd
 checks quota befor a e-mail is parsed by the sieve script. This causes
 over quota bounces for
 messages that would have been discarded or redirected.

 Is there a way to only send the over quota bounces if the message hits
 a keep, fileinto or implicite keep action or to accept the email if it
 hits a forward or discarde action and to ignore the keep and fileinto
 actions in case of overquota?

Sieve script need often mail header data to make its check.
This means the mail was already accepted by LMTP when sieve script run.
This means probably no to your question.

Anyway your question is not without interest,
but add such a feature add some problemes like what to do at
each retry of the  SMTP ? Run the same sieve script again and again on the same
piece of mail until the quota let it in?

Regards.


 regards

 Michael Menge

 
 M.Menge Tel.: (49) 7071/29-70316
 Universitaet Tuebingen  Fax.: (49) 7071/29-5912
 Zentrum fuer Datenverarbeitung  mail:
 [EMAIL PROTECTED]
 Waechterstrasse 76
 72074 Tuebingen

 
 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




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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: quota check befor sieve script?

2008-01-29 Thread Alain Spineux
On Jan 29, 2008 3:16 PM, Michael Menge
[EMAIL PROTECTED] wrote:
 Quoting Alain Spineux [EMAIL PROTECTED]:

  On Jan 29, 2008 9:06 AM, Michael Menge
  [EMAIL PROTECTED] wrote:
 
  Is there a way to only send the over quota bounces if the message hits
  a keep, fileinto or implicite keep action or to accept the email if it
  hits a forward or discarde action and to ignore the keep and fileinto
  actions in case of overquota?
 
  Sieve script need often mail header data to make its check.
  This means the mail was already accepted by LMTP when sieve script run.
  This means probably no to your question.

 I havent looked at the LMTP protokoll, but i think it is like the SMTP
 protokoll if I'm correct we can reject a message in the DATA stage,
 after we have recieved the message. A problem may be with messages to
 more then one user.
 The sending server don't know which user caused the over quota.

No because lmtpd return an accept or reject address by address
something like
250 [EMAIL PROTECTED]
250 [EMAIL PROTECTED]
...


 On the other hand there is the option lmtp_strict_quota which means
 that lmtpd knows the size, but as far as i know from SMTP the size is
 not part of the envelope but the data.

 
  Anyway your question is not without interest,
  but add such a feature add some problemes like what to do at
  each retry of the  SMTP ? Run the same sieve script again and again
  on the same
  piece of mail until the quota let it in?

 On, i would only return an 4xx or 5xx error if the message was not discarded
 and not forwarded and if quota was exceeded. This would mean that
 discarded and forwarded messages would be only seen once, and messages
 that would only be stored in a folder may cause an over quota bounce.

 But this may cause that local copies of forwarded messages may be
 lost, as the message would only be forwarded. Same applies to
 discarded messages, but i don't
 see a reason why anyone would discard a mail in one rule and safe it
 in an other.

You must extend sieve with LMTP return code.This is to the script writer
to choose what to do when this append, and witch code to return to LMTP.


 The other way would be to remember all actions to be performed on a
 message and if the message will be stored (fileinto, keep) and the
 quota is exceeded then bounce and perform no action. If the message is
 not stored the message does not exceede the quota and the actions can
 be performed.

If you have forwarded the mail but were not able to deliver it, you
must remember for next LMTP retry to not forward it again !




 
 M.Menge Tel.: (49) 7071/29-70316
 Universitaet Tuebingen  Fax.: (49) 7071/29-5912
 Zentrum fuer Datenverarbeitung  mail:
 [EMAIL PROTECTED]
 Waechterstrasse 76
 72074 Tuebingen




-- 
Alain Spineux
aspineux gmail com
May the sources be with you

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


  1   2   3   >