Re: lmtp question

2001-07-05 Thread Scot W. Hetzel

From: "Christopher Riordan" <[EMAIL PROTECTED]>
> I keep getting these and there is no helpful message I can get. I don't
know
> what file it is complaining about, tis is all I get in teh logs.
>
> Jul  5 09:38:37 hal lmtpd[700]: DBERROR: dbenv->open failed: No such file
or
> directory
> Jul  5 09:38:37 hal lmtpd[700]: deliver: unable to init duplicate delivery
> database
>
It is trying to create the duplicate delivery database files, but is failing
due to it is unable to create the deliver-[a-z].db files.

Check your system for a deliverdb directory, it is usually located under the
"configdirectory" specified in the imapd.conf file. Also, make sure that it
can be accessed by the cyrus-imap user.

NOTE: deliverdb used to be a file in 1.5.x.

Scot




Re: Installation & Configuration problems

2001-07-16 Thread Scot W. Hetzel

From: "Ken Cole" <[EMAIL PROTECTED]>
> 2. after making the changes to sendmail.mc I ran the following as
> directed:
>
> m4 sendmail.mc > sendmail.cf
>
> I got the following error message:
>
> sendmail.mc:11: m4: Cannot open /usr/lib/sendmail-cf/m4/cf.m4: No such
> file or directory
>
> /usr/lib/sendmail-cf/m4/cf.m4 does not exist and there is not one
> anywhere on the system.  I am using the standard sendmail as per the
> original installation, 8.9.3
>
> How do I fix this?
>
Do the following:

rpm -qa | grep sendmail

It should show:

sendmail-8.9.3-10
sendmail-doc-8.9.3-10
sendmail-cf-8.9.3-10

Your problem is that you don't have the sendmail-cf RPM installed.  Install
that RPM, and then rebuild your sendmail.cf using M4.

Scot




Re: "sticky" cyradm and quota

2001-08-15 Thread Scot W. Hetzel

From: "John C. Amodeo" <[EMAIL PROTECTED]>
> I got a weird problem here and I wanted to see if anyone else has
> experienced similar problems.
>
> My current config is 2.0.16 / RH 7.1 / 2.4.3-12 kernel
>
> Once in a while, when a user goes to copy a message from their Inbox to
> a subfolder, it locks their IMAP session,  After closing the mail client
> (Webmail or Netscape Messenger), when they log back in, now they cannot
> delete any messages in any of their folders, and, in addition, they
> cannot write to any folders under their account.  Furthermore, Postfix
> starts deferring mail because it cannot write to the users Inbox either.
>

>
> It is almost as if Cyrus, or some other process, has a "lock" on the
> account.  The only way to rectify the problem is to restart the master
> process, which wouldn't be a problem if everyone else didn't get kicked
> off of the system when you do.
>
> Has anyone experienced a similar problem?  Does anyone have any ideas?
>
Yes, we have experienced a similar problem w/1.6.24.  The problem that we
experience is that deliver has locked the users Inbox, during an attempt to
deliver a message.  Then when a user tries to delete/move a message, the
server waits indefinitely, due to deliver has the mailbox locked.  The move
operation does cause the message to be copied to the target folder, but the
delete operation on the original folder doesn't complete.

The only way we have been able to solve this problem was to kill all deliver
processes.

You might want to try and kill all lmtpd processes in 2.x, the next time
this occurs.

NOTE: 1. We run deliver in lmtp mode on 1.6.24
  2. This problem occurs very infrequently for us (seen only 2 times in
past year).

Scot






Re: installation question

2001-09-05 Thread Scot W. Hetzel

From: "Paul Taubman" <[EMAIL PROTECTED]>
> Up until yesterday morning, cyrus was running on a Red
> Hat 6.2 box iwthout any problems. After adding 2 new
> users to the system (via userconf) it appears that all
> users can not longer access their email. I have
> checked around and cannot seem to find a solution to
> this.
>

Check the permissions of the /etc/shadow file, as cyrus-imapd < 1.6 or
cyrus-sasl needs read access to this file.

chmod 660 /etc/shadow
chgrp shadow /etc/shadow

NOTE: The cyrus user needs to be a member of the shadow group.

What probably happened is someone used linuxconf to add a user, and
linuxconf reset the permissions on the /etc/shadow file.  You need to change
the the permission settings in linuxconf:

1. Create a group "shadow"
2. goto Control -> Control files and systems ->  Configure file permission
and ownership
   a. Enter "/etc/shadow" and choose this file.
   b. Change group to "shadow"
   c. Change group permissions to "May read"
   d. Accept the changes
3. Exit Linuxconf

Now the next time you use linuxconf the permissions on /etc/shadow will not
change.

> If I reinstall cyrus from square 1, will all existing
> mail get deleted? Will everything be lost? If so, is
> there a preferred way to retain this?
>

No, reinstalling cyrus will not delete your messages.

Scot




Re: Problem with deliver [URGENT]

2001-09-13 Thread Scot W. Hetzel

From: "Patrick LIN" <[EMAIL PROTECTED]>
> Please someone can help me with that
> 3 times i post about this problem and never get any answer :((
>

>
> sometine (randomly)
> no deliver is made to one of my user (random)
> when i do a ps -ef |grep deliver
> i have :
>
>   cyrus 19672 19671  0 00:03:19 ?0:00 deliver -e -m  -- toto
> cyrus 20763 20762  0 10:17:56 ?0:00 deliver -e -m  -- toto
> cyrus  9690  9689  0 20:14:56 ?0:00 deliver -e -m  -- toto
> cyrus   411   410  0 04:11:46 ?0:00 deliver -e -m  -- toto
> cyrus  9874  9873  0 07:47:16 ?0:00 deliver -e -m  -- toto
> cyrus 22026 22025  0 10:31:19 ?0:00 deliver -e -m  -- toto

>
> the user cannot receive any mail
> each mail sent creat a new entry in the ps
> only one user is affected at the same time
>

The problem is that a lock is being held on the users INBOX by either
deliver (1.6.x) or lmtpd (2.x), and these deliver processes are waiting for
the lock to be released.  You need to kill all the deliver processes for
this user and also kill all the lmtpd processes (2.x) to get mail flowing to
this users mailbox.

Scot




Re: Email virus scanners

2001-09-17 Thread Scot W. Hetzel

From: "James Courtier-Dutton" <[EMAIL PROTECTED]>
> I have a cyrus imap linux server set up serving a small office.
> Is is possible to get the cyrus imap mail server to scan emails as they
come
> in for viruses.
> I don't know of any linux email virus scanners which can scan mime and uu
> encoded files.
> Is anyone currently doing this, and if so, how ?
>
We are virus scanning email on our mail server with AMaViS
(http://www.amavis.org) and McAfee Virus Scan.

There are several ways to setup AMaViS depending on which MTA you are using
(sendmail, sendmail-milter, postfix, qmail, exim).

We setup our mail server to use Sendmail's Milter API, that way we didn't
need two sendmails running (one queues messages to be scanned, the other
delivers the messages).

We also applied a patch from furio ercolessi that corrects the email address
for messages sent by the Magistr virus (http://www.spin.it/furio/software/).

There are two versions of AMaViS (amavis-perl-11, amavisd 20010714), we
installed amavisd.

Scot






Re: CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-)

2001-09-24 Thread Scot W. Hetzel

From: "James Courtier-Dutton" <[EMAIL PROTECTED]>
> >
> > Except now, you will not be able to access other namespaces or publicly
> > accessable directories.  That's the one problem with doing this.  The
only
>
> I just open a separate IMAP session for publicly accessable directories.
> > other way is to modify the registry entry to allow setting the sent
items
> > folder to INBOX.Sent Items.
>
> Can you tell me which registry key that is ?
>
See the following message:


http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=66
09

Scot




Re: imapmigrate and wrong 'received' dates in outlook

2001-11-14 Thread Scot W. Hetzel

From: "Darrell" <[EMAIL PROTECTED]>
> We're testing the imapmigrate scripts (from
> http://prdownloads.sourceforge.net/cyrus-utils/) to migrate from a
> netscape messenging server to cyrus 1.5.19 (yes i know its an old
> version, but its a version i we know well and our needs are simple ;-).
>
> All seems fine, except that all versions of Outlook and Outlook Express
> we've tested, when pointed at the new server, show the 'received' date
> of all emails as the time the migration tool place, rather than the
> correct time that the message was originally received...other mail
> clients (various versions of NM and pine) diplay the received field
> correctly.
>

>
> Interestingly, the 'Sent' date field in Outlook IS correct after
> migration...so adding this field to the users' list of visible fields
> and sorting accordingly is a workaround, but not a solution.
>
> SO
>
> I'm wondering if anyone has any ideas/experience in ways to hack
> imapmigrate to work properly with (broken mail clients like) outlook?
>
The way cyrus works is that it shows the Date the message was delivered to
the mail spool by reading the date from the file system for its received
date to show to the IMAP mail clients.  Cyrus doesn't parse the first
Received header to get the received date.

The problem is not with the mail clients, but with the imapmigrate script.
This script should be getting the received date from the old server, and
then using it when storing the message on the new server.

I had a similar problem when migrating messages using the mbox2imap.pl
script.  When I changed the script to parse the 1st Received header for the
received date and then store the message with this received date, the IMAP
clients showed the correct received date.

From mbox2imap.pl (NetxAP):
$response = $IMAP->append($mailbox, $message, Flags =>
["$msgFlags"], Date => $msgDate);

Imapmigrate needs to be changed to get the received date from the old IMAP
server and store it on the new IMAP server.  The following changes to
imapmigrate are untested (goto line 505 in imapmigrate to make the changes):

# get a list of message ID numbers in the selected folder,
# and for each one get the text of the message and the read/unread
# and other IMAP flags, and copy them to the new server

for $msg ($oldimap->search(ALL)) {
my $msgtext = $oldimap->message_string($msg);
my @flags = $oldimap->flags($msg);
+   my $msgdate = $oldimap->internaldate($msg);
my $flg = "";
for (@flags) {
$flg .= $_ . " ";
}
chop($flg);

-$newimap->append_string($newfolder, $msgtext, $flg);
+$newimap->append_string($newfolder, $msgtext, $flg, $msgdate);
}
}

Scot




Re: imapmigrate and wrong 'received' dates in outlook

2001-11-14 Thread Scot W. Hetzel

From: "Emiliano" <[EMAIL PROTECTED]>
> Scot W. Hetzel wrote:
> > The way cyrus works is that it shows the Date the message was delivered
to
> > the mail spool by reading the date from the file system for its received
> > date to show to the IMAP mail clients.  Cyrus doesn't parse the first
> > Received header to get the received date.
>

DISCLAIMER: the above may not be entirely correct, but is what I have seen
when manually putting messages into a folder in the imap spool directory (cp
msg /user/name/folder/.) and running reconstruct on
that folder.  If you "touch  /user/name/folder/." after placing the message in the
folder and  before using reconstruct, the mail client will show the correct
received date, otherwise it shows the date the message was placed in the
folder.

> Weird... I used cyrdeliver to migrate my maildirs to cyrus and all dates
> looked OK. Hmm. Maybe the mailclient I use does the sorting here, making
> my mailboxes look OK after the migration.
>
That's possible that your mailclient uses a different way of obtaining the
received date.  If you try OE, it will show the received date on the message
you migrated as the date the message was placed in the folder.

Scot




Re: only cyrus can logon with pam

2001-11-27 Thread Scot W. Hetzel

From: "Peter Pilsl" <[EMAIL PROTECTED]>
> as long as I use 'sasldb'-method for imap-auth all is ok. But as soon
> as I switch to pam, only user cyrus can login. pam works fine for
> other apps.
>
> I test with #cyradm -U xxx localhost and also with imtest (output of
> imtest see below) on the background master-process.
>

>
> any idea ?

The problem is that your cyrus user doesn't have read access to the password
(shadow) files.  You'll either need run the pwcheck daemon, and/or set the
password (shadow) files so that they are group readable by the cyrus user.

Scot




Re: Problem with cyrus imap 2.0.16 and Outlook Express 5.0: Seen flag does not stick

2001-11-29 Thread Scot W. Hetzel

From: "Heiki Kask" <[EMAIL PROTECTED]>
> I have following problem with Cyrus/Outlook express:
>
> - user opens INBOX and clicks on one unseen mail.
> - This mail is marked as Read on Outlook Express.
> - user clicks on Send/Recv button to check new mail.
> - Outlook Express marks previously marked email as Unread again (if
> Synchronizaton setting is All Messages) or notifies about new mail
received (if
> Synchronization setting is Do Not Synchronize).
>
> Server is Debian 2.2, Cyrus IMAP 2.0.16 compiled from sources and
otherwise
> working fine (with Mozilla, Mutt).
>
> I have another IMAP server (bundled with some old Slackware distribution,
> introduces itself as "IMAP4rev1 v12.258 server ready") for comparision and
using
> this server does not produce situation described above.
>

> I'd blame Outlook Express but unfortunately I have another working IMAP
server
> for comparision ;)
>
It's a problem with Outlook Express interacting with the Cyrus-IMAP server.
What is happening is that OE is connecting to the Cyrus-IMAP server twice
(one to write the seen state, and one to re-sync the internal cache with the
server).  This causes the re-sync to download the seen state before it is
stored on the IMAP server, which causes OE to reset it in the internal cache
(a second re-sync should show the correct state).

