skuran | 1 Dec 2002 20:50
Picon
Favicon

Re: Can't login in cyradm

Did you add the user in sasl database? use " # saslpasswd2 -c cyrus " to add
"cyrus" user to the dababase.

> Hello, first of all, I'm new to cyrus. I'v installed cyrus-imapd-2.1.9
> and cyrus-sasl-2.1.5 on a RedHat 7.3. I start saslauthd with pam
> (saslauthd -a pam) and /etc/pam.d/imap is as follow:
>
> #%PAM-1.0
> # Only via LDAP
> auth       sufficient   /lib/security/pam_ldap.so
> # auth     required     /lib/security/pam_pwdb.so try_first_pass shadow
> account    sufficient   /lib/security/pam_ldap.so
> # account    required   /lib/security/pam_pwdb.so
>
> my /etc/imapd.conf is:
>
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> admins: cyrus
> allowanonymouslogin: no
> autocreatequota: 10000
> sasl_pwcheck_method: saslauthd
> tls_cert_file: /var/imap/server.pem
> tls_key_file: /var/imap/server.pem
>
> When I try to log in cyradm I get:
>
> [root <at> zope root]# su cyrus
> bash-2.05a$ cyradm localhost
> Password:
(Continue reading)

Rob Mueller | 2 Dec 2002 00:43
Gravatar

Automatic content-type insertion

I'm just wondering why cyrus automatically adds a content type charset to
every message, even if none is specified in the message itself. For example:

* 119 FETCH (FLAGS (\Recent \Seen) RFC822 {...}
To: robm <at> fastmail.fm
From: test <at> fastmail.fm
Subject: Nothing much
Message-Id: <20021201233319.9F3BA3E816 <at> server2.fastmail.fm>
Date: Sun,  1 Dec 2002 18:33:19 -0500 (EST)

Just a little text

)
. OK Completed
. fetch 119 bodystructure
* 119 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL
"7BIT" 22 2 NIL NIL NIL))
. OK Completed

So there's no "Content-Type" line in the message, but the bodystructure has
given it an implicit charset of us-ascii. Now, I know that this is
technically true, but unfortunately, there seem to be quite a few broken
iso-2022-jp messages out there which don't actually specify the charset in
the header. What we allow on our site is a 'default charset', which is used
if no charset is available, which would work fine in this situation.
Unfortunately in this case, there's no indication that the ("CHARSET"
"us-ascii") response was auto-generated, rather than explicitly set.

The main solutions I see are:
1. Remove the implicit setting of the charset if none supplied
(Continue reading)

Brasseur Valéry | 2 Dec 2002 09:41

RE: PostgreSQL backend: a waste of time?

> -----Original Message-----
> From: Nuno Silva [mailto:nuno.silva <at> sectium.com]
> Sent: Saturday, November 30, 2002 2:50 AM
> To: Nicola Ranaldo
> Cc: info-cyrus <at> lists.andrew.cmu.edu; Valery.Brasseur <at> atosorigin.com
> Subject: Re: PostgreSQL backend: a waste of time?
> 
> 
> Hello!
> 
> Nicola Ranaldo wrote:
> > I cannot spread sql commands of a unique transaction over 
> multiple pgsql
> > connection, and a connection cannot handle parallel transactions.
> > So if i have 1000 imapd process starting a transaction the 
> mailbox daemon
> > has to open 1000 pgsql connection.
> 
> Reading from the DB should be trivial, right?
> 
> I'm not 100% sure, but I suppose that one can virtualize the 
> connections. What I mean is: imapd (or pop3d or lmtpd...) 
> wants to write 
> something -> ask the daemon and the daemon will choose a free 
> connection 
> and commit those changes. This is the "one operation simple case".
> Some of the DBs that cyrus maintains appear to be this simple (the 
> mailboxes file).
> 
> Other cyrus' DBs seem to require transactions (seen and 
(Continue reading)

Jason Novak | 2 Dec 2002 18:17

Cannot see inbox messages

Hi!

I am extremely new to cyrus and I have the following technology stack.  I'm using Sendmail as an MTA and Cyrus as the POP/IMAP server.  From the Pop side my messages come in perfectly.  I imagine this is being done by copying to /home/$USERNAME/mbox from /var/mail/$USERNAME.  I've tested the IMAP piece by setting up a new account on an IMAP compatible email client and it seems to be connecting.  Ive created and deleted mailboxes and it seems to be ok.  I've even installed SquirrelMail and noticed my newly created mailboxes.  The only problem is I can't see any incoming mail!  There is an inbox but there doesn't appear to be a link to the /var/mail/$USERNAME or /home/$USERNAME/mbox.  I've done some reasearch and noticed that there is a script out there called user2cyrus but apparently I am missing a Base 64 module.

