[lance: number of messages in folder view]

2001-10-28 Thread Lance Hoffmeyer

I am using a imap server and I am trying get the
total number number of messages to show up when
I view the folder list.  I can see the number of
new messages but not the total number.  What
do I put in my folder_format statement to have this
show up?

Lance





bare newline errors, many Qf files in /var/spool/mqueue

2001-10-28 Thread Leslie Carroll


Hello,

We are running sendmail 8.11.6 and using cyrus 2.0.16 as the delivery agent.
User mailboxes are under quota.

We are getting a number of "bare newline" error messages. The error messages
look like this:

 ... while talking to localhost:
>>> DATA
<<< 554 5.6.0 Message contains bare newlines
554 5.0.0 Service unavailable

Then the control file in /var/spool/mqueue is renamed from qf* to Qf*.  Then
the same mail item reappears in the mailq.  Every time the mailq processed,
another Qf* file is created. The email does not look abnormal.  I read
that cyrus requires carriage returns before line feeds.  It seems crazy that
the mail clients or users might be inadvertently introducing something that
is causing this. We never had this problem before we began using cyrus as
our mail delivery agent.  Any ideas?

And here is another problem, similar in that Qf* files are stacking up.
This also appeared when we began using cyrus as our mail delivery agent.
External user A sends mail to our user B.  User B is over quota and we have
configured cyrus to immediately bounce such messages back to external user A,
but A either doesn't exist or the message size is too large so the external
site bounces the bounce back.  It gets removed from the mailq and the qf*
control file turns into a Qf* file which stays in /var/spool/mqueue.
Shouldn't such bounces messages be sent to postmaster? Is there a way to
alter the behavior so don't have to constantly clean /var/spool/mqueue?

Thank you,
Leslie Carroll

UNIX System Administrator
The University at Albany
[EMAIL PROTECTED]




上班中、下班後無聊嗎?04a 幽默王

2001-10-28 Thread 04a

http://job.04a.com.tw/ 
¹s¥¢·~¨D¾ºô¡ö®É¾÷¤£¦n¡Aºô¸ô¤u§@»´ÃP§ä

http://joke.04a.com.tw/ 
«ÕÀq¤ý¡ö¬F§½¤£Ã­¡B¤ß±¡¤£¦n¡A¸Ñ¼~¡B¸Ñ´e

http://vote.04a.com.tw/ ²¼¿ï¤¤¤ß¡ö¥[¤J·|­û±z´N¥i¥HÀH·N¼W¥[§ë²¼¸ÜÃD


SASL-LDAP Patch = Ahhh!

2001-10-28 Thread Lee Hoffman
Title: SASL-LDAP Patch = Ahhh!






Hey All,

So Im trying to compile Cyrus-sasl with the SASL-Auth-LDAP patch (http://sourceforge.net/projects/cyrus-utils/) and cyrus-sasl 1.5.24.

I untar everything and run:

patch -p1 < sasl-ldap+mysql.patch

autoheader 

autoconf

automake -i

export CPPFLAGS=-I/usr/local/BerkeleyDB.3.3/include

export LDFLAGS=-L/usr/local/BerkeleyDB.3.3/lib

./configure --with-ldap=/usr/local/lib 

make 

make install

Everything goes without a hitch. Then I try to run cyradm myserver.mydomain.com and enter the root user’s password from the ldap directory and then I get the following error:

IMAP Password: 

  Login failed: ldap_basedn not defined at /usr/local/lib/site_perl/i386-linux/Cyrus/IMAP/Admin.pm line 78

cyradm: cannot authenticate to server with  as root

and the following is printed to the auth log:

Oct 24 19:53:43 servername imapd[6199]: unable to open Berkeley db /etc/sasldb: Unknown error 4294936307

Oct 24 19:53:43 servername imapd[6199]: unable to open Berkeley db /etc/sasldb: Unknown error 4294936307

Oct 24 19:53:43 servername imapd[6199]: unable to open Berkeley db /etc/sasldb: Unknown error 4294936307

Oct 24 19:53:43 servername imapd[6199]: unable to open Berkeley db /etc/sasldb: Unknown error 4294936307

Oct 24 19:53:43 servername imapd[6199]: unable to open Berkeley db /etc/sasldb: Unknown error 4294936307

Oct 24 19:53:43 servername imapd[6199]: unable to open Berkeley db /etc/sasldb: Unknown error 4294936307


Please help! Ive been working on this for over a month, and have been getting nowhere.

Thanks in advance,

Lee




Re: SASL LDAP patch - way to specify multiple servers?

2001-10-28 Thread Tarjei Huse

There's dns capability to combine roundrobin querys with a "servicename" I
think. Thus you can point to "ldapserver" and the dns will send your query to
the server that's up and running. I never tried it myself, but you'll find it at 
www.bayour.com in the ldap-kerberos howto :=)
Tarjei