I also see this OE problem, when reading messages in a folder, leaving it,
and then immediately going back to the folder.  The messages that I had read
are now shown as closed yellow envelopes (OE unread, but downloaded state).
Wait for OE to re-sync the folder and then OE shows the messages as read
(white open envelopes).

When Cyrus-IMAP writes the seen state, it first makes a copy of cyrus.seen
to cyrus.seen.new(?).  This allows other IMAP connections to read the seen
state from cyrus.seen, while the first connection is updating
cyrus.seen.new(?).  When it finishes it moves the file to cyrus.seen.

The reason you are not seeing this problem with the UW-IMAP server
(IMAP4rev1 v12.258), is because the UW-IMAP server stores all messages in
one file (i.e. unix mbox format).  This requires the UW-IMAP server to lock
the file when it is writing to it, which prevents other connections from
reading the file, until the lock is removed.

You'll find other annoying problems with OE:
Problem: New message arrives, select it in OE, OE shows it marked
deleted and doesn't show the contents.

Fix: Right click on folder, choose properties, select local tab, click
delete, compact, and OK buttons. Then re-sync the folder and read the
new message.

Scot




Re: login error

2001-11-29 Thread Scot W. Hetzel

From: "Craig Skinner" <[EMAIL PROTECTED]>
> rpm -qa | grep db[23]
> libdb3.2-3.2.9-2mdk
> php-dba_gdbm_db3-4.0.6-4mdk
> db3-utils-3.2.9-2mdk
> db3-devel-3.1.17-1mdk
> db3-3.1.17-1mdk
>
It looks like here's your problem, you have 2 versions of db3 installed
(3.2.9 & 3.1.17).  Use ldd to check if imapd is linked to more than one db3.

You'll need to recompile both cyrus-sasl and cyrus-imapd so that they are
linked against one version of db3.

Scot




Re: deleteing mailboxes

2001-10-12 Thread Scot W. Hetzel

From: "Jim Grimmett" <[EMAIL PROTECTED]>
>   I have a cyrus server running and (as I hope at least
> one other person has done) I accidentally created a user
> on the top level, rather than user..
>
> I've tried "sam   d" followed by "dm "
> but it says "permission denied" !
>
> How do I get rid of it? DO I have to stop imap daemons from being
> spawned?
>
The right to delete folders was changed from 'd' to 'c' in the imapd 2.x
series due to users were accidentally deleting folders, when they were only
supposed to be deleting messages from that folder.

Scot




Re: False spelled German special patterns in subject

2001-10-16 Thread Scot W. Hetzel

From: "Jochen Metzger" <[EMAIL PROTECTED]>
> Now I've got a small problem, not severe, but I like to solve it.
>
> Special patterns like ä(German special pattern a), ö (German special
> pattern o) are expressed like this: x ?. This only appears in the
> Subject. In the body it's o.k.
>
> Is this a problem of Sieve (when using the rules), of Postfix? or of
> imapd?
>
> Has anybody had this problem and /or knows how to solve it?
>
The problem is that your mail client is inserting 8bit characters into the
message subject.  Cyrus IMAPd will either reject these messages (reject8bit
= 1) or mask the 8bit character (reject8bit = 0).  By default Cyrus IMAPd
masks these characters.

The reason for this masking of 8bit characters is RFC 2047 doesn't allow
8bit characters in the message headers, and specifies an alternate method of
specifiying these characters.  Cyrus IMAPd tries to be RFC compliant.

The only way to make Cyrus IMAPd not munge the 8bit characters is to apply a
patch to imap/message.c, which modifies the behavior of reject8bit.

I have attached a patch that will allow 8bit characters in the header.  The
patch adds a config option mask8bit, that by default is set to munge the
8bit characters (mask8bit = 1).  If mask8bit is set to 0, it will allow the
8bit characters to pass unmunged.

This patch also has the code used to skip over the UNIX From line in a
message, thus allowing for messages that contain this header to be imported
into cyrus.

Scot



8bit.patch
Description: Binary data


Re: login error

2001-11-30 Thread Scot W. Hetzel

From: "Craig Skinner" <[EMAIL PROTECTED]>
> I removed db3 & db3-devel.
>
> sasl compile went ok but imapd compile failed:-
>
> cyrusdb_db3.c:44:16: db.h: No such file or directory
> make[1]: *** [cyrusdb_db3.o] Error 1
> make[1]: Leaving directory
> `/usr/local/cyrus-imapd-2.0.16/lib'
> make: *** [all] Error 1
> make: Leaving directory `/usr/local/cyrus-imapd-2.0.16'
>
> If I reinstall db3 & db3-devel & remove libdb3.2, a
> whole heap of stuff will complain.
>
> What to do???
>

You need to install the 'db3-devel-3.2.9-2mdk' rpm, which should contain the
db.h file.

Scot





Re: login error

2001-11-30 Thread Scot W. Hetzel

From: "Scot W. Hetzel" <[EMAIL PROTECTED]>
> From: "Craig Skinner" <[EMAIL PROTECTED]>
> > I removed db3 & db3-devel.
> >
> > sasl compile went ok but imapd compile failed:-
> >
> > cyrusdb_db3.c:44:16: db.h: No such file or directory
> > make[1]: *** [cyrusdb_db3.o] Error 1
> > make[1]: Leaving directory
> > `/usr/local/cyrus-imapd-2.0.16/lib'
> > make: *** [all] Error 1
> > make: Leaving directory `/usr/local/cyrus-imapd-2.0.16'
> >
> > If I reinstall db3 & db3-devel & remove libdb3.2, a
> > whole heap of stuff will complain.
> >
> > What to do???
> >
>
> You need to install the 'db3-devel-3.2.9-2mdk' rpm, which should contain
the
> db.h file.
>
Just searched on www.rpmfind.net and the actual RPM you'll need is:


ftp://ftp.rpmfind.net/linux/Mandrake/8.1/i586/Mandrake/RPMS/libdb3.2-devel-3
.2.9-2mdk.i586.rpm

or you could recompile db3.2 from the src RPM:

ftp://ftp.rpmfind.net/linux/Mandrake/8.1/SRPMS/db3-3.2.9-2mdk.src.rpm

Scot




Re: login error

2001-11-30 Thread Scot W. Hetzel

From: "Craig Skinner" <[EMAIL PROTECTED]>
> > You need to install the 'db3-devel-3.2.9-2mdk' rpm,
> which should contain the
> > db.h file.
> >
> > Scot
>
>
> Yes, but that still leaves what to do with libdb3.2
>
I had guessed the wrong name for the above db3.2 rpm.

You need to keep libdb3.2, and install the development rpm
(libdb3.2-devel-3.2.9-2mdk.i586.rpm) which contains the db.h header file.

Scot




Re: Test Cyrus-imap continued

2001-12-07 Thread Scot W. Hetzel

From: "Alain Barthelemy" <[EMAIL PROTECTED]>
> I tried thus to send mail to abarthel@. while managed by cyrus-imap
(and
> Postfix)
>

> I remind:
>
> Final-Recipient: rfc822; [EMAIL PROTECTED]
> Action: failed
> Status: 5.0.0
> Diagnostic-Code: X-Postfix; Command died with status 1:
"/cyrus/bin/deliver
>
The error message is clear, you have a mis-configuration in your postfix
setup, as it can't execute /cyrus/bin/deliver.  In your other emails you
stated that this program is in /usr/cyrus/bin/deliver, so check your postfix
configuration files.

Scot




Re: FWD: cyrus 2.0.16/SIEVE

2002-01-08 Thread Scot W. Hetzel

> On 07-Jan-2002 Abu @ Trabas Dot Com wrote:
> > i want apache run installsieve/sieveshell with exec command, example:
> > exec('installsieve -u user@domain -i file -a file server');
> >
> > -> how to supply password if apache has no password or know password.
> > the password fill from prompt shell?
>
Don't use installsieve/sieveshell, instead use websieve/easysieve:

http://sourceforge.net/projects/websieve
http://sourceforge.net/projects/cyrus-utils

These are perl cgi scripts that will ask the user for a password, and then
allow them to manage their sieve scripts in either basic or advanced script
creation.

Scot




Re: cyradm

2002-01-16 Thread Scot W. Hetzel

From: "P.Agenbag" <[EMAIL PROTECTED]>
> can someone point me towards some examples of using cyradm?
> 
> The cyradm --help is not good enough.
> I'm looking specifically for removing mailboxes and from correcting 
> mistakes such as
> cm user,xxx ( comma instead of fullstop) which created a new folder 
> instead of a mailbox.
> Thanks
> 
To delete a mailbox you need to set the create (c) rights on the folder:

sam user,xxx c 
dm user,xxx

Scot




Re: cyradm

2002-01-16 Thread Scot W. Hetzel

From: "Scot W. Hetzel" <[EMAIL PROTECTED]>
Small correction:

> To delete a mailbox you need to set the create (c) rights on the folder:
> 

sam user,xxx  c

