Re: db-4.0.14

2001-12-05 Thread Amos Gouaux

> On Thu, 6 Dec 2001 10:40:13 +1100,
> Jeremy Howard <[EMAIL PROTECTED]> (jh) writes:

jh> Any great new enhancements? Any experience using it with Cyrus and/or
jh> Postfix?

Not I.  Not yet.  However, I did notice...

+  Support for group commit, to speed up write-intensive
   high-concurrency workloads.

hmmm  could this be a win for Cyrus?  Dunno.

-- 
Amos




Re: db-4.0.14

2001-12-05 Thread Jeremy Howard

> Looks like there's a new release for Berkeley DB
>
Any great new enhancements? Any experience using it with Cyrus and/or
Postfix?





Re: Mailbox Backup

2001-12-05 Thread Matt Kenigson

Mika,

I'm with the folks I'm helping out right now.  All I had to do was restore 
the mailboxes from backup, replace the mailboxes.db with the old one (from 
backup), run ctl_mboxlist -r on it and then do the reconstruct -r for the 
mailbox I was trying to restore.  It worked like a charm!!!

Thanks for pointing me in the right direction.  I really appreciate it.

Matt Kenigson
[EMAIL PROTECTED]

--On Wednesday, December 05, 2001 09:26:22 PM +0200 Mika Iisakkila 
<[EMAIL PROTECTED]> wrote:

> Matt Kenigson wrote:
>> Thanks Mika!!!
>> I'll try it right away.
>
> No problem :-) Once you have the mailbox database in place, remember
> to run 'reconstruct -r user.', it'll finish the job. The -r parameter
> is important, otherwise it'll only handle the top level mailboxes
> (INBOX for each user). It's been a while, but I think I did all this
> with master not running.
>
> --mika






Re: [CYRUS] My folders are gone, Please read!

2001-12-05 Thread Haim Dimermanas

You're second recommendation did the trick, thank you.

I will try to really fix the problem by editing
/var/imap/user/X/Xusername.sub like Jules Agee proposed

Thanks again.

On Wed Dec 05, 2001 at 02:43:46PM -0500, Todd Nemanich ([EMAIL PROTECTED]) wrote:
> I would recommend two things to figure out what's 
> going on. First, under your configdirectory (mine 
> is /var/imap/) create a logs/dudle/ directory. 
> That should let you see the commands being sent 
> back and forth between the client and server while 
> you work on it. I've seen a problem with mozilla 
> where it ignores the seperator specified by the 
> server when sending a sub command, which could be 
> why you are having trouble subscribing to folders 
> under netscape.
>   The second thing I would recommend, is going into 
> your server preferences on your client, and 
> deselect the "show only subscribed folders". This 
> should let you look at all your folders so you can 
> see where your mail actually went.
> 

Haim.

http://dudle.linuxroot.org



Re: login error

2001-12-05 Thread Andreas Amann

On Wed, 5 Dec 2001, Craig Skinner wrote:

>
> when trying to set up a test account by doing:-
> cyradm -user admin localhost imap
> Please enter your password:
> Please enter your password:
> cyradm: cannot authenticate to server with  as admin
>
> when trying to set up a test account by doing:-
> cyradm -user admin -auth login localhost imap
> IMAP Password:
>   Login failed: authentication failure at
> /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm
> line 78
> cyradm: cannot authenticate to server with login as admin
>

... and many more references ;-)

Craig,

sorry, i am not very good in diagnosing (?) problems via email but
probably the following suggestions may help you:

0.)
Check the contents of your logfile after you noticed a failed login.
Didn't see that so far. But see above. ;-)

0b).
In a different mail i've read something about db issues. Did you create
sasldb with the same version of berkley db you've compiled cyrus and sasl
with? Or is it a relict (again ?, sorry for my bad english!) from a
different version? If so, build a new one.
Cyrus and SASL are now built with the same version of db and these libs
are known to the dynamic linker, right?