"Kevin M. Myer" wrote:
> 
> Hello,
> 
> I'm using the patch that allows LDAP authentication with the SASL libraries.  Is
> there a way to specify multiple servers to bind to so that in the event that a
> directory server becomes unavailable, a backup could be used?
> 
> Short of that, what are folks doing in terms of high-availiblity/redundancy for
> LDAP?  I've thought through scenarios of using heartbeat to determine which
> machines are up and updating DNS accordingly.  I also suppose you could do
> something with a virtual IP address in a similar manner and actually get some
> load balanacing out of it too but haven't a clue where to start with that.
> 
> So what are you doing with LDAP to make sure its available all the time?
> 
> THis also spills over into postfix for the same reasons:  if the main directory
> server goes down, mail will start to bounce since my virtual maps are in LDAP.
> 
> Any thoughts or suggestions would be greatly appreciated.
> 
> Kevin
> 
> --
> Kevin M. Myer
> Systems Administrator
> Lancaster-Lebanon Intermediate Unit 13
> (717) 560-6140



Re: SASL LDAP patch - way to specify multiple servers?

2001-10-28 Thread Bernard Frit

At 13:29 24/10/01 -0400, Kevin M. Myer wrote:

>Short of that, what are folks doing in terms of 
>high-availiblity/redundancy for
>LDAP?  I've thought through scenarios of using heartbeat to determine which
>machines are up and updating DNS accordingly.  I also suppose you could do
>something with a virtual IP address in a similar manner and actually get some
>load balanacing out of it too but haven't a clue where to start with that.

IMHO using hearbeat is the simplest solution.

It will handle ip addresses takeover and could also handle
switch update. No need to worry about the DNS.

Just go to linux-ha.org and follow the Getting Started document.
--
Bernard FRIT




cyrus sasl

2001-10-28 Thread Brett Lomas

Hi,

I am not sure if this is the correct place for this

Where/who can I make suggestions to about changes to the cyrus sasl 
library. I have modified it a small amount for specific use for my work, 
and they think it would be good to include in the original source.

Cheers

Brett




Kindly disregard

2001-10-28 Thread Peter Matulis





Strange IMAP Problem

2001-10-28 Thread Andrew Myers



Greetings,
 
I'm all out of ideas, and hoping that someone on 
this mailing list can help me.
 
After reading the book Managing IMAP, I 
decided to give Cyrus IMAP a try.  So I set up a Linux box with Redhat 7.1, 
downloaded and installed Postfix (20010228-pl04), and downloaded and installed 
Cyrus IMAP (1.5.19).  I have Postfix configured to use the Cyrus deliver 
program as the MDA, and everything appeared to be working correctly.  That 
is I can send and receive emails using several IMAP clients (Netscape, Eudora, 
and Outlook).  However, the moment I create 
an additional mailbox under a user's mail directory, problems with the 
cyrus.seen files begin to crop up.  
 
Specifically, I create a user.amyers mailbox 
using the cyradm utility.  I am then able to access mail, and the IMAP 
server maintains the cyrus.seen file without difficulty.  
 