> dm user,xxx
> 
> Scot
> 




Re: can't save sent mails to sent folder - permission denied

2002-01-22 Thread Scot W. Hetzel

From: "Manuel Hendel" <[EMAIL PROTECTED]>
> I'm using cyrus-imapd-2.0.16_2 with postfix on FreeBSD 4.5. I can get
> my mails but when I send a mail, the mail is sent and reaches the
> recipient, but I get a message which says:
>
> 
> Copying message to Sent folder 
>
> The current command did not succeed. The mail server responded:
> Permission denied.
> 
>
> Does anybody know what to do?
>
What it sounds like is that an admin created a shared Sent folder in the
root of the imap spool, and your mail client is trying to use it.  Remove
that folder, and create the Sent folder under INBOX.  Then change your mail
client to use that folder (INBOX.sent).

Scot




Re: createmailbox: permission denied

2002-02-05 Thread Scot W. Hetzel

From: "Andreas Piesk" <[EMAIL PROTECTED]>
> > > added that user to 'admins:' in /etc/imapd.conf and gave
> > him a password.
> > >
> > > # grep "admins:" /etc/imapd.conf
> > > admins: cyrus
> > >
> > >
> > and you _did_ restart master?
>
> more than once. i restarted everything including the server.
>
> i switched back to cyrus-sasl-1.5.x and cyrus-imap-2.0.16.
> now i can create mailboxes, but i can't drop them :(
>
To delete mailboxes you need to give the admin users the delete(d) right on
the mailbox.

sam   cda

Scot




Re: permission denied - client side creating folders

2002-02-05 Thread Scot W. Hetzel

From: "Theodore Knab" <[EMAIL PROTECTED]>
> I recently got cyrus working with exim.
>
> I am able to send and receive mail.
>
> I am able to create new subfolders under the Inbox from the Netscape
Communicator 4.77 client.
>
> I created a subfolder called cool, but, I am denied the ability to create
new folders one level up from the Inbox.
>

This is how cyrus works, folders can only be created under the Inbox.  There
is a way to make it appear that the subfolders are at the same level as
inbox by turning altnamespace on (2.0.15+).

> This is what I see from the client side:
>
>
> - washmail.washcoll.edu
>   -Inbox   0 5
>   \-Cool
>
> I am perplexed as to why I do not see my Drafts folder.
>
It sounds as if you are not subscribed to the Drafts folder.
In Netscape goto File->Subscribe, there should be a check
mark next to the Drafts folder.

> Even though I do not see the inbox with cyradm when I
> attempt to create an Inbox from the washmail.washcoll.edu
> level. Netscape complains there is already one.
>
> What am I doing wrong here ?
>
> I created the following using the cyradm tool:
>
> user.t5
> user.t5.Drafts
>
Inbox is a reserved name, in cyrus-imapd it refers to user.t5.

Scot






Re: /etc/imapd.conf configuration problems with debian woody cyrus packages

2002-02-13 Thread Scot W. Hetzel

From: "Ted Knab" <[EMAIL PROTECTED]>
> I am using Debian Woody with Exim.
>
> I followed the cyrus-howto and I did read the install documentation
> in the /usr/docs/cyrus-common/, but I get errors when I leave in sasl
info.
>
> This /etc/imapd.conf without sasl seems to work:
>

:

>
> # No anonymous logins
> allowanonymouslogin: no
> #sasl_passwd_check: shadow
>
> t5@washmail:~$ telnet washmail imap
> Trying 127.0.0.1...
> Connected to washmail.
> Escape character is '^]'.
> * OK washmail.washcoll.edu Cyrus IMAP4 v1.5.19 server ready
>
> It stops working when I uncomment, the sasl_passwd_check.
> Any ideas on how to fix this ?
>
> t5@washmail:~$ telnet washmail imap
> Trying 127.0.0.1...
> Connected to washmail.
> Escape character is '^]'.
> * BYE Fatal error: invalid option name on line 28 of configuration file
> Connection closed by foreign host.
>
Yes, don't uncomment the sasl_passwd_check line :-).

You are running v1.5.19, this version didn't use the sasl library and didn't
have the sasl_passwd_check option.

Scot




Re: cyrus with openldap - documentation?

2002-02-13 Thread Scot W. Hetzel

From: "Manuel Hendel" <[EMAIL PROTECTED]>
> >   - modify cyrus-sasl-1.x with patches from www.surf.org.uk to do
> > authenticate against LDAP without PAM
> With FreeBSD it's possible to set the option openldap 1 or 2. Do you
> know if this already is the mentioned patch?
>
Yes, the FreeBSD Cyrus-SASL port uses the patch from the above web site to
support MySQL and OpenLDAP [1 or 2] authentication.

Scot





Re: mail bounces for some users but not all

2002-02-13 Thread Scot W. Hetzel

From: "Theodore Knab" <[EMAIL PROTECTED]>
> I created a shell account for one user.
> From there I ran a sh mboxtocyrus /var/spool/mail/.
>
> Mail for this user works.
>
> Additional users where created differently. Others do not have shell
> accounts.
>

>
> I set their password:
> % saslpasswd s
>
> Although all users can log into the server and create folders,
> only the first user with a shell account can receive email.
>
> I thought that cyrus does not need shell accounts.
>
> How do I get around this ?
>
> I am using exim as for my MTA.
>
The problem is not with cyrus, but with exim.  Your current setup of exim
expects users to have a shell account on the server.  You need to setup
virtual users in exim, so that it will allow your cyrus users to receive
mail.

Scot




Re: Messages expire on arrival

2002-02-13 Thread Scot W. Hetzel

From: "John D. Wilson" <[EMAIL PROTECTED]>
> We've been running cyrus on our Linux mailserver for quite a while
> now, but a new problem has reared its head.  (Fortunately it's me that
> is having the problem and not our users, since I don't know how
> to fix it!)  My colleague says he has the problem occasionally, but
> hasn't yet found the source, or fix.
>
> The past few days, I've been having problems with email messages
> (some - not all) expiring on receipt.
>
> At first it seemed to be messages from a particular source, but that
> pattern has dissappeared, (2 of 3 messages from this list subscription
> process expired this morning before I got a chance to read them!)
>
> The message from the mail client (MS Outlook Express/IMAP)
> is "Message is no longer available on the server", but it is.  The
messages
> can always be read directly from my mailbox.  Using reconstruct doesn't
> fix the problem, but deleting cyrus.* from my inbox and then doing
> a reconstruct does but, of course,  this changes all my messages to
unread.
>
> Funnily enough (no it's not at all funny really!) it's only new messages
> which expire, none of my old stuff does.
>
> Hints, tips, anyone?
>
It's a problem with the Outlook Express client.  Instead of deleting the
cyrus.* files from the server, do the following in Outlook Express:

1. Right click on the folder and choose properties.
2. Select the "Local File" tab.
3. Click the Delete Button to remove all headers and message bodies from the
local cache file.
4. Click Compact to free the wasted space
5. Click OK
6. Now resync the folder.

No messages are lost, and your seen state is kept.

Scot




Re: quota problem and temporary failure error

2002-02-19 Thread Scot W. Hetzel

From: "Jeff Thompson" <[EMAIL PROTECTED]>
> I'm using cyrus 2.0.16 alongside postfix 20010228-pl06.  All
> authentication and virtual tables are done through a mysql database.
>
> The problem is that I'm seeing a lot of failures in the queuing such as
> this:
>
> Feb 19 14:21:05 mail  postfix/pipe[16800]:  1EBBB1B4467:
> to=<[EMAIL PROTECTED]>, relay=cyrus, delay=52514, status=deferred
> (temporary failure)
> Feb 19 14:21:05 mail  postfix/pipe[16872]:  3C8C71B409E:
> to=<[EMAIL PROTECTED]>, relay=cyrus, delay=123505, status=deferred
> (temporary failure)
>
> I did a search and I found reference to applying a patch to bounce mail
> that went over the quota, I shouldn't need to do that. I have adjusted
> the quota settings in my mysql database to be 50MB per user, yet it
> seems that cyrus is ignoring that and a lot of users mailboxes are
> staying "full" at 5MB when the cap is supposed to be 50MB.  I'm not
> really all that familiar with cyrus as of yet, but I do NOT understand
> why my new quota settings are not taking effect, the mail is sitting in
> postfix's queue and not getting to the mailbox.  The server has even
> been rebooted since the change, yet it's ignoring the setting.
>
> Does anybody have any idea what the problem is, other than perhaps admin
> error on my part due to unfamiliarity with cyrus?
>
Cyrus-IMAPd doesn't use MySQL to store user quota information.  You need to
use
cyradm to change the quota on a users mailbox.

Scot




Re: Compressed mailboxes

2000-10-18 Thread Scot W. Hetzel

From: "Peter S. Housel" <[EMAIL PROTECTED]>
> I keep most of the mail I've received over the past four years (currently
> about half a gigabyte worth) in my Cyrus mailboxes.  How hard would it be
to
> implement a facility that moved messages that hadn't been accessed for
some
> period of time (a week say) into a zip archive, and extract them when
> necessary?  If I ever get around to writing this would people want it?
>

This might be difficult to implement, as you would need to keep the flags on
each message, otherwise when the message was extracted it would show up as
new.  Also, what do you do if you want to keep a message arround for a
couple of weeks?

An alternative would be to just compress each message individually, and
leave them in the folder.  Dustin Sallings created a patch to Cyrus 1.5.x
that would do this.

The changes that were made was that the IMAP and POP servers need the
ability to read both compressed(gzip) and uncompressed messages.  In order
to compress the messages, a cron job was run nightly to compress(gzip) the
messages on the server.

Deliver wasn't modified to automaticaly compress each message on delivery.

I have the patch updated to Cyrus 2.0.x in a checked out CVS tree.  The only
thing it is lacking is the ability of deliver (lmtpd) to compress the
message before saving it to the users mailbox.

Scot




Re: info on sieve

2000-10-24 Thread Scot W. Hetzel

From: "dannyman" <[EMAIL PROTECTED]>
> So, I noticed recently that I could usesievehomedir or whatever and now my
> users can do ~/.sieve for filtering.  whee!
>
> But to make vacation work I need to enable LMTP.
>
> So, to figure it out, I ask the web:
>
> http://asg.web.cmu.edu/cyrus/sieve/
>
> Ack!  Like, what does deliver -l do?  Timsieved?  What's that!?
>
Deliver -l puts deliver into LMTP delivery mode.

Timsieved is a daemon that allows you to upload/download your seive scripts
to the server.  It requires the scripts to be stored under /usr/sieve// and sieveusehomedir set to false.  It can't use the users
home directory to store the sieve scripts.

> So, anyone got a FAQ on how to go about figuring out LMTP or just vacation
> functionality and how can I get it to work?
>
In order to use sieve vacation, you need to setup your mail server to use
LMTP to deliver messages to cyrus.

See attached sendmail.mc file for how to setup LMTP delivery with Sendmail.

> Can anyone tell me where the heck the IMAP folder that this list is
archived
> to lives?
>
Just set up your IMAP mail client to:

Server:  cyrus.andrew.cmu.edu
Account Name:Anonymous

Then you want to goto the archive.info-cyrus folder.