My first question is, am I missing a step in this whole process?  If not, is there some step by step approach to convert my /var/mail/$USERNAMEs manually (There are only about 10)?

I appreciate any help you can provide!  :)

Best Regards,

Jason

Eric.Doutreleau | 2 Dec 2002 22:11
Picon

problem with checkpoint of databases


Hi i m using the following cyrus version

name       : Cyrus IMAPD
version    : v2.1.5 2002/06/24 19:13:27
vendor     : Project Cyrus
support-url: http://asg.web.cmu.edu/cyrus
os         : Linux
os-version : 2.4.18-5
environment: Cyrus SASL 2.1.5
             Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
             OpenSSL 0.9.6b [engine] 9 Jul 2001
             CMU Sieve 2.2
             TCP Wrappers
             lock = flock
             auth = unix
             idle = poll
             mboxlist.db = db3
             subs.db = flat
             seen.db = flat
             duplicate.db = db3-nosync
             tls.db = db3-nosync

and i have from time to time big problems with checkpoint

Indeed for a reason i can't determine the process ctl_cyrusdb -c never
finish.
As this process is launched every 30 minutes i got several dozens 
of that process before becoming aware of that problem.

But the worse happens when i have to restart the server.
Indeed as the checkpoint didn't succeed there were a lot of file
named log.0000000xxx and the server become unavailable a long
time waiting for the command ctl_cyrusdb -r to finish.

it takes around one hour per day of failure of checkpointing to restart.

-Is there a way to speedup that process?

-will the changing the format of the database  help to solve that
problem?

-what could cause the checkpoint to fail?

 
Thanks in advance for any help.

--

-- 
Eric Doutreleau
I.N.T			| Tel	: +33 (0) 160764687
9 rue Charles Fourier	| Fax	: +33 (0) 160764321
91011 Evry   France	| email	: Eric.Doutreleau <at> int-evry.fr

Christian Schulte | 3 Dec 2002 01:10
Picon

Re: Shared folders and virtual domains ?

Ken Murchison wrote:

>Christian Schulte wrote:
>  
>
>>Hi,
>>
>>I am running 2_2 cvs branch with virtual domain support turned on and
>>everything seemd to work fine. I now wanted to move my old installation
>>to the new one and cannot get delivery to shared folders working.
>>If I create a shared folder with cyradm like:
>>
>>$>cm sharedfolder
>>
>>I cannot do
>>
>>$>sam sharedfolder user <at> domain lrswipcda
>>
>>and get
>>
>>setaclmailbox: user <at> domain: lrswipcda: Invalid identifier
>>
>>If I create a shared folder with cyradm like:
>>
>>$>cm sharedfolder <at> domain
>>
>>I can do
>>
>>$>sam sharedfolder <at> domain user <at> domain lrswipcda
>>
>>and the user can subscribe to the folder and sees it on the same level
>>than his inbox as expected. If I now setup sendmail to send via the
>>cyrusv2 mailer with an address like +sharedfolder <at> domain I get the
>>following errors in the logs which I do not understand ! What is wrong
>>here ?
>>
>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 921384 local6.debug] accepted
>>connection
>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 685068 local6.debug] lmtp
>>connection preauth'd as postman
>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 152585 local6.error] couldn't
>>create stage directory: : No such file or directory
>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 519036 local6.error] IOERROR:
>>creating message file 8259-1037325333: No such file or directory
>>Nov 15 02:55:33 mail sendmail[8262]: [ID 801593 mail.info]
>>gAF1rq13008256: to=<+sharedfolder <at> domain>, delay=00:01:41,
>>xdelay=00:00:00, mailer=cyrusv2, pri=210378, relay=localhost, dsn=4.2.0,
>>stat=Deferred: 451 4.3.2 cannot create temporary file: No such file or
>>directory
>>    
>>
>
>Sorry for the delay, but I finally got a chance to look into this. 
>Cyrus isn't the problem here, the problem is that the MTA is stripping
>the domain off of the recipient address when it gets passed to lmtpd.
>
>Try changing the cyrusv2 mailer definition to use:
>
>S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP
>
>  
>
Does not work either! I had

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrToSMTP

in my cyrusv2.m4 file and changing it to

S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP

produces the same error! sendmail delivers correctly to lmtpd, I think:

20776 === CONNECT localhost
20776 <<< 220 XXXXXXXX LMTP Cyrus v2.2.prealpha ready
20776 >>> LHLO XXXXXXXX
20776 <<< 250-XXXXXXX
20776 <<< 250-8BITMIME
20776 <<< 250-ENHANCEDSTATUSCODES
20776 <<< 250-PIPELINING
20776 <<< 250-SIZE
20776 <<< 250-AUTH EXTERNAL
20776 <<< 250 IGNOREQUOTA
20776 >>> MAIL From:<test <at> test.it> SIZE=1076 BODY=8BITMIME
20776 <<< 250 2.1.0 ok
20776 >>> RCPT To:<+sharedfolder <at> domain>
20776 >>> DATA
20776 <<< 250 2.1.5 ok
20776 <<< 451 4.3.2 cannot create temporary file: No such file or directory
20776 >>> QUIT
20776 <<< 221 2.0.0 bye
20776 <<< [EOF]

And the logfile states the same errors ! What makes me a bit confused is 
the error message itself. lmtpd is trying to create a temporary file but 
the error is "No such file or directory". Is it a missing directory or 
wrong permissions on a directory ?

Jonathan Marsden | 3 Dec 2002 02:55

Re: Shared folders and virtual domains ?

On 3 Dec 2002, Christian Schulte writes:

> 20776 >>> MAIL From:<test <at> test.it> SIZE=1076 BODY=8BITMIME
> 20776 <<< 250 2.1.0 ok
> 20776 >>> RCPT To:<+sharedfolder <at> domain>
> 20776 >>> DATA
> 20776 <<< 250 2.1.5 ok
> 20776 <<< 451 4.3.2 cannot create temporary file: No such file or directory

> And the logfile states the same errors !  What makes me a bit
> confused is the error message itself. lmtpd is trying to create a
> temporary file but the error is "No such file or directory". Is it a
> missing directory or wrong permissions on a directory ?

"No such file or directory" is a standard Unix error text for a single
error code, ENOENT, defined in /usr/include/asm/errno.h on my Linux
boxes.  Don't read too much into the "or directory" part if the code
concerned is not trying to work with a directory :-)

I think this issue may be a version of something I tried to report
some weeks back, which someone (Ken? I forget) thought might be
hardware related, and then found a workaround for that was 'good
enough' for me for the moment.

The issue for me was that (based on my experiments) the default domain
should not be passed to LMTP, only the other non-default ones.  Any
other approach generated the error message you are reporting.  I
suspect that had your RCPT TO: line read

> 20776 >>> RCPT To:<+sharedfolder>

it would have been accepted just fine!  I do not know why that is -- I
suspect some form of attempted backward compatibility?

What I did to "fix" this here was a small, quick and slightly ugly
patch to the sendmail sendmail-cf/m4/proto.m4 file, causing it to send
the  <at> domain part of the recipient address on to LMTP for all domains
*except* the default one.  I had every intention of going back and
really figuring out what is going on well enough to report it in a
clear way that makes more sense to the developers at some stage... but
so far I have not found (or made?) time to do so.

In case it helps, here is my patch.  It helped for my situation.

Jonathan
------------------------------------------------------------------------

--- /usr/share/sendmail-cf/m4.orig/proto.m4       Thu Jun 13 11:53:24 2002
+++ /usr/share/sendmail-cf/m4/proto.m4     Thu Oct  3 15:11:10 2002
 <at>  <at>  -1092,8 +1092,10  <at>  <at> 
 dnl $H empty (but  <at> $=w.)
 R< > $+ + $* < $+ >    $#_LOCAL_ $: $1 + $2            plussed name?
 R< > $+ < $+ >         $#_LOCAL_ $:  <at>  $1                       nope, local address',