bash-2.04$ ls -lR amyers amyers:total 
88-rw-rw    1 cyrus    
mail  652 Oct 25 20:01 
235.-rw-rw    1 cyrus    
mail 1285 Oct 25 21:01 
251.-rw-rw    1 cyrus    
mail 4813 Oct 26 14:01 
360.-rw-rw    1 cyrus    
mail 1402 Oct 26 15:01 
461.-rw-rw    1 cyrus    
mail 4467 Oct 26 16:01 
565.-rw-rw    1 cyrus    
mail 1421 Oct 26 16:06 
566.-rw-rw    1 cyrus    
mail    11741 Oct 26 16:07 
567.-rw-rw    1 cyrus    
mail 1787 Oct 26 16:09 
568.-rw-rw    1 cyrus    
mail    11010 Oct 26 16:09 
569.-rw-rw    1 cyrus    
mail 5030 Oct 26 16:12 
570.-rw-rw    1 cyrus    
mail 7144 Oct 26 16:12 
cyrus.cache-rw-rw    1 cyrus    
mail  135 Oct 26 15:27 
cyrus.header-rw-rw    1 cyrus    
mail  564 Oct 26 16:12 
cyrus.index-rw-rw    1 cyrus    
mail  180 Oct 26 16:28 
cyrus.seen
 
I then create a user.amyers.temp mailbox, and the 
cyrus.seen files are no longer maintained properly.  The system creates cyrus.seen.NEW files which differ from the 
cyrus.seen files.  From this point on, each time I move from one mailbox to 
the next the message status is not preserved and the mail client continuously 
complains that the mailboxes are not synchronized.  When I synchronize the 
mailboxes, every message reverts to an unread status.
 
bash-2.04$ ls -lR amyersamyers:total 
96-rw-rw    1 cyrus    
mail  652 Oct 25 20:01 
235.-rw-rw    1 cyrus    
mail 1285 Oct 25 21:01 
251.-rw-rw    1 cyrus    
mail 4813 Oct 26 14:01 
360.-rw-rw    1 cyrus    
mail 1402 Oct 26 15:01 
461.-rw-rw    1 cyrus    
mail 4467 Oct 26 16:01 
565.-rw-rw    1 cyrus    
mail 1421 Oct 26 16:06 
566.-rw-rw    1 cyrus    
mail    11741 Oct 26 16:07 
567.-rw-rw    1 cyrus    
mail 1787 Oct 26 16:09 
568.-rw-rw    1 cyrus    
mail    11010 Oct 26 16:09 
569.-rw-rw    2 cyrus    
mail 5030 Oct 26 16:12 
570.-rw-rw    1 cyrus    
mail 7144 Oct 26 16:12 
cyrus.cache-rw-rw    1 cyrus    
mail  135 Oct 26 15:27 
cyrus.header-rw-rw    1 cyrus    
mail  564 Oct 26 16:12 
cyrus.index-rw-rw    1 cyrus    
mail  180 Oct 26 16:31 
cyrus.seen-rw-rw    1 cyrus    
mail  240 Oct 26 16:31 
cyrus.seen.NEWdrwxrwx---    2 cyrus    
mail 4096 Oct 26 16:31 
temp
 
amyers/temp:total 
20-rw-rw    2 cyrus    
mail 5030 Oct 26 16:12 
1.-rw-rw    1 cyrus    
mail 1064 Oct 26 16:31 
cyrus.cache-rw-rw    1 cyrus    
mail  135 Oct 26 16:31 
cyrus.header-rw-rw    1 cyrus    
mail   96 Oct 26 16:31 
cyrus.index-rw-rw    1 cyrus    
mail    0 Oct 26 
16:31 cyrus.seen-rw-rw    1 cyrus    
mail    0 Oct 26 
16:31 cyrus.seen.NEW
 
If I delete the temp mailbox and overwrite 
cyrus.seen with cyrus.seen.NEW, everything goes back to normal!
 