1.)
Your permissions for /etc/sasldb seem to be ok. read/write for owner
cyrus, read for group and none for the poor rest of the world. But check
the uid/gid your cyrus runs with (/proc). Should be cyrus:mail by default.
Otherwise chown sasldb to cyrus's user id.

2.)
> sasldblistusers
> user: admin realm: aberdeen.chstech.co.uk mech: DIGEST-MD5
> user: admin realm: aberdeen.chstech.co.uk mech: PLAIN
> user: admin realm: aberdeen.chstech.co.uk mech: CRAM-MD5

You use your fqdn as realm. Make new entries for user admin with
the -u option of saslpasswd. The perl programs use your hostname as realm.
-> `saslpasswd -u aberdeen -c admin'.
sasldblistusers should list
[...]
user: admin realm: aberdeen mech: DIGEST-MD5
[...]
then.
Seems to be an issue with cyradm in case the hostname is set to the fqdn.
`hostname` returns aberdeen.chstech.co.uk, i guess, since the login
message of your server shows that.

3.)
> cyradm --user admin plain localhost
> Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
> contains: /usr/lib/perl5/5.6.1/i386-linux
> /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.

> find / -name Shell.pm
> /usr/lib/perl5/5.6.1/Shell.pm
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI/Shell.pm
> /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm
  ^^-- look here
> /usr/local/cyrus-imapd-2.0.16/perl/imap/IMAP/Shell.pm
> /usr/local/cyrus-imapd-2.0.16/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm
  ^^ your build dir? ^^

Your normal perl installation seems to be in /usr/lib/perl5 but the Cyrus
stuff went to /usr/local/lib. Have a look at this dir and copy the
contents that belong to cyrus to the apprpriate locations below
/usr/lib/perl5. That should fix the path problem. Check contents of the
perl rpm to make sure if you want.

4.)
Read man cyradm. It seems you use so many different syntaxes that you
irritate yourself (and me ;-) )


Hope i could add something to the existing confusion ;-)

Best regards,

 --Andreas Amann
[EMAIL PROTECTED]




sasl DB

2001-12-05 Thread Ilya

is it possible NOT to use SASL DB with cyrus?
i want authentication to go through PAM to mysql (as it does now), and not
being put through berkley DB (CRAM and stuff)?
do i need to compile cyrus differently (option?) so it wont use CRAM ?




Re: [CYRUS] My folders are gone, Please read!

2001-12-05 Thread Jules Agee

This is a known bug in the 2.0.15-HIERSEP 
sort-of-proof-of-concept-release, briefly mentioned on the list a couple 
months ago, I think. The problem is triggered by being subscribed to a 
folder that doesn't exist (which actually doesn't contradict RFC 
recommended behavior, IIRC, but is unintuitive). Workaround: edit 
/var/imap/user/X/Xusername.sub and delete any folders that do not 
actually exist in your mailbox.

Haim Dimermanas wrote:

>Hello *,
>
> I have been using Cyrus for a couple of months at work and on my personal
>servers. Everything is documented on my web site at
>http://dudle.linuxroot.org. Just for the record, here is my configuration:
>- Debian 2.2
>- Linux 2.4.10
>- cyrus-imapd-2.0.15-HIERSEP-r2 (the version accepting a "." as part of a
>folder name)
>- db-3.2.9
>- cyrus-sasl-1.5.24.tar.gz
>- Netscape Messenger as my MUA connecting to my server using imap over SSL.
>
> Everything has been working just fine but one day, I decided to move a
>folder into another (I did that many times before and everything was fine)
>using netscape and everything went bezerk. My folders are gone and I can't
>subscribed to any of them except one (named 'Domains'). 
>
> Under Netscape Messenger, I can open the subscription window and I can see
>all my folders. The problem is that if i try to subscribe to them, somehow
>the server won't let me. there are no error message that I could see right
>of the top of my head.
>
> I am so confused and frustrated. I am an active member of FLUX
>(http://www.flux.org), I am actually scheduled to do a talk on setting up
>Postfix and Cyrus to handle mail under Linux. I often see people with
>technical difficulties and I try to help but this time I have no idea what
>is going on. I just want to whole thing to work. If I did not give enough
>details, please feel free to ask. Thanks for the help.
>
>Haim.
>


-- 
Jules Agee
System Administrator
Pacific Coast Feather Co.
[EMAIL PROTECTED]  x284

Private communication between citizens is necessary to ensure the
continued preservation of freedom. For more information, see:
http://www.computerprivacy.org/archive/03171998-5.shtml
http://www.gnupg.org

My public encryption key is available here:
http://keyserver.pgp.com/pks/lookup?op=get&exact=on&search=0x21662FE4






Re: [CYRUS] My folders are gone, Please read!

2001-12-05 Thread Todd Nemanich

I would recommend two things to figure out what's 
going on. First, under your configdirectory (mine 
is /var/imap/) create a logs/dudle/ directory. 
That should let you see the commands being sent 
back and forth between the client and server while 
you work on it. I've seen a problem with mozilla 
where it ignores the seperator specified by the 
server when sending a sub command, which could be 
why you are having trouble subscribing to folders 
under netscape.
The second thing I would recommend, is going into 
your server preferences on your client, and 
deselect the "show only subscribed folders". This 
should let you look at all your folders so you can 
see where your mail actually went.

Haim Dimermanas wrote:

> Hello *,
> 
>  I have been using Cyrus for a couple of months at work and on my personal
> servers. Everything is documented on my web site at
> http://dudle.linuxroot.org. Just for the record, here is my configuration:
> - Debian 2.2
> - Linux 2.4.10
> - cyrus-imapd-2.0.15-HIERSEP-r2 (the version accepting a "." as part of a
> folder name)
> - db-3.2.9
> - cyrus-sasl-1.5.24.tar.gz
> - Netscape Messenger as my MUA connecting to my server using imap over SSL.
> 
>  Everything has been working just fine but one day, I decided to move a
> folder into another (I did that many times before and everything was fine)
> using netscape and everything went bezerk. My folders are gone and I can't
> subscribed to any of them except one (named 'Domains'). 
> 
>  Under Netscape Messenger, I can open the subscription window and I can see
> all my folders. The problem is that if i try to subscribe to them, somehow
> the server won't let me. there are no error message that I could see right
> of the top of my head.
> 
>  I am so confused and frustrated. I am an active member of FLUX
> (http://www.flux.org), I am actually scheduled to do a talk on setting up
> Postfix and Cyrus to handle mail under Linux. I often see people with
> technical difficulties and I try to help but this time I have no idea what
> is going on. I just want to whole thing to work. If I did not give enough
> details, please feel free to ask. Thanks for the help.
> 
> Haim.
> 





Re: [CYRUS] My folders are gone, Please read!

2001-12-05 Thread Simon Loader

Todd Nemanich wrote:
> 
> I would recommend two things to figure out what's
> going on. First, under your configdirectory (mine
> is /var/imap/) create a logs/dudle/ directory.
> That should let you see the commands being sent
> back and forth between the client and server while
> you work on it. I've seen a problem with mozilla
> where it ignores the seperator specified by the
> server when sending a sub command, which could be
> why you are having trouble subscribing to folders
> under netscape.
> The second thing I would recommend, is going into
> your server preferences on your client, and
> deselect the "show only subscribed folders". This
> should let you look at all your folders so you can
> see where your mail actually went.
> 

Also check actual file repository/partation where ever
the files are actully stored to make sure its all there.

run reconstruct (man reconstruct) and see if that fixes things.


-- 
Simon Loader poor unemployed.
http://www.surf.org.uk/ to offer me work,
will do freelance or anything that is going.



[CYRUS] My folders are gone, Please read!

2001-12-05 Thread Haim Dimermanas

Hello *,

 I have been using Cyrus for a couple of months at work and on my personal
servers. Everything is documented on my web site at
http://dudle.linuxroot.org. Just for the record, here is my configuration:
- Debian 2.2
- Linux 2.4.10
- cyrus-imapd-2.0.15-HIERSEP-r2 (the version accepting a "." as part of a
folder name)
- db-3.2.9
- cyrus-sasl-1.5.24.tar.gz
- Netscape Messenger as my MUA connecting to my server using imap over SSL.

 Everything has been working just fine but one day, I decided to move a
folder into another (I did that many times before and everything was fine)
using netscape and everything went bezerk. My folders are gone and I can't
subscribed to any of them except one (named 'Domains'). 

 Under Netscape Messenger, I can open the subscription window and I can see
all my folders. The problem is that if i try to subscribe to them, somehow
the server won't let me. there are no error message that I could see right
of the top of my head.

 I am so confused and frustrated. I am an active member of FLUX
(http://www.flux.org), I am actually scheduled to do a talk on setting up
Postfix and Cyrus to handle mail under Linux. I often see people with
technical difficulties and I try to help but this time I have no idea what
is going on. I just want to whole thing to work. If I did not give enough
details, please feel free to ask. Thanks for the help.

Haim.



[CYRUS] My folders are gone, Please read!

2001-12-05 Thread Haim Dimermanas

Hello *,

 I have been using Cyrus for a couple of months at work and on my personal
servers. Everything is documented on my web site at
http://dudle.linuxroot.org. Just for the record, here is my configuration:
- Debian 2.2
- Linux 2.4.10
- cyrus-imapd-2.0.15-HIERSEP-r2 (the version accepting a "." as part of a
folder name)
- db-3.2.9
- cyrus-sasl-1.5.24.tar.gz
- Netscape Messenger as my MUA connecting to my server using imap over SSL.

 Everything has been working just fine but one day, I decided to move a
folder into another (I did that many times before and everything was fine)
using netscape and everything went bezerk. My folders are gone and I can't
subscribed to any of them except one (named 'Domains'). 

 Under Netscape Messenger, I can open the subscription window and I can see
all my folders. The problem is that if i try to subscribe to them, somehow
the server won't let me. there are no error message that I could see right
of the top of my head.

 I am so confused and frustrated. I am an active member of FLUX
(http://www.flux.org), I am actually scheduled to do a talk on setting up
Postfix and Cyrus to handle mail under Linux. I often see people with
technical difficulties and I try to help but this time I have no idea what
is going on. I just want to whole thing to work. If I did not give enough
details, please feel free to ask. Thanks for the help.

Haim.
-- 
http://dudle.linuxroot.org



Restoring Mailboxes

2001-12-05 Thread Matt Kenigson

I'm trying to restore mail stores, too.  The OS hard drive failed and took
everything but /var with it, so I've still got all of the old files.  How do
I restore all of the mail back to the newly-installed cyrus implementation?

Incidentally, in case this makes any difference:  The old implementation was
compiled from source.  The new implementation was installed from an RPM.

Thanks,

Matt Kenigson

- Original Message -
From: "Tarjei Huse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 8:56 AM
Subject: Re: Mailbox Backup


> Hi,
> > The remaining mailbox data and their contents can be then salvaged from
> > the mail store with 'reconstruct -r user.*' after pulling them from
> > regular backups. Fixing quotas (quota -f) might also be necessary.
> >
> > Cyrus uses the DB3 libraries in a transactional manner, so a backup
> > taken from a running system will not be enough to restore it to
> > a consistent state. After a crash, you can use the DB utilities
> thanks, does this info also apply if you shut down cyrus prior to backup?
> Tarjei
>
>
> 
> Tarjei Huse
> 920 63 413
>
>
>




Re: Mailbox Backup

2001-12-05 Thread Matt Kenigson

If you have not exported the mailboxes (to the tempfile you list, for
example), is there any way to manually rebuild?

My issue is that the OS drive went down, took everything but /var with it.
I've finally reinstalled Cyrus, but now need to get the mailboxes to work
properly.  Any ideas?

Thanks,

Matt Kenigson

- Original Message -
From: "Mika Iisakkila" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 7:39 AM
Subject: Re: Mailbox Backup


> Tarjei Huse wrote:
> > PS: Some people noted that in addition to backing up the /var/imap
> > and /var/spool/imap folders, you need to export some of the .db files to
> > txt. Does anyone want to fill me out on this??
>
> To export mailboxes.db to a text file:
>
> ctl_mboxlist -d > tempfile
>
> To restore it later:
>
> ctl_mboxlist -u < tempfile
>
> (start I-might-be-wrong section:)
> The point in this is that the fine option for rebuilding the master
> mailbox database from scratch (reconstruct -m) DOES NOT WORK for
> some reason in Cyrus 2.0.16, even if it is on the man page.
> Once you screw up the mailboxes.db (or some of the huge files under
> db/*, they are part of the same database), Cyrus has lost knowledge of
> your mailboxes and their ACLs. That's when you'll need the tempfile you
> created above to recreate the mailbox database first.
>
> The remaining mailbox data and their contents can be then salvaged from
> the mail store with 'reconstruct -r user.*' after pulling them from
> regular backups. Fixing quotas (quota -f) might also be necessary.
>
> Cyrus uses the DB3 libraries in a transactional manner, so a backup
> taken from a running system will not be enough to restore it to
> a consistent state. After a crash, you can use the DB utilities
> to "roll back" the events to a previous safe point in time, which is
> saved periodically (the checkpoint events in cyrus.conf you always
> wondered about, but was afraid to ask...). If you want to know more,
> read the gigabyte of fine documentation at www.sleepycat.com :-)
>
> I don't know what should be done with deliver.db and its contents
> (might be safe to just delete before restart?) and whether
> singleinstancestore on or off affects that. Would anyone
> who actually knows this stuff care to comment?
>
> --mika
>




Re: login error

2001-12-05 Thread Craig Skinner



> > & cyradm seems to work now, but same trouble with
imtest.
> > 
> > when trying to set up a test account by doing:-
> > cyradm -user admin localhost imap
> > Please enter your password:
> > Please enter your password:
> > cyradm: cannot authenticate to server with  as admin
> > 
> > when trying to set up a test account by doing:-
> > cyradm -user admin -auth login localhost imap
> > IMAP Password:
> >   Login failed: authentication failure at
> >
/usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm
> > line 78
> > cyradm: cannot authenticate to server with login
as admin


> Did you try
> cyradm -user admin -auth plain localhost
> I recall that worked for me for 2.0.16
> I switched to 2.0.15-HIERPAT-r2
> 


That is an interesting one as it is a mixture of both
the above:-
cyradm -user admin -auth plain localhost
Please enter your password:
IMAP Password:
 Login failed: authentication failure at
/usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm
line 78
cyradm: cannot authenticate to server with plain as admin


> > 
> > Do I have a problem with SASL that is propegating
to here?


It deffinately looks like (to me!) a SASL problem.


Do I need to set up pam.d stuff??

Do I need to configure cram-md5/digest-md5???

imtest says auth=cram-md5/digest-md5

How do I verify that SASL is working as it should??


> > 
> > Thanks in advance..
> > 
> > Craig Skinner, the email beginner  :(


-- 

Get your free email from www.linuxmail.org 


Powered by Outblaze



Re: login error

2001-12-05 Thread Victor

> > > Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
> > > contains: /usr/lib/perl5/5.6.1/i386-linux
> > > /usr/lib/perl5/5.6.1
> > > /usr/lib/perl5/site_perl/5.6.1/i386-linux
> > > /usr/lib/perl5/site_perl/5.6.1
> > > /usr/lib/perl5/site_perl .).
> > > BEGIN failed--compilation aborted.
> > I think there's a solution to this, let see if I
> remember it. Ok, here goes:
> > try to compile cyrus with --with-perl=/usr (if you
> use RH) or go into
> > cyrussrcdir/perl and edit the Makefile so that the
> prefix var = /usr and not
> > /usr/local
> > 
> > If you got perl in a non-standard place, then change
> the prefix accordingly.
> > 
> > Did this help you?
> 
> which perl
> /usr/bin/perl
> 
> I added -I/usr/local/lib/site_perl/5.6.1/i386-linux
> inbetween perl -MCyrus
> As suggeted by Victor & co
> 
> & cyradm seems to work now, but same trouble with imtest.
> 
> when trying to set up a test account by doing:-
> cyradm -user admin localhost imap
> Please enter your password:
> Please enter your password:
> cyradm: cannot authenticate to server with  as admin
> 
> when trying to set up a test account by doing:-
> cyradm -user admin -auth login localhost imap
> IMAP Password:
>   Login failed: authentication failure at
> /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm
> line 78
> cyradm: cannot authenticate to server with login as admin
> 
> I have a Master's in software engineering (OO & Java &
> Databases) but Perl makes no sense to me at all...

Did you try
cyradm -user admin -auth plain localhost
I recall that worked for me for 2.0.16
I switched to 2.0.15-HIERPAT-r2

> Line 78 of Admin.pm reads:-
>   *$AUTOLOAD = sub { &$sub($_[0]->{cyrus}, @_[1..$#_]): };
> 
> Do I have a problem with SASL that is propegating to here?
> 
> Thanks in advance..
> 
> Craig Skinner, the email beginner  :(
> 
> -- 
> 
> Get your free email from www.linuxmail.org 
> 
> 
> Powered by Outblaze




Re: SMTP with Sieve

2001-12-05 Thread Sean Witham

On Tuesday 04 Dec 2001 7:36 pm, you wrote:
> "John C. Amodeo" wrote:
> > Greetings.
> >
> > Is there a way to configure the following line in the imapd.conf
> > file to use an SMTP port instead of the local delivery agent?
> >
> > sendmail:   /usr/sbin/sendmail
> >
> > change to something like:
> >
> > sendmail:   servername.domain
> >

>
> Hmm.  This would require lmtpd to speak [E]SMTP.  There is
> client-side LMTP code in lmtpengine.c which we might be able to use
> for this purpose.  This would eliminate problems with incompatible
> command-line options (IIRC, Postfix doesn't like '-f <>')  I would
> imagine that the option would be something like 'host[:port]'. 
> This way we could talk to a MSA (port 587) as well as a MTA.

You could always use exim instead of postfix. *8-)



Re: login error

2001-12-05 Thread Craig Skinner


> What's your cyrus admin entries in imapd.conf?

cat /etc/imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus admin
allowanonymouslogin: no
umask: 027
timeout: 30
autocreatequota: 20
allowplaintext: yes
plaintextloginpause: 10
singleinstancestore: yes
sieveusehomedir: false
sievedir: /usr/local/sieve
sendmail: /usr/sbin/sendmail
postmaster: postmaster
sasl_pwcheck_method: sasldb
sasl_auto_transition: yes
lmtpsocket: /var/imap/socket/lmtp
idlesocket: /var/imap/socket/idle
notifysocket: /var/imap/socket/notify 

> 
> Have you done saslpasswd   ?

sasldblistusers
user: admin realm: aberdeen.chstech.co.uk mech: DIGEST-MD5
user: admin realm: aberdeen.chstech.co.uk mech: PLAIN
user: admin realm: aberdeen.chstech.co.uk mech: CRAM-MD5


Is there a problem here?

Do I need to add cyrus to sasldb?

Craig Skinner

-- 

Get your free email from www.linuxmail.org 


Powered by Outblaze



Re: login error

2001-12-05 Thread Tarjei Huse

> cyradm: cannot authenticate to server with login as admin

> Do I have a problem with SASL that is propegating to here?
Yes. That is exactly what is happening with the authentication error. 

What's your cyrus admin entries in imapd.conf?

HAve you done saslpasswd   ?

That should work. 

TH


 
> Thanks in advance..
> 
> Craig Skinner, the email beginner  :(
 
> --
> 
> Get your free email from www.linuxmail.org
> 
> Powered by Outblaze



Re: login error

2001-12-05 Thread Craig Skinner

> > Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
> > contains: /usr/lib/perl5/5.6.1/i386-linux
> > /usr/lib/perl5/5.6.1
> > /usr/lib/perl5/site_perl/5.6.1/i386-linux
> > /usr/lib/perl5/site_perl/5.6.1
> > /usr/lib/perl5/site_perl .).
> > BEGIN failed--compilation aborted.
> I think there's a solution to this, let see if I
remember it. Ok, here goes:
> try to compile cyrus with --with-perl=/usr (if you
use RH) or go into
> cyrussrcdir/perl and edit the Makefile so that the
prefix var = /usr and not
> /usr/local
> 
> If you got perl in a non-standard place, then change
the prefix accordingly.
> 
> Did this help you?

which perl
/usr/bin/perl

I added -I/usr/local/lib/site_perl/5.6.1/i386-linux
inbetween perl -MCyrus
As suggeted by Victor & co

& cyradm seems to work now, but same trouble with imtest.

when trying to set up a test account by doing:-
cyradm -user admin localhost imap
Please enter your password:
Please enter your password:
cyradm: cannot authenticate to server with  as admin

when trying to set up a test account by doing:-
cyradm -user admin -auth login localhost imap
IMAP Password:
  Login failed: authentication failure at
/usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm
line 78
cyradm: cannot authenticate to server with login as admin

I have a Master's in software engineering (OO & Java &
Databases) but Perl makes no sense to me at all...

Line 78 of Admin.pm reads:-
  *$AUTOLOAD = sub { &$sub($_[0]->{cyrus}, @_[1..$#_]): };

Do I have a problem with SASL that is propegating to here?

Thanks in advance..

Craig Skinner, the email beginner  :(

-- 

Get your free email from www.linuxmail.org 


Powered by Outblaze



Re: login error

2001-12-05 Thread Tarjei Huse

Ops,just so you remember:
- you most be logged inn as user cyrus (I think)


Craig Skinner wrote:
> 
> > Try this:
> >
> > cyradm --user admin --auth plain localhost
> >
> > It seems that auth method is not set by default and
> crammd5 is tried. This
> > seems to work.
> >
> 
> G'day Victor, I noticed yesterday the we seemed to be
> travelling along the same road at the same time, but
> driving different versions of UNIX.
> 
> I am using the wonderful postfix MTA so sasldb is thus:-
> ls -l /etc/sasldb
> -rw-r-1 cyruspostfix 12288 Dec  3
> 10:32 /etc/sasldb
> 
> Maybe I should chgrp it to mail & add group mail to
> user postfix?
> 
> cyradm --user admin plain localhost
> Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
> contains: /usr/lib/perl5/5.6.1/i386-linux
> /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
> 
> find / -name Shell.pm
> /usr/lib/perl5/5.6.1/Shell.pm
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI/Shell.pm
> /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm
> /usr/local/cyrus-imapd-2.0.16/perl/imap/IMAP/Shell.pm
> /usr/local/cyrus-imapd-2.0.16/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm
> 
> Hmmm
> 
> Is there such a thing as a perl path that needs to be
> set
> 
> I have installed postfix, openssl, sasl & cyrus from
> source in /usr/local.
> 
> --
> 
> Get your free email from www.linuxmail.org
> 
> Powered by Outblaze



Re: login error

2001-12-05 Thread Tarjei Huse

> Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
> contains: /usr/lib/perl5/5.6.1/i386-linux
> /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
I think there's a solution to this, let see if I remember it. Ok, here goes:
try to compile cyrus with --with-perl=/usr (if you use RH) or go into
cyrussrcdir/perl and edit the Makefile so that the prefix var = /usr and not
/usr/local

If you got perl in a non-standard place, then change the prefix accordingly.

Did this help you?