Re: sieve spamassassin

2003-07-01 Thread foobar
Atleast this works (better would be to catch spam_score via regex from the
other header (I don't remember name)):

require
[fileinto];
if
header :contains X-Spam-Flag YES
{
fileinto INBOX.junk;
stop;
}

And remember to activate it :/

And if it is still not working, is this only rule?

Btw, how much I break things if I move script into its place without
uploading it via timsieved (i.e some caching issues or something) or is it
like - copy that script, tell sieve to use it (or is it just that
default which is always in use and possible scripts can be symlinked
without breaking things).

++Titus

On Tue, 1 Jul 2003, Michael Grundmann wrote:

 hi,

 my sievescript look like:

 require [fileinto];
 if header :contains X-Spam-Level: ** {
 fileinto INBOX.junk;
 }

 but the spam-mail would'nt sort in INBOX.junk. any hints?

 michael

 --
 Wenn man keine Vögel mag, ist es völlig in Ordnung, mit Kanonen auf
 Spatzen zu schiessen. [Ratti in suse-linux]






Re: sieve spamassassin

2003-07-01 Thread Torsten Kasch
Hi,

On Tuesday 01 July 2003 06:35, Michael Grundmann wrote:
 hi,

 my sievescript look like:

 require [fileinto];
 if header :contains X-Spam-Level: ** {
   ^
Try removing the colon.

cheers,
Torsten

-- 
   Torsten Kasch   [EMAIL PROTECTED]
Biologie VI/Zentrum für Genomforschung
Universität Bielefeld  Phone: +49 521 106-4828
D-33594 Bielefeld  Fax:   +49 521 106-5626




4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-01 Thread Pascal Gienger
I am using Cyrus IMAP 2.1.12 (Suse Linux package, no source install allowed 
here), and we see some errors from lmtpd saying Virtual memory exhausted.

ulimits are unlimited for every resource (no limit), and there are 4 
Gigabytes of swap used by 5% and 2 Gigabytes of RAM.
System is GNU/Linux 2.4.20-64GB.

Our postfix mailer tries to deliver a message to a local lmtpd (Cyrus 
system) and here is the result:

Jun 30 07:38:43 rauch postfix/lmtp[3129]: EC7FD4400088: 
to=[EMAIL PROTECTED], 
orig_to=[EMAIL PROTECTED], 
relay=/mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp], delay=142730, 
status=deferred (host /mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp] 
said: 421 4.3.0 lmtpd: Virtual memory exhausted (in reply to end of DATA 
command))

Has anybody seen this already? Which memory lmtpd claims to be exhausted?
With no process limits at all?
Pascal
--
Pascal Gienger, Kanzleistrasse 14, D-78462 Konstanz
Postfix+SASL-AUTH+LDAP Solaris 8:   http://pgienger.de/postfix/


´ð¸´: quota warning problem - Is it a bug of cyrus imap?

2003-07-01 Thread Daniel Qian | ???
I think you are right. I tried setting the quota to 4G the warning is
gone. 
But how can I get by this 4G limit?

Best Regards,
Daniel Qian
 


--
???: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ?? Simon
Brady
: 2003?7?1? 10:35
???: Daniel Qian | ???
??: [EMAIL PROTECTED]
??: Re: quota warning problem - Is it a bug of cyrus imap?


On Tue, 1 Jul 2003, [gb2312] Daniel Qian | ǮʡÄÏ wrote:

 I have installed cyrus imap 2.13 recently and it works very well ecept

 when the mailbox data reaches big volume. On a 10G quota for a mailbox

 the server starts warning the outlook user and closes the connection 
 when the used space is just al little over 15% of the quota.  But for 
 small quota the server works fine- it starts the warning at 90% of the

 quota limit. Is there anyone on this list aware of this problem?

I haven't looked at the code, but this sounds like what you'd see if
quota 
math was being done in 32 bits: 10G mod 4G = 2G, and 90% of 2G is 18% of

the original 10G figure.

--
Simon Brady mailto:[EMAIL PROTECTED]
ITS Technical Services
University of Otago, Dunedin, New Zealand







single message store

2003-07-01 Thread Chris Picton
Hi I am running postfix with cyrus and trying to enable single message
store.  It isnt working, though.

In postfix main.cf, I have:
local_destination_concurrency_limit = 20
default_destination_concurrency_limit = 10

In imapd.conf, I have:
singleinstancestore: yes

However, I don't get messages hard linked to each other in
/var/spool/imap.

Where could I be going wrong?

My postfix log for a sample mail says (note that the queue ID is the
same for all, so I am assuming that postfix is sending the same message
to multiple recipients via LMTP):

Jul  1 11:02:29 kerberos postfix/lmtp[7670]: ECC39D4772:
to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
status=sent (250 2.1.5 Ok)
Jul  1 11:02:29 kerberos postfix/lmtp[7472]: ECC39D4772:
to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
status=sent (250 2.1.5 Ok)
Jul  1 11:02:29 kerberos postfix/lmtp[7667]: ECC39D4772:
to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
status=sent (250 2.1.5 Ok)
Jul  1 11:02:29 kerberos postfix/lmtp[7986]: ECC39D4772:
to=[EMAIL PROTECTED],
relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
status=sent (250 2.1.5 Ok)

-- 
-+--
Chris Picton | PGP Key ID: 9D28A988 (wwwkeys.pgp.net)
 Solutions Developer | PGP Key Fingerprint:
 Tangent Systems | 2B46 29EA D530 79EC D9EA 3ED0 229D 6DD6 9D28 A988
[EMAIL PROTECTED] | http://www.tangent.co.za/keys/chrisp.asc
-+--


signature.asc
Description: This is a digitally signed message part


Re: single message store

2003-07-01 Thread lst_hoe
Zitat von Chris Picton [EMAIL PROTECTED]:

 Hi I am running postfix with cyrus and trying to enable single message
 store.  It isnt working, though.

What version of postfix (postconf -d | grep version)

 In postfix main.cf, I have:
 local_destination_concurrency_limit = 20

You should not do that. This means up to 20 concurrent connections for local
submission.

 default_destination_concurrency_limit = 10
 
 In imapd.conf, I have:
 singleinstancestore: yes
 
 However, I don't get messages hard linked to each other in
 /var/spool/imap.
 
 Where could I be going wrong?
 
 My postfix log for a sample mail says (note that the queue ID is the
 same for all, so I am assuming that postfix is sending the same message
 to multiple recipients via LMTP):
 
 Jul  1 11:02:29 kerberos postfix/lmtp[7670]: ECC39D4772:
 to=[EMAIL PROTECTED],
 relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
 status=sent (250 2.1.5 Ok)
 Jul  1 11:02:29 kerberos postfix/lmtp[7472]: ECC39D4772:
 to=[EMAIL PROTECTED],
 relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
 status=sent (250 2.1.5 Ok)
 Jul  1 11:02:29 kerberos postfix/lmtp[7667]: ECC39D4772:
 to=[EMAIL PROTECTED],
 relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
 status=sent (250 2.1.5 Ok)
 Jul  1 11:02:29 kerberos postfix/lmtp[7986]: ECC39D4772:
 to=[EMAIL PROTECTED],
 relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=1,
 status=sent (250 2.1.5 Ok)

You must use a transport map entry and bypass the local delivery. As you can
see at the process-id new ltmp clients are spawned for every deliver.

Regards

Andreas


What to use when no AUTH=

2003-07-01 Thread Patrick Welche
When connecting to imap servers with sasl, I thought the plan was to
parse the capability string and add any AUTH= to the mechlist. This
was fine for cyrus :) and UW, but pointing my code at Courier, I
get