imap://cyrus.andrew.cmu.edu/archive.info-cyrus

NOTE: No password is required for Anonymous access.

It is also available at:

http://asg.web.cmu.edu/archive/mailbox.php3?mailbox=archive.info-cyrus

This info is also in mailing-list.html/mailing-list.txt in the Cyrus
sources.
Scot

 sendmail.mc


Outlook 2000 fails to fetch message headers

2000-10-25 Thread Scot W. Hetzel

We have O2K configured to retrieve messages via IMAP from our Cyrus server.

It was working, but now it hangs when fetching the message headers from the
server.  It seems to randomly hang, as we created the log/ directory,
connected with O2K, O2k hung, killed O2K, reconnected and it hung again.
Checked both log files, and it shows that the second connection hung at an
earlier message header than the first connection.

We can access the mailbox with OE, Netscape, and ELM (patched to support
IMAP).

Any Ideals as to what is causing this?

Cyrus-IMAP 1.6.20
Cyrus-SASL 1.5.5
RedHat 6.2

1st connection attempt with O2K:

:
* 420 FETCH (FLAGS (\Seen) UID 15469 INTERNALDATE "23-Oct-2000
14:20:07 -0500" RFC822.SIZE 3490 BODY[HEADER] {1865}
:
:
* 421 FETCH (FLAGS (\Seen) UID 15470 INTERNALDATE "23-Oct-2000
14:35:37 -0500" RFC822.


2nd connection attempt with O2K:

:
* 375 FETCH (FLAGS (\Seen) UID 15424 INTERNALDATE "23-Oct-2000
10:06:18 -0500" RFC822.SIZE 2269 BODY[HEADER] {964}^M
Return-Path: <[EMAIL PROTECTED]>^M
X-Sieve: cmu-sieve 1.3^M
Return-Path: <[EMAIL PROTECTED]>^M
Received: from gifw.genroco.com (gifw.genroco.com [192.133.120.2])^M
by gi2.genroco.com (8.9.3/8.9.3) with ESMTP id KAA18070^M
for 


Re: Postfix+Cyrus Sieve: rejected message disappears

2000-10-26 Thread Scot W. Hetzel

From: "Frank Sonnemans" <[EMAIL PROTECTED]>
> I would expect that Sieve would save the message if it cannot find a way
to
> generate a MDN.
>
> Anyways I run Cyrus 1.6.22
>
> The sendmail program is located in /usr/sbin/sendmail which links to
> /usr/sbin/mailwrapper.
>
> another one in /usr/libexec/sendmail/sendmail
>
> However my /etc/mail/mailer.conf file lists /usr/local/sbin/sendmail
>
> Perhaps Cyrus uses the original sendmail instead of the postfix one. Is
> there any way to check which sendmail is used by Sieve?
>
It should use the one defined in mailer.conf, but unfortunately, lmtpd.c
(2.0.x) and deliver.c (1.6.x) sets the wrong location for sendmail
(/usr/lib/sendmail) in lmtpd.c (line 401 (2.0.x), line 835 (1.6.x)) for your
system.

You need to either create a link to mailwrapper in /usr/lib:

ln -sf /usr/sbin/mailwrapper /usr/lib/sendmail

or change lmtpd.c/deliver.c for the correct location of sendmail, and
re-compile.

This needs to be a compile time configuration option, as not all systems
have sendmail in /usr/lib (FreeBSD).

Scot





Re: user+detail not working for folders with UPPERCASE letters...

2000-10-30 Thread Scot W. Hetzel

From: "Darron Froese" <[EMAIL PROTECTED]>
> However, if I send mail to "[EMAIL PROTECTED]" it doesn't
get
> filtered into the correct place.
>
> If I setup a mailbox with all lowercase letters
> "[EMAIL PROTECTED]" it filters into that folder just fine.
All
> folders have the "anyone p"  bits set.
>
> Is this a known issue?
>
This problem is caused by your mail server (sendmail,postfix,...)
lowercasing the address, before delivering the message to Cyrus deliver.

> I've always used lowercase as a general rule and it's always worked just
> fine for me.
>

For Sendmail, you need to add the 'u' flag to the cyrus mailer, see:

 http://www.sendmail.org/~ca/email/lfaq.html#UPPER


There is one problem with this, if a user sends E-Mail to USER@domain, and
you have an entry for "user" on the system, the message will bounce with no
such user error.

Scot




Re: Questions on installing cyrus imap

2000-11-01 Thread Scot W. Hetzel

From: "Evan" <[EMAIL PROTECTED]>
> 2) Is it possible to have cyrus mail users and "regular" users (that is,
> users with an actual login on the machine, and mailbox in /var/spool/mail)
> to coexist on the same machine?  This would migration much easier as I can
> set cyrus up and migrate people over time, setting up the critical
> mailboxes first.
>

Yes, it is possible to have both kinds of users on the system, you just need
to create a list of users that need their messages delivered to
/var/spool/mail.


Add the following to your sendmail.mc (Cyrus-imapd 1.4 - 1.6):

dnl This stuff actually makes Cyrus work as the local mailer
dnl The flags A5@/:| are standard
dnl w: look up users in passwd file - enables .forward processing.
dnl S: always run deliver as the cyrus user
dnl The mXz flags are there to enable LMTP support with the -l flag on
deliver.
define(`CYRUS_MAILER_FLAGS', `SA5@|:/wmXz')dnl
define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl

dnl define(`CYRUS_MAILER_FLAGS',`SA5@|:/w')dnl
dnl define(`CYRUS_MAILER_ARGS',`deliver -e -m $h -- $u')dnl

define(`CYRUS_MAILER_PATH',`/usr/local/cyrus/bin/deliver')dnl
define(`CYRUS_MAILER_MAX',`eval(10*1024*1024)')dnl
define(`CYRUS_MAILER_USER',`cyrus:cyrus')dnl
define(`CYRUS_BB_MAILER_FLAGS',`S')dnl
define(`CYRUS_BB_MAILER_ARGS',`deliver -e -m $u')dnl
MAILER(cyrus)dnl

dnl NOTE: there are tabs between these two columns (not spaces)
LOCAL_RULE_0
R$=N$: $#local $: $1
R$=N < @ $=w . >$: $#local $: $1
Rbb + $+ < @ $=w . >$#cyrusbb $: $1

LOCAL_CONFIG
# List of Users that shouldn't have mail delivered to the
# IMAP Server.
FN /etc/mail/sendmail.cN

> 3) Is there some way of setting up aliases in sendmail that deliver email
> into specific mailboxes (not necessary a user.* mailbox)?
>
Yes, you just add the alias to sendmail's aliases file:

test:johndoe+subfolder

# for shared folders you need the domain
test2:   [EMAIL PROTECTED]

then rebuild it.

Scot




Re: help with remote folders

2000-11-07 Thread Scot W. Hetzel

From: "Alain Turbide" <[EMAIL PROTECTED]>
> Oulook express when using Imap tries to save the sent mail in the
sent-mail
> folder on the Imap server.  This won't work with Cyrus Imap since users
> can't save mail in the top level folder, only under INBOX.  Since Outlook
> does't allow the sent-mail folder to contain "." (periods) in the account
> setup info, you can't redirect that folder to INBOX.Sent Mail  UNLESS you
> make a change in the registry settings for the account info for Outlook.
I
> can't remember where that setting  but I'm sure you can locate it on the
> Internet if you do a search there.   To prevent the error, just uncheck
the
> "save special folders on the Imap server" checkbox in your account
settings.
> This will then save sent-mail and drafts to the local sent-mail folder.
>
>
This is not entirely correct.  You can set "Root Folder Path" to INBOX, and
then use your "Sent Items" folder under INBOX on the IMAP server.  But this
then denies you access to the shared IMAP folders.

The other way is to edit the registry and set "IMAP Sent Items Folder"
(String Value) and "IMAP Drafts Folder" (String Value) to the correct
location (i.e INBOX.Sent).

This can be changed at the following Registry location.

HKEY_USERS\.Default\Software\Microsoft\Internet Account
Manager\Accounts\

NOTE: You will have to identify your servers account (look in the "000?"
keys for your account).






Re: inetd says service fails (looping)

2000-11-09 Thread Scot W. Hetzel

From: "Jev" <[EMAIL PROTECTED]>
> Anyway, my problem :)
> We are running a web-mail application that was written in-house. There is
>  some horrible JS that refreshes in the users browsers every 60 seconds
> (in a small frame on the page) that check mail, with a few people logged
> onto the site the imap servers gets a lot of different checking
> mail.
>
> This would eventually get too much and I get an entry in
> /var/log/messages from inetd reading:
>
> inetd[430]: imap/tcp server failing (looping), service terminated
>

>
> So, is this a known issue? I have seen reference that others have used
> this same version under heavy loads. What should I do to track down and
> locate the problem? What other information can I provide?
>
Yes, this is a known issue with any service that uses inetd.  The problem is
that too many connections are requested of that service in a 60 second
interval.  You need to specify the maximum connections/second after
wait/nowait in inetd.conf in order to solve this problem.

imapstream  tcp nowait.200  cyrus   /usr/sbin/tcpd
/usr/local/cyrus/bin/imapd

Scot




Re: Problem with folders...

2000-11-13 Thread Scot W. Hetzel

From: "Jorge A. Rodríguez Suárez." <[EMAIL PROTECTED]>
> How are u, i hope fine...
>
> I use Cyrus imap server and Outlook Express like client of email...
>
> How can i said to Cyrus or to Outlook Express that user has his personal
> folders "Sent Items" and "Drafts", the problem is that cyrus just show him
> the inbox folder
>
1. First you need to create these two folders on the IMAP server with OE
(right click on INBOX and choose "New Folder")
2. Goto Tools -> Accounts -> Mail and choose your IMAP account, then click
Properties.
3. Click on the IMAP tab.

Now there are two methods for setting up the "Sent Items" and "Drafts"
folders depending on if you need access to shared folders.

No shared folder access:

4. Type "INBOX" in Root Folder Path
5. Check "Store special folders on IMAP server"
6. Enter the names for your "Sent Items" and "Drafts" folders.
7. Click "OK" until your out of Accounts.

Shared folder access:
4. Check "Store special folders on IMAP server"
5. Enter "Sent" for "Sent Items Folder" and "Draft" for "Drafts folders"
6. Click "OK" until your out of Accounts, then close OE.
7. Goto Start->Run and type regedit
8. locate the following key:
HKEY_USERS\.Default\Software\Microsoft\Internet Account
Manager\Accounts\

9. You now need to identify your IMAP account (look under the "000?"
keys).
10. Add/Change "IMAP Sent Items Folder" (String Value) and "IMAP Drafts
Folder" (String Value) to the correct location (i.e INBOX.Sent).

NOTE: You need to prefix the folder with "INBOX.".

11. Close the registry and open OE
12. Right click on the IMAP account, and choose "Reset list".

Scot




Re: ACL question

2000-11-15 Thread Scot W. Hetzel

From: "Andreas J. Bathe" <[EMAIL PROTECTED]>
> I just set up Cyrus 2.0.7 (the Red Hat Rawhide RPM-package). Is it
> possible to deny that users can't delete special folders (e.g.
> user.foo.Drafts created by netscape)? Removing the d-flag doesn't help
> because users can't delete their own files anymore... The structure
> under Inbox should be changeable by the users but without deleting 4 or
> 5 subfolder made by the clients (in case of Netscape: Drafts, Sent,
> Templates and Trash).
>
You need to remove the create (c) write from the folder, so that it can't be
deleted.

Scot




Re: Notify to multiple recipients

2000-11-16 Thread Scot W. Hetzel

From: "Steve Campion" <[EMAIL PROTECTED]>
> Incidentally, can anyone give me some hints on how things are read from
> the imapd.conf file?  I'd like to include some of my own config options in
> it for the notify routines I'm working on.
>
> I've played with config.c, but I can't see how it gets included.
>
Include imapconf.h in your src file, then use one of the following:

extern const char *config_getstring(const char *key, const char *def);
extern int config_getint(const char *key, int def);
extern int config_getswitch(const char *key, int def);

key - key you want to find in the imapd.conf file
def - default value if key not found in imapd.conf file

Scot





Re: cyrus logging

2000-11-20 Thread Scot W. Hetzel

From: "Timo Proescholdt" <[EMAIL PROTECTED]>
> I have my cyrus 2.07 up for nearly a month now and i would
> be really very happy about it if it didn´t fill up my /var/log/messages
> every time a mail is delivered.By now my /var/log/messages
> contains 95% of stuff like this
>
> Nov 17 21:24:09 raidserver master[328]: process 1474 exited, status
> 0
> Nov 17 21:39:46 " master[1501]: about to exec /usr/local/cyrus/bin/imap
> Nov 17 21:39:47 raidserver service-imapd[1501]: executed
>
>
> To log this information i built up the file /var/log/cyrus.log,
> and added the entry local6.debug /var/log/cyrus.log in my
> syslog.conf.
> The cyrus.log gets filled now too, but what do i have to
> change in order to hold my /var/log/messages clean, and
> log only the really important messages like
> cyrus start, user login , user opens mailbox and so on
> to /var/log/messages

Add ";!local6.debug" to the /var/log/messages entry in syslog.conf.

Scot





Re: Cyrus upgrade

2000-11-20 Thread Scot W. Hetzel

From: "Tim Pushor" <[EMAIL PROTECTED]>
> I just upgraded Cyrus IMAP 1.5.x to 1.6.22 on a small server with only a
few
> dozen users. The only problem I am currently having is that folder
> subscriptions are kept inside a directory named the first letter of the
> username. This directory is not automatically created with cyradm. IMAP
> subscriptions dont work properly until this directory is created. What is
> the proper procedure to do this?
>
The proper procedure is to run tools/dohash on an upgrade (from the imap
sources).

You may wish to set "hashimapspool" in the imapd.conf file before using
dohash, as it will also hash your imap spool directories.

Scot




Re: Removing Cyrus from a RedHat Linux Machine

2000-11-21 Thread Scot W. Hetzel

From: "Stephen Miller" <[EMAIL PROTECTED]>
> I've inherited a Linux Redhat 6.2 server running Cyrus but without a
working
> administrator password Cyrus or a back door.
>
To change the administrator password, find the "admin:" line in your
imapd.conf.  Then as root use "passwd " to change the
administrator password.  If the Cyrus IMAPd is 1.6+, then you also need to
use "saslpasswd -c " to set the administrator password in the
sasldb.db file.

> What is the best way to completely uninstall it?
>
If it was installed as a RPM then use rpm -e  to remove it.
Otherwise you will have to find all the programs that Cyrus IMAPd installed
and remove them individually.

Scot





Re: creating new user account

2000-11-30 Thread Scot W. Hetzel

From: <[EMAIL PROTECTED]>
> I am new to cyrus and I was wondering how do you create a new user
> account?  let say there is a user name "dwctest".  I create a new mailbox
> using cyradm (ie cm dwctest).  So the mailbox is created, but where do I
> put the user info and password information at?
>
By default cyrus-imapd / cyrus-sasl authenticate users for the system
password file. So you need use the tools (adduser, useradd, ...) on your
system to add the user to the system password file.

Scot




Re: Moving a Cyrus imapd database?

2000-11-30 Thread Scot W. Hetzel

From: "Tim Evans" <[EMAIL PROTECTED]>
> I am moving a Cyrus installation from one system to another, and would
like
> to be able to preserve/move the current installation's database (users,
> passwords, mailboxes).  Is this possible?  If so, how?
>
I did this a few weeks ago, to fix a corrupted harddrive problem on the root
partition.

Are you changing to a different Operating System on the new system or using
the same OS as the old system?

If its a different OS, then you might be able to convert the old password
file to the new systems format.
As for the mailboxes, you may have to use a utility that transfers each
users messages to the new system.

Since I wasn't changing OSes (I upgraded the OS and cyrus-imapd to newer
versions), I performed the following steps:

1.  install the FreeBSD 4.2 to a spare drive/system
2.  copy the master.passwd file to this drive and run pwd_mkdb
3.  copy users home directories to the drive
4.  install cyrus-sasl and cyrus-imapd (1.6.25-BETA)
5.  edit imapd.conf and make the appropriate changes
6.  edit inetd.conf and add the pop3d, imapd, and
timsieved entries.
7.  add sieve (2000) to /etc/services
8.  create the sendmail *.mc file with support for
SMTP AUTH and Cyrus-IMAPd mail delivery.
9.  (FreeBSD 4.1+ Specific)  edit /etc/make.conf to
enable SMTP AUTH for sendmail 8.11.1, then
rebuild/install FreeBSD and kernel. Reboot.
10. use saslpasswd to create the sasldb, by creating
an entry for the admin user.
11. Test install by creating an account and making
sure it can be accessed
12. remove the test account, if step 11 passed, otherwise
troubleshoot until you get the server working.

13. Stop mail services on the old server (disable pop3d,
imapd in inetd.conf and SIGHUP inetd, kill all
sendmail processes).

14. copy the "configdirectory" (see imapd.conf) from the
old server to the new server's "configdirectory"
15. copy the "partition-*" (see imapd.conf) director(y/ies)
from the old server to the new server's
"partition-*" director(y/ies) (i.e. partition-default).

Since I had my partiton-default on it own SCSI drive,
all I needed to do was remove the drive from the old
server and install it into the new server and make the
appropriate fstab entry.

Since I was upgrading from an older version of cyrus-imapd
(1.5.x) to a newer version, and wanted to use a hashed
spool, I needed to do the following:

16.  edit imapd.conf to enable hashimapspool.
17.  run the dohash script to convert from 1.5.x to 1.6.25

I also had the new server under a differnt name and IP address, so I needed
to change it to the old servers name and address.  This then required the
sasldb database to be recreated, by first removing the file, and then
re-adding the cyrus admin user.

Scot




Re: creating new user account

2000-11-30 Thread Scot W. Hetzel

From: <[EMAIL PROTECTED]>
> But I though cyrus doesn't use /etc/passwd?  I though cyrus-sasl have its
> own user password database?
>

Cyrus-sasl will use either the /etc/passwd (PLAIN, LOGIN mechanisims only),
sasldb (PLAIN, LOGIN, CRAM-MD5, DIGEST-MD5, ...), Kerberos IV & V, or PAM
for authentication.  This depends on how you have "sasl_pwcheck_method" set
in the imapd.conf file.

To add users to the sasldb, you need to use:

saslpasswd -c 

scot

> On Thu, 30 Nov 2000, Scot W. Hetzel wrote:
>
> > From: <[EMAIL PROTECTED]>
> > > I am new to cyrus and I was wondering how do you create a new user
> > > account?  let say there is a user name "dwctest".  I create a new
mailbox
> > > using cyradm (ie cm dwctest).  So the mailbox is created, but where do
I
> > > put the user info and password information at?
> > >
> > By default cyrus-imapd / cyrus-sasl authenticate users for the system
> > password file. So you need use the tools (adduser, useradd, ...) on your
> > system to add the user to the system password file.
> >
> > Scot
> >
>
>




Re: Inforcing quota limits

2000-11-30 Thread Scot W. Hetzel

From: "Adonis El Fakih" <[EMAIL PROTECTED]>
> However there is a question that now pops to mind...
> Every time a quota is set, a file in created under
/var/imap/quota/$username
>
> If the number of users is large i.e. over 30k users, you will have
> problems under linux, since you can not create more that 30k
> directories/files under one directory. I am assuming similar limits exists
> in other operating systems..  So for now, I scan all account using du -sk
> and any account over 20Mb gets a quota inforcement, otherwise I will run
> out of quota files..
>
> Has anyone faced this problem??  Any ideas??

You need to upgrade to either cyrus-imapd 1.6.24, 1.6.25-BETA, or 2.x.  As
these version support hashing the directories based on the first letter of
the users name for the quota, user, sieve and the IMAP spool directories.

After you install 1.6.x or 2.x, you will need to use the dohash script to
convert your existing files to the hashed directory format.  If you want
your IMAP spool directory hashed as well you need to set hashimapspool to
true in imapd.conf.

Scot




Re: creating new user account

2000-12-01 Thread Scot W. Hetzel

From: <[EMAIL PROTECTED]>
> Bingo :)  I am one step further, just need to figure out how to get my
> sendmail to drop mail into this mailbox now
>

On November 1st I posted the following message to the list, which shows what
you need to add to your sendmail *.mc file to get sendmail to deliver to
cyrus-imap.

This should be one line:

http://asg.web.cmu.edu/archive/message.php3?index=6543&array_index=6532&Hord
eSession=426251db912a4dee961b196a90d2b9b4

Scot







user+folder delivery problem w/Sendmail 8.11

2000-12-01 Thread Scot W. Hetzel

When I use the non-LMTP sendmail.cf file, Sendmail 8.11 will deliver to the
sub-folder.  But when I switch to the LMTP enabled sendmail.cf file,
messages are no longer delivered to the sub-folder.  Permissions are correct
on the sub-folder (anyone p).

I am using Cyrus-imapd 1.6.25.

The *.mc file has the following settings:

define(`CYRUS_MAILER_FLAGS', `SA5@|:/wmXz')dnl
define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl
dnl
dnl This is an alternate way of delivering messages to cyrus
dnl define(`CYRUS_MAILER_FLAGS',`SA5@|:/w')dnl
dnl define(`CYRUS_MAILER_ARGS',`deliver -e -m $h -- $u')dnl
dnl
define(`CYRUS_MAILER_PATH',`/usr/local/cyrus/bin/deliver')dnl
define(`CYRUS_MAILER_MAX',`eval(10*1024*1024)')dnl
define(`CYRUS_MAILER_USER',`cyrus:cyrus')dnl
define(`CYRUS_BB_MAILER_FLAGS',`S')dnl
define(`CYRUS_BB_MAILER_ARGS',`deliver -e -m $u')dnl
dnl
MAILER(cyrus)dnl
dnl
define(`confLOCAL_MAILER',`cyrus')dnl

LOCAL_RULE_0
R$=N$: $#local $: $1
R$=N < @ $=w . >   $: $#local $: $1
Rbb + $+ < @ $=w . >  $#cyrusbb $: $1



I have another server delivering via LMTP (cyrus-imapd 1.6.20/Sendmail
8.9.3) and it doesn't have this problem.  I seem to recall that there is a
problem with the Sendmail *.m4 files when using + addressing & LMTP.

Any one know what the fix is to solve this problem?

Thanks,

Scot




Re: Success 2.0.7, SSL, and SASL!

2000-12-04 Thread Scot W. Hetzel

From: "Michael Fair" <[EMAIL PROTECTED]>
> 4) Microsoft Outlook Express' "Secure Password
> Authentication" doesn't seem to work with cyrus.
> It complains about CRAM-MD5 failing and thinks
> the server doesn't support any authentication
> that my Windows 98 machine has on it.
> Anyone got any ideas on this one?
>
Oulook Express only supports the LOGIN mechanism, so you need to compile
SASL with '--enable-login'.

Scot




Re: quota & sharing

2000-12-06 Thread Scot W. Hetzel

From: "Jason du Preez" <[EMAIL PROTECTED]>
> I have just installed cyrus on my FreeBSD 4.2 system - my problem is that
I
> cannot authenticate.
>
> I have installed cyrus-sasl and have created users using saslpasswd.
>

> Can anyone point me to a decent setup resource, or explain how to get the
> whole SASL / Cyrus combination working with FreeBSD?
>
Did you use the security/cyrus-sasl port?

First, check the permissions of the sasldb.db file, they need to be:

for postfix w/SMTP AUTH & cyrus-imapd:
-rw-r-cyrusmailsasldb.db

for sendmail w/SMTP AUTH & cyrus-imapd:
-rw-r-cyruswheelsasldb.db

Anyone know how to run sendmail as an alternate group (i.e. mail)?

The security/cyrus-sasl port installs the pwcheck daemon.  This daemon needs
to be started before you can authenticate passwords from the systems
password file.

/usr/local/etc/rc.d/pwcheck.sh start

Scot




Re: Cyrus/SASL Authentication

2000-12-06 Thread Scot W. Hetzel

From: "Michael Fair" <[EMAIL PROTECTED]>
> > Have you checked the following files for proper configuration entries:
> >
> > 1)  Cyrus.conf (on RH it is in /usr/lib/sasl).
>
> I don't believe Cyrus uses a .conf file in usr/lib/sasl.
> It was my understanding that what would ordinarily
> go into Cyrus.conf file in /usr/lib/sasl actually
> goes into /etc/imapd.conf using the "sasl_"
> parameters.
>
A Cyrus.conf file is used by the timsieved daemon, the imapd & popd daemons
get their values from imapd.conf.

Scot




Re: timsieved - doesnt use right sasl lookup method

2000-12-06 Thread Scot W. Hetzel

From: "Simon Atack (Uni)" <[EMAIL PROTECTED]>
> I am having trouble I have mananged to get cyrus to use PAM via sasl by
> using sasl_pwcheck_method: PAM   This is working fine but i cannot seem to
> get timsieved to use this method.  It keeps on trying to use /etc/sasldb
> and not PAM.
>
> Any ideas, suggestions, patches etc?
>
timsieved doesn't use the imapd.conf file, you need to create
lib/sasl/Cyrus.conf so that it contains "pwcheck_method: PAM".

Scot




Re: Authentication against MySQL Database

2000-12-08 Thread Scot W. Hetzel

From: "Tim Evans" <[EMAIL PROTECTED]>
> I am adding Web-based e-mail to an existing portal-like site, using
> IMP and Cyrus imapd.  The site is built pretty much exclusively with
> PHP and MySQL.
>
> We already have all the userid's and passwords for the
> portal site in MySQL and would like to let users log into
> their IMP/Webmail accounts with the same password.
>
> I believe Cyrus/SASL authentication using PAM may be one way of doing
this,
> but would hope this is a wheel someone else has already invented.
>

You can also use the Cyrus-SASL LDAP+MySQL auth patch
(http://www.surf.org.uk/), which creates 2 new pwcheck methods (ldap, and
mysql).  This patch doesn't modify the pwcheck daemon, instead it modifies
lib/checkpw.c to add theses new pwcheck methods.

Scot




Re: Are cyrus docs up-to-date?

2000-12-13 Thread Scot W. Hetzel

From: "Adonis El Fakih" <[EMAIL PROTECTED]>
> I was reading the docs on http://asg.web.cmu.edu/cyrus/download/ about
> Cyrus.  We currently run cyrus 1.5.18 and want to upgrade to 1.6+
>
> According to the docs the newest version is 1.6.24, and what prompted me
> to email the list, is that is still says that the /var/imap/mailboxes file
> is a flat file.  I recall hearing that the file was changed to a db/dbm
> file?? Did this happen?  We are looking to upgrade, since our mailboxes
> file is about 30Megs now! and adding or moving a user is taking a long
> time, and becuase the quota directory is not hashed in 1.5.18.
>
The mailboxes file is still a flat file in 1.6.x.  It is a db file in 2.x.

> One more question.  We use Mysql authentication with 1.5.18, is this still
> allowed in 1.6?
>
You will need to use either PAM and the pam_mysql module with the Cyrus-SASL
library.  Or patch the Cyrus-SASL checkpw.c to add a mysql pwcheck method
(see http://www.surf.org.uk/ for the patch).

Scot




Re: user+detail doesn't work for me

2000-12-13 Thread Scot W. Hetzel

From: "Heiner Strauss" <[EMAIL PROTECTED]>
> I try to make sending mail to user+detail work with
> cyrus-imapd-1.6.22 and sendmail-8.9.3. The mail
> arrives always in the user INBOX. After some reading
> in the archives, i found out about lmtp. I don't
> have lmtpd, only deliver. Here is my sendmail.mc:
>

You don't need these three lines:

> FEATURE(`local_lmtp', `/usr/local/cyrus/bin/deliver')dnl
> define(`LOCAL_MAILER_ARGS', `deliver -l')dnl
> define(`LOCAL_MAILER_FLAGS', LOCAL_MAILER_FLAGS`'P)dnl


define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl

> define(`confLOCAL_MAILER', `cyrus')dnl
> define(`CYRUS_MAILER_FLAGS', `A5@/:|wSmXz')dnl

Change CYRUS_MAILER_FLAGS to:

define(`CYRUS_MAILER_FLAGS', `SA@|:/wmXz')dnl

NOTE: Removing the "5" flag fixes it so that LMTP mode will deliver to
+detail folders.  It may break alias rewriting.

> define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl
> define(`CYRUS_BB_MAILER_FLAGS', `S')dnl
> FEATURE(`nocanonify')dnl
> FEATURE(`always_add_domain')dnl
> MAILER(local)dnl
> MAILER(smtp)dnl
> MAILER(`cyrus')dnl
> LOCAL_RULE_0
> Rbb + $+ < @ $=w . >$#cyrusbb $: $1
> 
>
> I want to use the 'normal' mailboxes too, I want to
> keep mail.local for local delivery, if possible.
> Can someone tell me what is wrong ? I'm trying
> 1 Year to make this work, but now i need some advice.

Use the following in place of your LOCAL_RULE_0:

LOCAL_RULE_0
R$=N$: $#local $: $1
R$=N < @ $=w . >$: $#local $: $1
Rbb + $+ < @ $=w . >$#cyrusbb $: $1

LOCAL_CONFIG
# List of Users that shouldn't have mail delivered to the
# IMAP Server.
FN /etc/mail/sendmail.cN

Scot




Re: LMTP vs SMTP

2000-12-13 Thread Scot W. Hetzel

From: "Cillian Sharkey" <[EMAIL PROTECTED]>
> I was mentioning to a friend how Cyrus now recieves messages over LMTP.
Not
> being familiar with the protocol (nor I), he skimmed over the LMTP RFC.
From
> this brief read, he came to the conclusion that LMTP was more or less
> redundant, considering its close similarity to SMTP.
>
> I couldn't give a definitive answer to him as to why LMTP is used apart
> from saying that LMTP is more a "local" protocol, then a "across the
Internet
> protocol" (SMTP). So my question is, what are the main reasons/benefits of
> using LMTP for delivering a message to Cyrus?
>
>From what I under stand between the LMTP delivery and the non-LMTP delivery
of a message is that when a message is received via SMTP, and the message
has more than 1 recipient:

LMTP will send the message only once to cyrus and allow cyrus to deliver the
message internally to the list of recipients provided during the LMTP
exchange with sendmail. One nice feature that this provides to cyrus is
single-message store, where the message is stored in the first recipients
mailbox, and the remaining recipients are hardlinked to this message, thus
saving space on the server.

In the non-LMTP case sendmail would do multiple deliveries for the same
message to the cyrus server (using different recipient addresses for each
delivery).

Scot




Re: Cyrus IMAP 2.0.8 released

2000-12-20 Thread Scot W. Hetzel

From: "Patrick LIN" <[EMAIL PROTECTED]>
> i think you have a mistake on the website of cyrus-imap on the last
> version
> you can see at : http://asg.web.cmu.edu/cyrus/download/
>
> "The latest version of the IMAP server is 2.0.9. This is now a
> production release and we are running this code base internally."
>
> and of course we cannot find anywhere on the site the 2.0.9 version
>

Larry mentioned that they are going to release a 2.0.9 version to fix a
problem with the Perl cyradm:

- Original Message -
From: "Lawrence Greenfield" <[EMAIL PROTECTED]>
To: "cyrus mailing list" <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 8:32 PM
Subject: Re: Cyrus IMAP 2.0.8 released

> It appears that there's a bug in the Perl cyradm distributed with
> 2.0.8 causing it to segfault when a setquota is executed; I'm aware of
> it and will try to resolve it tonight or tomorrow and release a 2.0.9.
>
> Additionally, I forgot to update changes.html.  I've included the

Scot





Re: Mail migration

2001-01-03 Thread Scot W. Hetzel

From: "James Presley" <[EMAIL PROTECTED]>
> Hey gang,
> I was looking for a way to move existing mail boxes with
> email to a new server. I am running postfix cyrus-imap on
> a Freebsd machine. I already know how to move queued items,
> but I am wondering where the statoc contents of a users'
> mailboxes are kept server side.

On FreeBSD, the mailboxes are kept in /var/spool/imap, and the server data
is kept in /usr/local/etc/imap.

Scot





Re: Mail migration

2001-01-03 Thread Scot W. Hetzel

From: "James Presley" <[EMAIL PROTECTED]>
> At least I know I'm not going crazy, there is no imap directory under
spool
> (like there should be) I'm actually replacing an admin that left behind no
> documentation so I have to hunt for everything. Is there a conf file or
> something that I can look at to see where he might of place the mailboxes?
I
> know this sounds crazy but I've spent like the whole morning looking at
this
> server and I almost believe there are no freaking mailboxes! Its driving
me
> up the wall. Anyhow any pointers would sure be appreciated. TIA
>
Search for the imapd.conf file (usually /usr/local/etc), this file will tell
you were the mailboxes are stored on that system.

i.e.
partition-default: /var/spool/imap

NOTE: You may have more than one "partition-*" entry for the locations of
the mailboxes.

Scot




Re: auth method for scalability

2001-01-04 Thread Scot W. Hetzel

From: "Kevin J Menard" <[EMAIL PROTECTED]>
> I was thinking perhaps a MySQL solution, but even though I can
> isolate
> the rbdm on another machine, it can only be distributed on one
> machine

You may want to look at chapter 11 of the MySQL documentation on
replication.

http://www.mysql.com/documentation/mysql/commented/manual.php?section=Replic
ation

Scot




Re: Problem accessing IMAP Server

2001-01-04 Thread Scot W. Hetzel

From: "Jerry Kendall" <[EMAIL PROTECTED]>
> When I run IMTEST, I get the following:
>
> hobbit# /usr/local/bin/imtest -m login -p imap localhost
> C: C01 CAPABILITY
> S: * OK gw.kcis.com Cyrus IMAP4 v1.6.22 server ready
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
> X-NON-HIERARCHICAL-RENAME NO_ATOMIC_RENAME UNSELECT
> S: C01 OK Completed
> Password:
> + go ahead
> L01 NO Login failed: generic failure
> Authenticated.
> Security strength factor: 0
>
> The error (generic failure)  has stumped me.
>
> When I run cyradm localhost, I get the following:
>
> hobbit# cyradm  localhost
> Password:
> application-specific initialization failed: authentication failed
>
>
Did you create the sasldb database with saslpasswd?

saslpasswd -c 

I normally create the database by adding the Cyrus admin user to sasldb
first.

Also, try specifying the user you want to login as to the imtest and cyradm
commands:

cyradm -u  localhost
imtest -m login -u  localhost

Scot





Re: failure: prot layer failure

2001-01-09 Thread Scot W. Hetzel

From: "Peter Erickson" <[EMAIL PROTECTED]>
> I hope that this will make sense. I'll try my best.
> I am trying to setup imap system that needs to be able
> to be accessible to Outlook Express 5.00. I am running
> Cyrus Imap 2.0.9 and when I try to login I get:
>
> [root@silky bin]# ./imtest -m login -u cyrus localhost
> C: C01 CAPABILITY
> S: * OK silky.platinumpersonals.com Cyrus IMAP4 v2.0.9 server ready
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE
> UIDPLUS ID NO_ATOMIC_RENAME UNSELECT MULTIAPPEE
> S: C01 OK Completed
> Password:
> C: L01 LOGIN root {9}
> + go ahead
> C: 
> failure: prot layer failure
> [root@silky bin]#
>
> my imapd.conf:
> [root@silky /etc]# vi imapd.conf
> configdirectory: /var/imap
> partition-default: /var/spool/imap
> admins: cyrus root
> sasl_pwcheck_method: sasldb
>
> I want to be able to use the sasldb, but I need to use
>  PLAIN because I don't believe that outlook can use
>  Kerberos (or at least by what I have been told) and to
>  do that it looks like I need to enable STARTTLS, but
>  when I do that i get the following error with imtest:

> any ideas?? Thanks.

With Outlook Express you need the LOGIN mech (compile SASL with
"--with-login").

You don't need STARTTLS to authenticate OE using the LOGIN mech, but it is
recommended since the password is sent unencrypted to the server.

Since your using the sasldb database, make sure you create each user with
saslpasswd.  You also need to  make sure that the sasldb is owned and
readable by the user that the Cyrus server is running as.

Scot





Re: Cyrus Imap 2.0.9 and Outlook Express 5.0

2001-01-24 Thread Scot W. Hetzel

From: "Peter Erickson" <[EMAIL PROTECTED]>
> I am running Cyrus Imap 2.0.9 and am trying to look at all the
> mailboxes
> that I have access to with outlook express but the only box that I see
> is my
> inbox, not any of the others that I have access to. Anyone have any
> ideas??
> If possible I would like to stay with OE because everyone in the
> company
> knows it.
>
Do you have the "Root Folder Path" set in the account properties?

If you do then you will need to clear the "Root Folder Path" in order to
access the shared folders.

Are you storing "Sent Items" and "Drafts" on the IMAP server?
 (requires "Root Folder Path" to be set or a registry hack)

see http://asg.web.cmu.edu/archive/message.php3?index=5091&array_index=2 for
info on how to setup the "Sent Items" and "Drafts" folders.

Scot




Re: Cyrus Imap 2.0.9 and Outlook Express 5.0

2001-01-26 Thread Scot W. Hetzel

> From: "Peter Erickson" <[EMAIL PROTECTED]>
> > Okay, i have the visibility checked, but I have to click on the "Go
> > To" button in order to actually see it. Then after restarting OE, the
> > folder doens't show up anymore even though the visibility is still
> > checked. I have to go to the IMAP folders menu and click the "Go To"
> > button again. Is this a bug with 5.0 or is there an option that I must
> > have set inorder for it to do this? Thanks for all the help.
> >

Another thing you might want to check is that you have the parent folder
subscribed, otherwise OE will not show the subscribed sub-folders.

I see this problem when I subscribe to the info-cyrus folder on
cyrus.andrew.cmu.edu, since the "archive" folder will not allow the
anonymous user to set the subscribe bit on the folder.

Scot




Re: mailboxes.db

2001-02-02 Thread Scot W. Hetzel

From: "jean-marc delpech" <[EMAIL PROTECTED]>
> how can I recreate the /var/imap/mailboxes.db ?
> I know I can recover the databases after a crash but if
> I would like to recreate it, is it possible.
> In fact the pb is that some body create a folder with cyradm,
> but after somebody else delete this user directly on the hard
> drive. Every body can see this forlder but it doesn't exist
> really ...
>
In Cyrus 1.5 - 1.6 you used "reconstruct -r" to rebuild the mailboxes files.
For 2.0.x, I believe this is currently broken for the mailboxes.db file.
What you will need to do is dumb the mailboxes.db file to a file and then
edit that file to remove the deleted folder.

1. Run ctl_mboxlist -d > mboxlist.temp to dump existing mailboxes.
2. Remove mailboxes.db file: rm mailboxes.db
3. Edit mboxlist.temp to remove the folder
4. Run ctl_mboxlist -u < mboxlist.temp to change the contents of
mailboxes.db.

Scot




Re: mailboxes.db

2001-02-06 Thread Scot W. Hetzel

From: "jean-marc delpech" <[EMAIL PROTECTED]>
> Thanks, Scot it works well now (I forget to say I installed Cyrus 2.0.11)
> In the new doc. I read that "crash in reconstruct now fixed" but when I
try
> to do
> cyrus>reconstrution -m
> recontructing mailboxes.db currently not supported.
> What is the difference to rebuild mailboxes.db between your way and this
way?

> > In Cyrus 1.5 - 1.6 you used "reconstruct -r" to rebuild the mailboxes
> files.
> > For 2.0.x, I believe this is currently broken for the mailboxes.db file.
> > What you will need to do is dumb the mailboxes.db file to a file and
then
> > edit that file to remove the deleted folder.
> >
> > 1. Run ctl_mboxlist -d > mboxlist.temp to dump existing mailboxes.
> > 2. Remove mailboxes.db file: rm mailboxes.db
> > 3. Edit mboxlist.temp to remove the folder
> > 4. Run ctl_mboxlist -u < mboxlist.temp to change the contents of
> > mailboxes.db.
> >

The difference between the above way of rebuilding the mailboxes.db file and
the "reconstruct" way is that the above only allows you to dumb the current
folder listing from the mailboxes.db file.  While "reconstruct" was used to
walk the mail spool (partition-*) directories and add missing folders to the
mailboxes file automatically.

Scot




Re: repeated authentication

2001-02-09 Thread Scot W. Hetzel

From: "Christoph Andreas" <[EMAIL PROTECTED]>
> we use cyrus 1.5.19, OpenLDAP 1.2, postfix-19991231-pl06 on SuSE Linux
> 6.4 and Netscape Messenger 4.75 as client and everything works quite
> well. Although I configured Netscape to save passwords the Netscape Mail
> Notification tool asks every user randomly for his password
> (approximately 4-5 times a day). There is nothing to find about that in
> /var/log/messages and /var/log/mail. Could anybody tell me if this is a
> bug in Netscape (it wouldn't be the only one) or a feature in cyrus (and
> if this is one how it can be turned off).
>
Netscape Messenger doesn't save the SMTP AUTH password, thus you have to
enter it each time you start it.  I did find a configuration option that you
can add to prefs.js file that will disable SMTP AUTH in Netscape Messenger.

I'm not near the computer where I tried the setting on.  When I am near that
system I'll post the config option.

Scot






Netscape option to disable SMTP AUTH (was Re: repeated authentication)

2001-02-09 Thread Scot W. Hetzel

From: "Scot W. Hetzel" <[EMAIL PROTECTED]>
> From: "Christoph Andreas" <[EMAIL PROTECTED]>
> > we use cyrus 1.5.19, OpenLDAP 1.2, postfix-19991231-pl06 on SuSE Linux
> > 6.4 and Netscape Messenger 4.75 as client and everything works quite
> > well. Although I configured Netscape to save passwords the Netscape Mail
> > Notification tool asks every user randomly for his password
> > (approximately 4-5 times a day). There is nothing to find about that in
> > /var/log/messages and /var/log/mail. Could anybody tell me if this is a
> > bug in Netscape (it wouldn't be the only one) or a feature in cyrus (and
> > if this is one how it can be turned off).
> >
> Netscape Messenger doesn't save the SMTP AUTH password, thus you have to
> enter it each time you start it.  I did find a configuration option that
you
> can add to prefs.js file that will disable SMTP AUTH in Netscape
Messenger.
>
To disable SMTP AUTH in Netscape, you need to edit the prefs.js file and
add:

user_pref("mail.auth_login", false);

Scot




Re: deleting mailboxes?

2001-02-26 Thread Scot W. Hetzel

From: "Grant Beattie" <[EMAIL PROTECTED]>
> 2.0.11/Solaris 7
>
> root@wombat# grep admins /etc/imapd.conf
> admins: cyrus
>
> wombat> lam user.grant
> anyone p
> grant lrswipcda
> cyrus d
> wombat> dm user.grant
> deletemailbox: Permission denied
>
> What is causing this? How can I delete the mailbox?
>
You need to give the admin user the (c)reate write on a mailbox, so that the
admin user can delete the mailbox.

Scot





Re: Shared folders

2001-03-02 Thread Scot W. Hetzel

From: "Per Steinar Iversen" <[EMAIL PROTECTED]>
> On Thu, 1 Mar 2001, Rob Tanner wrote:
> > More as a precaution so we don't end up aquiring any such IMAP clients
> > unaware of that rather serious limitation, which common IMAP clients
> > can't work with shared folders?  I have to say, your request surprizes
> > me, because even Pine has a concept of additional inboxes which is how
> > we configure Pine for shared mailboxes.  But surprized or not, please
> > share your knowledge of which clients are limited in that regard.
>
> The O'Reilly book "Managing IMAP", page 54, lists 4 rather common clients
> that do not support shared folders: StarMail 5.1, Outlook Express 5.0,
> Netscape 4.61 (Netscape has some strange proprietary ACL stuff), Eudora
4.3
>
Outlook Express can access shared folders as long as you don't set the "Root
Folder Path" in the accounts properties.

NOTE: You'll need to edit the registry to set the "Drafts Folders" & "Sent
Items Folders", since OE will not accept a "INBOX.Drafts" or "INBOX.Sent"
due to the period.

see http://asg.web.cmu.edu/archive/message.php3?index=5091&array_index=2 for
info on how to setup the "Sent Items" and "Drafts" folders in Outlook
Express.

Scot




Re: Cyrus 2.0.12 and Outlook Express

2001-03-08 Thread Scot W. Hetzel

From: "Karlheinz Blank" <[EMAIL PROTECTED]>
> I created a mailbox with cyradm 'cm user.test' and the user test
> connects to the cyrus-server with his outlook express client. If
> this Outlook Express User tries to create a top level folder in
> his view (creating a folder on the same level as the inbox-folder,
> outbox-folder and sent-folder) - he get's an 'Permission denied'
> error.
>
> I've seen a thread in the February postings which confirms this behaviour.
> But how can I avoid this error message?  My users won't accept
> that they only can create subfolders. Nor do they accept any
> other mailing program than 'their' Outlook express.
>

You can't create folders at the same level as the INBOX with Cyrus, but you
can make the "Drafts" & "Sent Items" folders appear to be at the same level
as the INBOX by either editing the registry, or setting the "Root Folder
Path" to INBOX (Tools->Accounts->Mail->[mail account]->IMAP).

You will need to determine if your users need access to shared folders
(requires Registry Editing, or custom IE5.5 install).

To set up the "Sent Items" & "Drafts" folders, see:

http://asg.web.cmu.edu/archive/message.php3?index=5091&array_index=2

NOTE: 1. You can also use the IE5.5 IEAK to create an IE45.5 install
 that has the default "Sent Items" and "Drafts" folders set
 to "INBOX.Sent" and "INBOX.Drafts".
  2. When creating new users, you should create the "INBOX.Sent",
 "INBOX.Drafts", and "INBOX.Templates" (NetScape) Folders for
 each user. (You may want to go thru your existing users and
 create these folders for them.)

Scot




Re: Default Mailbox / Inbox settings.

2001-03-12 Thread Scot W. Hetzel

From: "Phil Ellett" <[EMAIL PROTECTED]>
> Just a quick query about the heriarchy of mail folders.
>
>If I create new mailbox with cyradm  ...
>
> cm user.test
>
> And then log into the account using Outlook Express I get
> a single folder "Inbox". I cannot however add other
> mailboxes at "Inbox" level and can only create folders
> that are a subdirectory of "Inbox" ...
>
> How can I setup IMAP such that I can have the following structure.
>

>
> I assume Outlook Express automatically creates these new folders
> when I log into a new account my other server running UW IMAP.
>  It can't with Cyrus IMAP however as you cannot create new folders
> at the same level as Inbox ..
>
> Any ideas ?
>
There are two ways to place the "Drafts" & "Sent Items" folders so that they
appear to be at the same level as "INBOX".

First you will need to create these folders under INBOX as subfolders.  Then
you will need to either set "Root Folder Path" in the account properties, or
edit the registry.

see the following for more information:

http://asg.web.cmu.edu/archive/message.php3?index=5091&array_index=2

P.S. Maybe the above should be added to the Cyrus-IMAP FAQ, as it appears
that I keep answering the same question.

Scot




Re: post messages to sub mailbox directly

2001-03-19 Thread Scot W. Hetzel

From: "Alex Kempkens" <[EMAIL PROTECTED]>
> We created a mailbox
>
> user.tc.info
>
> ok so far. Our sendmail is configured so that a mail to
[EMAIL PROTECTED]
> should be transfered directly to that mailbox.
>
> But that DOES NOT work.
>
> If I configure in virtusertable

>
> [EMAIL PROTECTED] tc.info
>
> DOES NOT WORK.
>
> Can someone tell me the correct term for the configuration.
>
You need to use:

[EMAIL PROTECTED]tc+info

Scot




Improved DB3 detection (was Re: what does this mean. )

2001-03-20 Thread Scot W. Hetzel

From: <[EMAIL PROTECTED]>
> I've been having problems with cyrus and RH 7 for the last few days now.
> When I try to configure, I get this message, could it be part of the
> problem? And, if so, how do I solve this problem?
>
> checking for db_create in -ldb-3... no<--- could this be some
> linkmisstake?
> checking for db_create in -ldb... yes
>
It's telling you that it didn't find a DB3 library named libdb-3.[a,so] on
your system, and instead used the libdb.[a,so] library.

The current DB3 checks in "configure" are incomplete for both the cyrus-sasl
& cyrus-imapd sources.  I have improved the check so that it can detect
alternate names used by the DB3 libraries (see attached patches) and add the
appropriate include paths.  You will need to run "autoconf" to rebuild
"configure" from "configure.in".

Scot



 cyrus-sasl.DB3.patch
 cyrus-imapd.DB3.patch


Re: Improved DB3 detection (was Re: what does this mean. )

2001-03-21 Thread Scot W. Hetzel

From: "Tarjei Huse" <[EMAIL PROTECTED]>
> Hi, I must thank you for the patch, but am I patching it wrongly?

The patches I had sent were against the CVS check out for Cyrus-SASL &
Cyrus-IMAPd, attached is a patch that will work with Cyrus-SASL-1.5.24.
There should be no problems applying the cyrus-imapd.DB3.patch to
Cyrus-IMAPd 2.0.12.

Scot

 sasl-1.5.24.db3.patch


Re: sent items folder on inbox level

2001-03-23 Thread Scot W. Hetzel

From: "Olivier Wegria" <[EMAIL PROTECTED]>
> I just finished the setup of Cyrus 2.0.12 + postfix on my RH7 + 2.4.2
kernel
> and it works fine.
>
> Now, I trying some settings on outlook 2000 and outlook express and here
are
> two 2 questions I can't solve.
>
> 1. I created a mailbox under cyradm (cm user.olivier). When I connect to
it
> with outlook, the 1st folder is the inbox and I can't create other folders
> on the same level (like sent items, ...) Is there something I am missing?
>
> Basically, I would like to see this in Outlook
>
>  cyrus server
> |
> |---Inbox
> |---sent items
> |---folder 1
>
You can't do this with Outlook 97/98/2000.  Outlook Express can make it
appear as if the "Sent Items" & "Drafts" folders are at the same level, but
you either have to set "Root Folder Path" in the IMAP Account's properties
or edit the registry.  See the following message for the complete details:

http://asg.web.cmu.edu/archive/message.php3?index=5091&array_index=2

>  2. I have SASL with CRAM-MD5, Plain and Digest-MD5 but I can't use the
> secure authentication connection from outlook. I checked with imtest and
> sasl works with all auth method. Is outlook using something else?
>
When you compiled Cyrus-SASL, did you configure it with "--enable-login", as
this enables the LOGIN mech used by Outlook Express & Outlook.

see http://www.sendmail.org/~ca/email/mel/SASL_ClientRef.html for the
auth mech's used by various e-mail clients.

Scot




Re: Virtual domains, SASL, PAM, LDAP

2001-04-13 Thread Scot W. Hetzel

From: "John C. Amodeo" <[EMAIL PROTECTED]>
> One other question to add to my previous e-mail.  Are you supposed to use
the "Cyrus LDAP
> auth patch" or the "Cyrus SASL 1.5.24 LDAP auth and mysql patch"?
>
Use the LDAP + MySQL patch.

> If you have to use the "Cyrus SASL 1.5.24 LDAP auth and mysql patch" do
you have a
> modified version minus the mysql stuff, or is it simple enough to remove?
>

I created the LDAP + MySQL auth patch found on www.surf.org.uk to use
compile time options [LDAP (--with-ldap), MySQL (--with-mysql)].

Just compile Cyrus-SASL with "--with-ldap=/path/to/ldap --without-mysql" to
exclude the MySQL support from being compiled into the SASL library.

Scot W. Hetzel





Re: Delivery into subfolders?

2001-05-02 Thread Scot W. Hetzel

From: "Ralf Quebbemann" <[EMAIL PROTECTED]>
> I am experiencing problems with the delivery of mails into subfolders. I 

> When a user has defined some filter rules in his client that move mails 
> with particular subjects to certain subfolders, cyrus-imapd delivers 
> still only to the INBOX. The ACL's are set to allow everything (well at 
> least to my knowledge). I took a look into the source code and played a 

> Now my question: Does anybody else have experienced the same problems? 
> Am I doing something seriously wrong when I apply this patch?
> I guess, the ACL's of the mailboxes are not set properly otherwise a 
> delivery into subfolders should work.
> Does anybody have a better idea of solving this problem?
> 
What rights do you have set for the "anyone" user on that subfolder?

You need to have the posting right for the "anyone" user.

sam user.username.subfolder anyone p

Scot




Re: connect(/var/imap/socket/lmtp) failed

2001-05-31 Thread Scot W. Hetzel

From: "Tom Corner" <[EMAIL PROTECTED]>
> I have been searching around to find more information on my problem.
> I found this in /var/lg/messages:
>
> May 31 12:00:07 www sendmail[281]: f4VA06b00279: to=corner, ctladdr=corner
> (1001/100), delay=00:00:01, xdelay=00:00:00, mailer=cyrus, pri=30094,
> dsn=4.0.0, stat=Deferred: cyrus mailer (/usr/cyrus/bin/deliver) exited
with
> EX_TEMPFAIL
>
> I guess it shows that sendmail is trying to pass mail to deliver and
deliver is
> exiting with an error.  But I sure can't see why.  Maybe you can make some
> sense out of this.
>
The problem most likely is that sendmail is trying to run deliver as the
user "corner" instead of imap.  You'll need to set the appropriate flags for
the cyrus mailer.

dnl This stuff actually makes Cyrus work as the local mailer
dnl The flags A5@/:| are standard
dnl w: look up users in passwd file - enables .forward processing.
dnl S: always run deliver as the cyrus user
dnl The mXz flags are there to enable LMTP support with the -l flag on
deliver.
define(`CYRUS_MAILER_FLAGS', `SA5@|:/wmXz')dnl
define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl


The real question is why are you using deliver with cyrus 2.x.  You should
be using the cyrusv2.mc file, which allows sendmail to deliver messages
directly to the lmtpd daemon.

Scot




Re: connect(/var/imap/socket/lmtp) failed

2001-05-31 Thread Scot W. Hetzel

From: "Tom Corner" <[EMAIL PROTECTED]>
> > The problem most likely is that sendmail is trying to run deliver as the
> > user "corner" instead of imap.  You'll need to set the appropriate flags
for
> > the cyrus mailer.
> >
> > dnl This stuff actually makes Cyrus work as the local mailer
> > dnl The flags A5@/:| are standard
> > dnl w: look up users in passwd file - enables .forward processing.
> > dnl S: always run deliver as the cyrus user
> > dnl The mXz flags are there to enable LMTP support with the -l flag on
> > deliver.
> > define(`CYRUS_MAILER_FLAGS', `SA5@|:/wmXz')dnl
> > define(`CYRUS_MAILER_ARGS', `deliver -l -e')dnl
> Now I am going to be really stupid.  Where to I put the abovE?
>
You add it to the cyrusproto.mc file.

Scot