bash-2.04$ ls -lR amyers/amyers/:total 
88-rw-rw    1 cyrus    
mail  652 Oct 25 20:01 
235.-rw-rw    1 cyrus    
mail 1285 Oct 25 21:01 
251.-rw-rw    1 cyrus    
mail 4813 Oct 26 14:01 
360.-rw-rw    1 cyrus    
mail 1402 Oct 26 15:01 
461.-rw-rw    1 cyrus    
mail 4467 Oct 26 16:01 
565.-rw-rw    1 cyrus    
mail 1421 Oct 26 16:06 
566.-rw-rw    1 cyrus    
mail    11741 Oct 26 16:07 
567.-rw-rw    1 cyrus    
mail 1787 Oct 26 16:09 
568.-rw-rw    1 cyrus    
mail    11010 Oct 26 16:09 
569.-rw-rw    1 cyrus    
mail 5030 Oct 26 16:12 
570.-rw-rw    1 cyrus    
mail 7144 Oct 26 16:12 
cyrus.cache-rw-rw    1 cyrus    
mail  135 Oct 26 15:27 
cyrus.header-rw-rw    1 cyrus    
mail  564 Oct 26 16:12 
cyrus.index-rw-rw    1 cyrus    
mail  240 Oct 26 16:36 
cyrus.seen
 
Has anybody run into this problem before?  I 
tried to search the archives of this mailing list, but I could not find any 
reference to such a problem.  The web site http://multivac.fatb

Re: cyrus failover and reconstruct

2001-10-28 Thread Klaus Jaehne


On Tue, 23 Oct 2001, Greg Hewett wrote:
> My experience has been that cyrus fails over pretty clean.  Depending
> on the number of users, it might not make sense to reconstuct the
> databases at a time of fail over.

OK, thanks for the information - I've got some more questions:
- "fails over pretty clean": Did you have any trouble with failover yet?
- What failover software do you use?
- Could it happen that DB3 files (like /var/imap/mailboxes.db) get 
destroyed when a server crashes and these files are open for writing?

btw: What about a "redundant-Cyrus-server-setup-HOWTO"?

-- 
geetings,
Klaus Jähne

Thinking Objects Software GmbH,  Lilienthalstr. 2,  70825 Stuttgart,  DE
phone 49 711 88770 400, fax 449, [EMAIL PROTECTED], http://www.to.com/

  Linux without limits: http://linux.s390.org/ 





Ok the db's are ok. still I am having problems

2001-10-28 Thread dino . puller

hi,
  As you can see by the object, i've a "death by 11" and my libdb is ok. I've 
read the FAQ at http://cyrus-utils.sourceforge.net/faq/install/deathby11.php
(Thanks guys, but you should make it more easy to find :) ) and i know there 
is a bug into the software and i need a workaround. Obviusly my situation is:
my client -> imap -> sasl -> pam-ldap  -> sasl -> openldap, but i want to 
append Active Directory validation of my password. Skipping pam-ldap is a good 
thing, but with a sasl patch is there the possibility for me to access to 
Actice Directory? Any infos? 

tnx,
  Dino



Re: cyrus failover and reconstruct

2001-10-28 Thread Greg Hewett

See Comments Inline:

Greg

On Fri, Oct 26, 2001 at 12:13:21PM +0200, Klaus Jaehne wrote:
> 
> On Tue, 23 Oct 2001, Greg Hewett wrote:
> > My experience has been that cyrus fails over pretty clean.  Depending
> > on the number of users, it might not make sense to reconstuct the
> > databases at a time of fail over.
> 
> OK, thanks for the information - I've got some more questions:
> - "fails over pretty clean": Did you have any trouble with failover yet?

Well, the reason that I say pretty clean is because I have not failed over a
box of 15,000 users on 2.0.x.  I am still in the lab with this concept.  We do
have a deployment of 1.6.x with 20,000 users (two instances in a four node
cluster) that does not deal with corrupt databases, and it has only had 9
minutes of downtime in the last three years.  I am not sure how many hard
failovers that consisted of.