S: * CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES 
SORT
...

Now, I am missing something, because cyrus' imtest connects with no problem.
What mechanism is it using? What is the right thing to do?

Cheers,

Patrick


Re: quota warning problem - Is it a bug of cyrus imap?

2003-07-01 Thread Ken Murchison


Simon Brady wrote:
On Tue, 1 Jul 2003, [gb2312] Daniel Qian :


I have installed cyrus imap 2.13 recently and it works very well ecept
when the mailbox data reaches big volume. On a 10G quota for a mailbox
the server starts warning the outlook user and closes the connection
when the used space is just al little over 15% of the quota.  But for
small quota the server works fine- it starts the warning at 90% of the
quota limit. Is there anyone on this list aware of this problem? 


I haven't looked at the code, but this sounds like what you'd see if quota 
math was being done in 32 bits: 10G mod 4G = 2G, and 90% of 2G is 18% of 
the original 10G figure.
Yup.  See bug #1212.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp


Re: 4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-01 Thread Pascal Gienger
I investigated and found a curiosity:

That user has installed a sieve script to sort mail.
In his script he used the keyword
 keep;

to keep the mail in his INBOX.

This keep is going havoc (virtual memory exhausted).
After replacing keep with 'fileinto INBOX' all things went
well.
Is this a bug in the sieve function of lmtpd?