-`R$=L <  <at>  $=w . >      $#_LOCAL_ $:  <at>  $1                       special local names
-R$+ <  <at>  $=w . >                $#_LOCAL_ $: $1                 regular local name')
+`R$+ <  <at>  $m . >                $#_LOCAL_ $: $1                         regular local name default domain')
+R$+ <  <at>  $j . >         $#_LOCAL_ $: $1                         regular local name default host')
+R$=L <  <at>  $=w . >       $#_LOCAL_ $:  <at>  $1` <at> '$2                  special local names
+R$+ <  <at>  $=w . >                $#_LOCAL_ $: $1` <at> '$2                    regular local name')

 ifdef(`_MAILER_TABLE_', `dnl
 # not local -- try mailer table lookup

------------------------------------------------------------------------
--
Jonathan Marsden       	| Internet: jonathan <at> xc.org	| Making electronic 
1252 Judson Street  	| Phone: +1 (909) 795-3877	| communications work 
Redlands, CA 92374     	| Fax:   +1 (909) 795-0327	| reliably for Christian 
USA            		| http://www.xc.org/jonathan	| missions worldwide 

Simon Matter | 3 Dec 2002 08:21

Re: Cannot see inbox messages

> 
> Hi!
> 
> I am extremely new to cyrus and I have the following technology stack.  I'm using Sendmail as an MTA and Cyrus
as the
> POP/IMAP server.  From the Pop side my messages come in perfectly.  I imagine this is being done by copying to
> /home/$USERNAME/mbox from /var/mail/$USERNAME.  I've tested the IMAP piece by setting up a new account
on an IMAP
> compatible email client and it seems to be connecting.  Ive created and deleted mailboxes and it seems to be
ok.  I've
> even installed SquirrelMail and noticed my newly created mailboxes.  The only problem is I can't see any incoming
> mail!  There is an inbox but there doesn't appear to be a link to the /var/mail/$USERNAME or
/home/$USERNAME/mbox. 
> I've done some reasearch and noticed that there is a script out there called user2cyrus but apparently I am
missing a
> Base 64 module.
> 
> My first question is, am I missing a step in this whole process?  If not, is there some step by step approach to
> convert my /var/mail/$USERNAMEs manually (There are only about 10)?
> 
> I appreciate any help you can provide!  :)
> 
> Best Regards,
> 
> Jason

Cyrus imapd has it's own message store with its own format. It is not
interested in /var/mail/$USERNAME or /home/$USERNAME/mbox. To transfer
mails, there are some tools around which you can use to transfer mails.
IIRC one of them is 'formail'. Check this lists archives for more info.
It has been discussed more than once.

Simon

Nicola Ranaldo | 3 Dec 2002 09:42
Picon
Favicon

Re: PostgreSQL backend: a waste of time?

>I really don't know... This buffer is in the daemon?

This would be in the client.

>Don't you have to receive responses from the SQL DB? Or these commands
>are only writes (UPDATE, INSERT)? If these are only writes it seams a
>good ideia, but if you need to SELECT (inside the transaction) too there
>is the problem of different connections getting different transactions.

We can exec SELECT(s) immediately and store the other commands, i think this
would be safe, cyrus transactions are small and closed in a very local
context, for example: a create mailbox require an insert and some filesystem
operations, if these fail abort the transaction (this is also an example
showing that backends have to support transactions, in this case an
autocommit backend will leave a gangling mailbox!)

>It depends on you user base:
>If your system is a backend for a webmail, for instance, your "users"
>(the php or perl script) will always connect, fetch something,
>disconnect. In this situation you'll never see lots of simultaneous
>connections.

This is my case!

>If you have 50.000 users on a campus setup using IMAP you'll get 5000
>concurrent connection easily.

I do not know if PostgreSQL may scale up to these numbers! we need someone
experienced in this.

Another solution may be to open a connection only when you need it and close
it asap.

Regards

    Nicola Ranaldo

Nicola Ranaldo | 3 Dec 2002 10:20
Picon
Favicon

Re: PostgreSQL backend: a waste of time?

> That being said, I really think that using an RDBMS for the simple
> key/value pairings that cyrus needs is really unnecessary and reeks of "I
> want to use a buzzword" more than being a real solution.
>
> -Rob

Oh! finally a negative response :)
Howewer this solution is *real* for me, I solved all my problems! It is
stable and fast, more then bdb, and I don't know if I can trust skiplist
over alphaserver (now).
But another main reason is that I hold in the same database user passwords
and other accounting informations, imp prefs/addressbook, and all my
sendmail maps (Yes! also virtusertable!). And all these fields are trigger
protected in the RDBMS solution. This gives more flexibility and integration
in my informative service.

I think I am not alone in this!

Best Regards

    Nicola Ranaldo


Gmane