In short, I have not experienced any problems, but I cannot guarentee that it
will not happen.

My advice is to make sure that you have a place to test the solution.  Even if
it is one machine, load it up with data, and start turning it off and back on
over and over and over. ;)


> - What failover software do you use?

Veritas Cluster Server 1.3.0.  It is probably the easiest solution.  It is
definately not the cheapest.

> - Could it happen that DB3 files (like /var/imap/mailboxes.db) get 
> destroyed when a server crashes and these files are open for writing?

I am sure they can, but I am not familiar enough with the details of sleepcat
db to answer this question definativly.  With HA Solutions, I think that you
have to balance the costs of downtime versus the time that you take to do the
paranoid checks of the database.  I would like to investigate more on how
different corrupts affect users.


Some applications do not fit well into the HA arena.  I am dealing with an app
right now, that will consistantly get a corrupt database, and it can take up
to 10 minutes with 7 users to rebuild and fix the databases.  IMHO, that is
unacceptable.  This application is going through some changes, so I hope they
get it right on the next version.  I do believe that cyrus does fit very well
in the HA arena. 


> 
> btw: What about a "redundant-Cyrus-server-setup-HOWTO"?

That would be a great idea.  I will see what I can contribute.

> 
> -- 
>   geetings,
>   Klaus J?hne
> 
> Thinking Objects Software GmbH,  Lilienthalstr. 2,  70825 Stuttgart,  DE
> phone 49 711 88770 400, fax 449, [EMAIL PROTECTED], http://www.to.com/
> 
>   Linux without limits: http://linux.s390.org/ 
> 
> 



Problem with ipurge

2001-10-28 Thread Dave McCracken


In my mail setup I re-route my high volume mailing lists to separate
folders, then rely on ipurge to prune them.  I upgraded to Cyrus imap
2.0.16 awhile back, and over time noticed that some mail appears to be
getting deleted before the 2 week expiration I specified.  In fact, I've
seen a folder with over 100 unread messages that arrived overnight get
reduced to 50 unread messages.

I'm guessing this means something in ipurge or the server is getting the
timestamp wrong for the messages.  Has anyone else seen this?

I'm running Debian unstable with kernel 2.4.9, in case this matters.

Dave McCracken

==
Dave McCracken  IBM Linux Base Kernel Team  1-512-838-3059
[EMAIL PROTECTED]T/L   678-3059




Question about using noatime fs option

2001-10-28 Thread Shawn Sivy