here the NON WORKING part:

if header :comparator i;ascii-casemap :contains From Muchsel  {
   addflag \\Flagged;
   keep;
}
This sieve code results in 4.3.0 lmtpd: Virtual memory exhausted.
here the WORKING variant:

if header :comparator i;ascii-casemap :contains From Muchsel  {
   addflag \\Flagged;
   fileinto INBOX;
}
Any comments?

Pascal


Re: FAQ How to change a userid

2003-07-01 Thread Paul M Fleming
Easier method.. Get UW imap-util tar and use imapxfer -- does it all for
you.. If you're a kerberos shop it even handles proxy authentication so
an admin doesn't need to know the user's password. 

John Wade wrote:
 
 If anyone is interested, we have a perl script that does the following:
 
 The script will:
 #1) obtain list of mailboxes under the old UI via direct IMAP calls
 #2) create the new mailboxes via direct IMAP calls
 #3) do the recursive copy of mail files from old UID to new UID
 #4) reconstruct new UID mailbox
 #5) get the seen file for the old UID and prep for the new UID
 #6) get the contents of all cyrus.header files for old  new UIDs into
 arrays
 #7) hula-hoop thru seen file stuff; do tricky search and replace
 #9) handle search and replace for old UID to new UID in newUID.sub file
 #10) move any sieve scripts to the new UID
 
 I can't say it is a perfect implementation because it does not try to
 address items 2 or 3 below, but these are not used extensively in our
 environment.
 
 If you would like a copy, email me directly and I will be happy to send it,
 
 John Wade
 
 Rob Siemborski wrote:
 
 On Mon, 30 Jun 2003, twk wrote:
 
 
 
 Then Why Cant I similarly  rename
  'user/username  user/newusername '
 
 
 Because you can't. It's an architectural limitation of Cyrus.
 
 
 
 This isn't true.  Its certainly possible, its just quite laborous to do
 correctly.
 
 
 
 Here is what we do :
 
 - Create a new account (new)
 - cp -r /imap/user/o/old/* /imap/user/n/new
 - reconstruct -r user.new
 - delete old account
 
 I wouldn't consider that particularly laborious.
 
 
 
 Except you haven't renamed the user, you've just renamed the mailbox.
 
 To rename the user you need to also do the following:
 
 1. move the subscriptions, seen state  sieve scripts (ok, this isn't
 hard)
 2. change the ACLs on all the mailboxes so that the old username is
 replaced by the new username (this is quite intensive to do on a large
 mail store)
 3. update the group memberships (since cyrus doesn't control its own
 group memberships, this involves the use of an outside process somehow).
 
 There is an 'allowusermoves' option in 2.2 that does some of this, but (2)
 and (3) just can't be done in any efficient way using the current scheme
 (We have thought about using numberic uids for users, but that would be a
 significant architechural shift).
 
 -Rob
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
 Research Systems Programmer * /usr/contributed Gatekeeper
 
 
 
 


Re: What to use when no AUTH=

2003-07-01 Thread Rob Siemborski
On Tue, 1 Jul 2003, Patrick Welche wrote:

 When connecting to imap servers with sasl, I thought the plan was to
 parse the capability string and add any AUTH= to the mechlist. This
 was fine for cyrus :) and UW, but pointing my code at Courier, I
 get

 S: * CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES 
 SORT
 ...

 Now, I am missing something, because cyrus' imtest connects with no problem.
 What mechanism is it using? What is the right thing to do?

Since I've heard bad things about Courier's standards complicance, I
can't advocate its use in any way.

In this case, though, you have to use the plaintext IMAP LOGIN command
(doesn't imtest show what its doing as you log in?).

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper



Re: quota warning problem - Is it a bug of cyrus imap?

2003-07-01 Thread Rob Siemborski
On Tue, 1 Jul 2003, Simon Brady wrote:

 I haven't looked at the code, but this sounds like what you'd see if quota
 math was being done in 32 bits: 10G mod 4G = 2G, and 90% of 2G is 18% of
 the original 10G figure.

Yup, cyrus doesn't support quotas larger than 32bits at the current time.

This is Bug 1212.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper



Re: What to use when no AUTH=

2003-07-01 Thread Chris Hilts
 S: * CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
 THREAD=REFERENCES SORT

 What mechanism is it using? What is the right thing to do?

The IMAP4 LOGIN command, I'd expect.  When there's no AUTH= offered, I'd
say that's the only thing to do, and pray that you're using SSL/TLS.


-- 
Chris Hilts
[EMAIL PROTECTED]



Re: 4.3.0 lmtpd: Virtual memory exhausted - problem :(

2003-07-01 Thread John Alton Tamplin
Pascal Gienger wrote:

I am using Cyrus IMAP 2.1.12 (Suse Linux package, no source install 
allowed here), and we see some errors from lmtpd saying Virtual 
memory exhausted.

ulimits are unlimited for every resource (no limit), and there are 4 
Gigabytes of swap used by 5% and 2 Gigabytes of RAM.
System is GNU/Linux 2.4.20-64GB.

Our postfix mailer tries to deliver a message to a local lmtpd (Cyrus 
system) and here is the result:

Jun 30 07:38:43 rauch postfix/lmtp[3129]: EC7FD4400088: 
to=[EMAIL PROTECTED], 
orig_to=[EMAIL PROTECTED], 
relay=/mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp], delay=142730, 
status=deferred (host /mail/cyrus/socket/lmtp[/mail/cyrus/socket/lmtp] 
said: 421 4.3.0 lmtpd: Virtual memory exhausted (in reply to end of 
DATA command))

Has anybody seen this already? Which memory lmtpd claims to be exhausted?
With no process limits at all?
What version of DB are you running?  Does this happen immediately or 
only after it has been running a while?  On Solaris 9 with DB 4.1.24-25, 
we had a problem where DB functions would eventually return ENOSPC, 
which might be interpreted as Virtual memory exhausted.  There has 
been a patch posted to Cyrus to fix this problem, but if you can't use a 
source package you might have to downgrade to DB 4.0.14 if this is your 
problem.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931



Re: What to use when no AUTH=

2003-07-01 Thread Patrick Welche
On Tue, Jul 01, 2003 at 10:25:29AM -0400, Rob Siemborski wrote:
 
 Since I've heard bad things about Courier's standards complicance, I
 can't advocate its use in any way.

Don't worry, this is for copying *from* Courier *to* Cyrus :-)

 In this case, though, you have to use the plaintext IMAP LOGIN command
 (doesn't imtest show what its doing as you log in?).

Ah yes..

S: A01 OK AUTHENTICATE completed
from cyrus
S: L01 OK LOGIN Ok.
from courier

Thank you!

Patrick


RE: Debian woody imap

2003-07-01 Thread James Miller
I wouldn't mind upgrading to the testing version of Debian.. but what other
migration pains would be involved?  'Cause I doubt it would be as simple as
changing /etc/apt/sources.list from stable to testing, apt-get update;
dselect update, apt-get -u dist-upgrade... I'm not even sure what version of
cyrus-imap testing is using.  If anyone has any experience please let me
know.


Thank you!!!
Jim

-Original Message-
From: David Chait [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 12:14 PM
To: [EMAIL PROTECTED]
Subject: Re: Debian woody imap


Yes it is, however 1.5.19 is beyond anchient, seriously consider an
upgrade...

- Original Message -
From: James Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 9:32 AM
Subject: Debian woody imap


 Hello all,

 We're running cyrus imap v1.5.19 (Debian woody package) and currently
inetd
 is used to spawn imapd processes for clients to connect.  More and more
 frequently inetd is failing and a restart is needed.  Is it possible to
run
 imapd as a daemon process instead of relying on inetd?


 Thanks,
 Jim









Re: Debian woody imap

2003-07-01 Thread Henrique de Moraes Holschuh
On Tue, 01 Jul 2003, Rob Siemborski wrote:
 On Tue, 1 Jul 2003, James Miller wrote:
  We're running cyrus imap v1.5.19 (Debian woody package) and currently inetd
  is used to spawn imapd processes for clients to connect.  More and more
  frequently inetd is failing and a restart is needed.  Is it possible to run
  imapd as a daemon process instead of relying on inetd?
 
 Not with 1.5.19.
 
 Its really dissapointing that Debian is stuck with 1.5.19 as their
 stable version.

Heh. Shall be dealth with for the next debian stable.   Anyway, I will
ask the 1.5.x maintainer if it would be ok to remove it from Debian stable
(otherwise, we will ship both 1.5 and 2.1).

James, I suggest you get Cyrus 2.1 from http://people.debian.org/~hmh/, you
will be much better off on the long run.

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh


Re: cyradm erros when reconstructing a mailbox

2003-07-01 Thread Ezsra McDonald
Let me go to another account with the same problem.

All af the folders exist. Some are empty and
reconstruct reports an IOERROR when it can't find
cyrus.* in the folders. He has several folders whose
names are made up of multiple words like for example
one is named 'user.randy.Child Development'. It is
also an empty folder. Permisions on all files and
folders are setup for cyrus:mail. 

I can't delete 'user.randy.Child Development'. I get
this error when trying to change the acl:

mailhost lm 'user.randy.Child Development'
user.randy.Child Development (\HasNoChildren)
mailhost setacl 'user.randy.Child Development' cyrus
all
setaclmailbox: cyrus: lrswipcda: System I/O error
mailhost ls -la /var/spool/imap/user/randy/Child*
total 16
drwx--2 cyrusmail 4096 2002-02-11
12:53 .
drwx--   22 cyrusmail12288 2003-07-01
13:38 ..

I am spending too much time on this.
What I would like to do is just remove all references
to both users from the imap databases. Is there a way
to do this. Then I can recreate a clean account and
have the users move their mail over manually.

--Ezsra

--- Patrick Welche [EMAIL PROTECTED] wrote:
 On Mon, Jun 30, 2003 at 01:57:54PM -0700, Ezsra
 McDonald wrote:
  lm user.jessica.*
  
  user.jessica.Adobe (\HasNoChildren)
  user.jessica.BOHA (\HasNoChildren)
 
 And then for each of those, is there a eg
 /var/spool/imap/user/jessica/Adobe ?
 
 (I like the syslog idea.. (add local6.debug 
 /var/log/imapd.log to syslogd.conf etc)
 
 Cheers,
 
 Patrick


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Re: 'Mailbox unknown' unpon LMTP delivery

2003-07-01 Thread Henning Holtschneider
--On Montag, 23. Juni 2003 14:40 +0200 Henning Holtschneider [EMAIL PROTECTED] 
wrote:

I'm running Cyrus IMAP 2.1.13 on top of Postfix. Mail is being delivered
from  Postfix into Cyrus using an LMTP unix socket. My users have email
addresses  like [EMAIL PROTECTED] The login names/mailbox
names are unique  user ids like jdoe123. I created a virtual transport
map in Postfix to map  [EMAIL PROTECTED] to
[EMAIL PROTECTED]. Howerver, incoming  messages can't be delivered to
the mailboxes. Cyrus complains:
I've finally been able to track down the problem to this: the mailboxes are 
being created as user.username which results in a directory user.username 
being created and the mailbox being added to a DB file (as far as I can see 
from the source code). However, lmtpd is looking for user^username (^ 
instead of . as the seperator). Why is Cyrus trying to use another 
seperator when delivering incoming messages?

Regards,

-gninneH-
--
  __ _  ____   Henning Holtschneider
 / /  ___  ___ _/ |/ /__ / /_  [EMAIL PROTECTED]
/ /__/ _ \/ __/ _ `// -_) __/
//\___/\__/\_,_/_/|_/\__/\__/  ...net happens!


Re: cyradm erros when reconstructing a mailbox

2003-07-01 Thread John Alton Tamplin
Ezsra McDonald wrote:

Let me go to another account with the same problem.

All af the folders exist. Some are empty and
reconstruct reports an IOERROR when it can't find
cyrus.* in the folders. He has several folders whose
names are made up of multiple words like for example
one is named 'user.randy.Child Development'. It is
also an empty folder. Permisions on all files and
folders are setup for cyrus:mail. 

If the folders are empty (no cyrus.* files) but still in the mailbox 
list, it sounds like your copy did not move everything over properly or 
else the mailbox db doesn't correspond to the spool files (empty 
directories can be left around when deleting a folder if the folder is 
selected when it is deleted).  Aside from these particular accounts, I 
would be concerned that other things were not copied correctly.

I am spending too much time on this.
What I would like to do is just remove all references
to both users from the imap databases. Is there a way
to do this. Then I can recreate a clean account and
have the users move their mail over manually.
 

With cyrus shut down, do ctl_mboxlist -d file, edit the file, the 
ctl_mboxlist -u file.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931



saslpasswd for batch adds

2003-07-01 Thread joe ritter
Hello,
I am running a large conversion from UW to Cyrus. I
have pretty much followed to a T the excellent doc
at:

http://www.kalamazoolinux.org/projects/awilliam/

However I am noticing that there is no documentation
on adding all these Cyrus users to the sasldb2. What
is the best way to handle this with more than a few
thousand users. I looked at the man page for
saslpasswd2 and it wasn't clear if it was capable of
taking input from a tab delimited user/password file.
We are using auxprop by the way. If anyone can share
their experience or suggestions with this I would
greatly appreciate it.

Thanks

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Someone seen this before ?

2003-07-01 Thread tom
Any friends out there who might know what this can be ?

Jul  1 23:47:18 www-ux saslauthd[595]: pam_mysql: MySQL err Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2)
Jul  1 23:47:18 www-ux saslauthd[595]: AUTHFAIL: user=xxx.domain.com
service=pop realm= [PAM auth error]
Jul  1 23:47:22 www-ux saslauthd[596]: pam_mysql: MySQL err Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2)
Jul  1 23:47:22 www-ux saslauthd[596]: AUTHFAIL: user=yyy.domain.com
service=imap realm= [PAM auth error]
Jul  1 23:47:25 www-ux saslauthd[596]: pam_mysql: MySQL err Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2)

My logs are full of these messages... I have to restart Sasl/Cyrus/MySQL
every second hour to
maintain it in business...

Any ideas ?

[Config]
(Redhat 7.3, Sasl: 2.1.5, Cyrus 2.1.5, MySQL version 3.23.51, build from
source with postfix as MTA)

This config has performed successfully now for over a year, until last night
it suddenly
started to fail... ???

Regards bryntez



Re: saslpasswd for batch adds

2003-07-01 Thread Jonathan Marsden
Joe,

On 1 Jul 2003, joe ritter writes:

 However I am noticing that there is no documentation on adding all
 these Cyrus users to the sasldb2.  What is the best way to handle
 this with more than a few thousand users.  I looked at the man page
 for saslpasswd2 and it wasn't clear if it was capable of taking
 input from a tab delimited user/password file.  We are using auxprop
 by the way.  If anyone can share their experience or suggestions
 with this I would greatly appreciate it.

AFAIK, saslpasswd2 can't use a tab-delimited username/pw file
directly.  However, it is designed for non-interactive use where the
password is piped in on STDIN and the username is passed as a command
line parameter.  Something like:

  echo PASSWORD |saslpasswd2 -p -c username

So, given a tab delimited username/password file, a quick line of Perl
something like 

  (perl -p -e s/^([^\t]+)\t(.*)$/echo '\2' |saslpasswd2 -p -c \1/ passwordlist) |sh

would let you exec saslpasswd2 once per user (note, the above one
liner probably breaks for passwords containing the single quote
character).  How long this would take for many thousands of users is
not something I have any experience with, and the above is not exactly
an optimized approach.  It works for me for a few hundred users.

If your auxprop does something interesting, it may be faster to bypass
saslpasswd2 and create the database entries more directly?

Jonathan
--
Jonathan Marsden| Internet: [EMAIL PROTECTED]   | 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 


RE: cyradm + db_version

2003-07-01 Thread joost Maenen









Oke ...

I give up



Installed new perl 5.8.0 .. did
patch it with DB_File-1.806.tar.

Make test of perl worked fine no errors



Then I tried 

export CYRUS_SRC=/path/to/cyrus-imapd-source-dir]

perl Makefile.PL

make



and then make test gives the logging below ..





make test

PERL_DL_NONLAZY=1
/usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 'blib/lib', 'blib/arch') t/*.t

t/01-imclientCan't
load
'/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/arch/auto/Cyrus/IMAP/IMAP.so'
for module Cyrus::IMAP:
/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/arch/auto/Cyrus/IMAP/IMAP.so:
undefined symbol: db_version at /usr/lib/perl5/5.8.0/i686-linux/DynaLoader.pm
line 229.

at
t/01-imclient.t line 51

Compilation failed
in require at t/01-imclient.t line 51.

BEGIN
failed--compilation aborted at t/01-imclient.t line 51.


t/01-imclientdubious

 Test
returned status 255 (wstat 65280, 0xff00)

t/02-admin...Can't
load '/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/arch/auto/Cyrus/IMAP/IMAP.so'
for module Cyrus::IMAP:
/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/arch/auto/Cyrus/IMAP/IMAP.so:
undefined symbol: db_version at
/usr/lib/perl5/5.8.0/i686-linux/DynaLoader.pm line 229.

at
/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/lib/Cyrus/IMAP/Admin.pm line
44

Compilation failed
in require at
/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/lib/Cyrus/IMAP/Admin.pm line
44.

BEGIN
failed--compilation aborted at
/home/joost/cyrus-imapd-2.2.0-ALPHA/perl/imap/blib/lib/Cyrus/IMAP/Admin.pm line
44.

Compilation failed
in require at t/02-admin.t line 51.

BEGIN
failed--compilation aborted at t/02-admin.t line 51.


t/02-admin...dubious

 Test
returned status 255 (wstat 65280, 0xff00)

FAILED--2 test
scripts could be run, alas--no output ever seen

make: *** [test_dynamic]
Error 2

 



any ideas ??



-Original
Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 01, 2003 7:52 AM
To: joost Maenen
Subject: Re: cyradm + db_version





I have installed cyrus 2.2
alpha edition, cyrus-sasl-2.1.13 and Berkeley 4.1 and the older Berkeley db 3 .





Everything compiles fine and
also during installation everything goes oke . 

But after install when trying
to run cyradm I get an error that the perl module Cyrus::Imap has a problem
with the db_version and therefore
cant load a module. 

I did find a old mail on the
archives that it hat something to do with the different db version of Berkeley but couldnt find the solution yet 



cyradm is
just a Perl front-end for Perl package Cyrus::IMAP::Admin. It is yourPerl
complaining, most likely, it was built with a different version of BDB than
your Cyrus Perl package.



Nix.










Re: Debian woody imap

2003-07-01 Thread Rob Siemborski
On Tue, 1 Jul 2003, James Miller wrote:

 We're running cyrus imap v1.5.19 (Debian woody package) and currently inetd
 is used to spawn imapd processes for clients to connect.  More and more
 frequently inetd is failing and a restart is needed.  Is it possible to run
 imapd as a daemon process instead of relying on inetd?

Not with 1.5.19.

Its really dissapointing that Debian is stuck with 1.5.19 as their
stable version.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper



Re: FAQ How to change a userid

2003-07-01 Thread John Wade




This sounds appealing, do you know if it handle seen state and subscriptions
properly?  (Since UW does not support sieve, you would probably have to
do sieve manually, but that shouldn't be too bad.)  How about specifying
the partition?

I wasn't incredible pleased with our script because it is directly manipulating
the file system, but we were trying to come up with something that would
be complete. 

John

Paul M Fleming wrote:

  Easier method.. Get UW imap-util tar and use imapxfer -- does it all for
you.. If you're a kerberos shop it even handles proxy authentication so
an admin doesn't need to know the user's password. 

John Wade wrote:
  
  
If anyone is interested, we have a perl script that does the following:

The script will:
#1) obtain list of mailboxes under the old UI via direct IMAP calls
#2) create the new mailboxes via direct IMAP calls
#3) do the recursive copy of mail files from old UID to new UID
#4) reconstruct new UID mailbox
#5) get the seen file for the old UID and prep for the new UID
#6) get the contents of all cyrus.header files for old  new UIDs into
arrays
#7) hula-hoop thru seen file stuff; do tricky search and replace
#9) handle search and replace for old UID to new UID in newUID.sub file
#10) move any sieve scripts to the new UID

I can't say it is a perfect implementation because it does not try to
address items 2 or 3 below, but these are not used extensively in our
environment.

If you would like a copy, email me directly and I will be happy to send it,

John Wade

Rob Siemborski wrote:



  On Mon, 30 Jun 2003, twk wrote:



  
  

  Then Why Cant I similarly  rename
'user/username  user/newusername '


  

Because you can't. It's an architectural limitation of Cyrus.



  
  This isn't true.  Its certainly possible, its just quite laborous to do
correctly.



  
  
Here is what we do :

- Create a new account (new)
- cp -r /imap/user/o/old/* /imap/user/n/new
- reconstruct -r user.new
- delete old account

I wouldn't consider that particularly laborious.



  
  Except you haven't renamed the user, you've just renamed the mailbox.

To rename the user you need to also do the following:

1. move the subscriptions, seen state  sieve scripts (ok, this isn't
hard)
2. change the ACLs on all the mailboxes so that the old username is
replaced by the new username (this is quite intensive to do on a large
mail store)
3. update the group memberships (since cyrus doesn't control its own
group memberships, this involves the use of an outside process somehow).

There is an 'allowusermoves' option in 2.2 that does some of this, but (2)
and (3) just can't be done in any efficient way using the current scheme
(We have thought about using numberic uids for users, but that would be a
significant architechural shift).

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper




  

  
  
  






Re: 'Mailbox unknown' unpon LMTP delivery

2003-07-01 Thread Mark Keasling
Hi,

It seems odd that lmtpd would be looking for user^username...

What is the unixhierarchysep setting in your imapd.conf file?
A setting of yes means '/' is the hierarchy separator rather than '.'.

When the separator has been set to '/', dot '.' characters in mailbox
names are mapped to caret '^' and user mailbox must be created as
user/username.

On Tue, 01 Jul 2003 21:39:55 +0200, Henning Holtschneider [EMAIL PROTECTED] wrote...
 --On Montag, 23. Juni 2003 14:40 +0200 Henning Holtschneider [EMAIL PROTECTED] 
 wrote:
 
  I'm running Cyrus IMAP 2.1.13 on top of Postfix. Mail is being delivered
  from  Postfix into Cyrus using an LMTP unix socket. My users have email
  addresses  like [EMAIL PROTECTED] The login names/mailbox
  names are unique  user ids like jdoe123. I created a virtual transport
  map in Postfix to map  [EMAIL PROTECTED] to
  [EMAIL PROTECTED]. Howerver, incoming  messages can't be delivered to
  the mailboxes. Cyrus complains:
 
 I've finally been able to track down the problem to this: the mailboxes are 
 being created as user.username which results in a directory user.username 
 being created and the mailbox being added to a DB file (as far as I can see 
 from the source code). However, lmtpd is looking for user^username (^ 
 instead of . as the seperator). Why is Cyrus trying to use another 
 seperator when delivering incoming messages?
 
 Regards,
 
  -gninneH-
 --
__ _  ____   Henning Holtschneider
   / /  ___  ___ _/ |/ /__ / /_  [EMAIL PROTECTED]
  / /__/ _ \/ __/ _ `// -_) __/
 //\___/\__/\_,_/_/|_/\__/\__/  ...net happens!


Good Hunting,
Mark Keasling [EMAIL PROTECTED]



Debian woody imap

2003-07-01 Thread James Miller
Hello all,

We're running cyrus imap v1.5.19 (Debian woody package) and currently inetd
is used to spawn imapd processes for clients to connect.  More and more
frequently inetd is failing and a restart is needed.  Is it possible to run
imapd as a daemon process instead of relying on inetd?


Thanks,
Jim