Has anyone using Solaris (or other OS's??) tried specifying the
"noatime" mount option on filesystems containing the various components
of the cyrus system?  Does it save any significant IO by not having to
update the access time on the inodes?  Does anyone know of any problems
specifying this?

Similar question regarding ufs logging under Solaris 8.  Any performance

benefits?

  -Shawn Sivy
   The College of New Jersey






Re: SASL LDAP patch - way to specify multiple servers?

2001-10-28 Thread John Wade

Hi Kevin,

Most of the LDAP libraries (for sure OpenLDAP which is what we are using) allow 
you to specify multiple redundant LDAP servers in the list separated by spaces.  
This works in a failover configuration.  If a query to the first times out, it 
goes to the second, then the third, etc.   We actually use three entries, "ldap 
ldap1 ldap2".  ldap itself is set up in dns to round robin to the ip's of ldap1 
and ldap2.   This gives us load balancing and failover (albeit at a pretty long 
timeout interval if ldap1 is down and the dns round robin gives the ip address 
for ldap1.

Hope this helps,
John Wade 

Quoting "Kevin M. Myer" <[EMAIL PROTECTED]>:

> Hello,
> 
> I'm using the patch that allows LDAP authentication with the SASL
> libraries.  Is
> there a way to specify multiple servers to bind to so that in the event
> that a
> directory server becomes unavailable, a backup could be used?
> 
> Short of that, what are folks doing in terms of
> high-availiblity/redundancy for
> LDAP?  I've thought through scenarios of using heartbeat to determine
> which
> machines are up and updating DNS accordingly.  I also suppose you could
> do
> something with a virtual IP address in a similar manner and actually get
> some
> load balanacing out of it too but haven't a clue where to start with
> that.
> 
> So what are you doing with LDAP to make sure its available all the
> time?
> 
> THis also spills over into postfix for the same reasons:  if the main
> directory
> server goes down, mail will start to bounce since my virtual maps are in
> LDAP.
> 
> Any thoughts or suggestions would be greatly appreciated.
> 
> Kevin
> 
> -- 
> Kevin M. Myer
> Systems Administrator
> Lancaster-Lebanon Intermediate Unit 13
> (717) 560-6140
> 
> 
> 
> 
> 
> 



John Wade
Director of Systems and Network Services
Oakton Community College
Des Plaines, IL 60016
847-635-2602



Web based administration tool - update

2001-10-28 Thread Norbert Sendetzky

Hi folks

I made a new version of my administration tool available yesterday. 
All the basic functionality is already there and it's now considered 
to be in beta stage. If you are interested in using it, I look at

http://www.linuxnetworks.de/enterprise/general/index.html

for features, download and configuration documentation.
Please send comments and bug reports :-)


Norbert



reconstruct -r user.something broke?

2001-10-28 Thread Amos Gouaux

>From a CVS pull of just a couple of hours ago, when I try to use
'reconstruct -r' I always get:

-r: Mailbox does not exist 

Could this be a result of:

altnamespace: yes

(Haven't altered default for unixhierarchysep.)

-- 
Amos




Re: Sieve

2001-10-28 Thread Werner Reisberger

On Tue, Oct 23, 2001 at 11:51:21AM -0400, Tym Rehm wrote:
> Can sieve filter exe and vbs files from email? I would want emails with exe
> attachments dropped, but I would like to know that it was dropped. Is there
> a way to do that with sieve?
 
Probably not with sieve, but you could do that easily with procmail.

Werner



master and hosts.allow

2001-10-28 Thread Fatemeh Taj



Dear Cyrus Admins, 
Cyrus 2.0.16 is installed and woks. But the problem 
is that it can't work when such configuration is in hosts.allow:
All : Local
pop3d: xxx.xxx.xxx.0/255.255.255.0 
imapd: xxx.xxx.xxx.0/255.255.255.0
 
 
but when I change it  to : 
All: xxx.xxx.xxx.0/255.255.255.0 , everything is 
okay. Is there any other port which I should keep it open? (With old hosts.allow 
cyrus 2.0.7 worked fine.) 
 
Thanks
--F. Taj  


Qmail+Cyrus vs VMailmgr vs VPop

2001-10-28 Thread Abu @ Trabas Dot Com

Hai, I was successfully install qmail+cyrus, for virtualdomain,
I just put into virtualdomain (/var/qmail/control):
test.dom:cyrus
test2.dom:cyrus

then i make scrypt to deliver all mail from test.dom, test2.dom
in ~cyrus to use cyrus deliver (/usr/cyrus/bin/deliver), I think
i dont need vpop or vmailmgr because all mail save to cyrus mailbox,

I just want to discuss its possible without vpop or vmailmgr if
using qmail+cyrus?, but I dont know, how many concurent 
connection if using cyrus deliver?

I use pam-mysql or pam-ldap for authenticate via pam for imap/pop.

Why i use qmail+cyrus:
qmail: virt. domain, secure, fast, only one user (cyrus user only)
cyrus: virtual user for mailbox, quota management, many tool for manage user.

Thanks.

~yusril~

-- 
   __   
  (oo)  
 / \/ \ GnuPg public information pub 1024/EBD26280 
 `V__V' A9A9 8F57 9E9D 14E3 05B4  3EDB C241 A313 EBD2 6280
Your ignorance cramps my conversation.



msg04526/pgp0.pgp
Description: PGP signature