Rob Siemborski | 1 Oct 01:02 2003
Picon

Re: System I/O error

On Tue, 30 Sep 2003, Marcelino Vallejo wrote:

> Hi guys.
>
> I know that questions like this might be asked thousands of times but I
> am stuck.
> I have deleted a user mailbox that had troubles, and I can´t eliminate
> this from the database:

Don't do that.

> user.username.INBOX^Sent: System I/O error No such file or directory
> user.username.INBOX^Trash: System I/O error No such file or directory
> user.username.Trash.INBOX^Drafts: System I/O error No such file or directory
>
> I also have tried with reconstruct, even when the user account was
> alive, and creating the mentioned directories.

You can stop the server, dump the mailbox list, remove the affected
entries, and undump the mailbox list.

You can also play games that try to "fake out" reconstruct, but that's
probably not a great idea.  Newer reconstructs do slightly better in this
situation (by which I mean 'current cvs').

-Rob

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

Mike Brodbelt | 1 Oct 01:33 2003
Picon

Re: Sieve interface for spam filtering scripts?

> Squirrelmail has a sieve plugin. Maybe give that a try ;)

I'll second that. I'm using Squirrelmail and the sieve plugin in
production, and can vouch for it. Works very well, and users have no
problem setting up spam filtering. I use sendmail/milter/spamassassin to
tag all incoming mail - it's then up to each user to enable the filter or
not for their account, as they so choose.
The Sieve plugin also provides easy set up of out of
office/vacation/canned autoresponse to some aliases and various other
things.
Mike.

代考中心 | 1 Oct 03:31 2003

(unknown)


Joe Rhett | 1 Oct 05:42 2003
Picon

Re: 2.2.1-beta, Redhat 8; lmtpd continuously stuck on select( 0, ...)

On Tue, Sep 30, 2003 at 04:20:04PM -0400, Etienne Goyer wrote:
> On Tue, Sep 30, 2003 at 12:15:45PM -0700, Joe Rhett wrote:
> > Okay, I've had no drama at all getting recent versions of 2.2 to work like
> > a champ on Solaris, but Redhat appears to be a beast of a different color.
> 
> It's red.     ;)
> 
> > I'm happy to debug this, but I need to know what to look for.  Tell me what
> > you need to know.
> 
> Which MTA do you use ?  Postfix under RedHat is chroot'ed by default;
> you need to configure Postfix to connect to /etc/???, such as :
> 
>     mailbox_transport = lmtp:unix:/etc/lmtpproxy
> 
> and create the socket under the chroot jail as /var/spool/postfix/etc/lmttproxy.

I've not yet configured an MTA.  We're focused on a system injecting
messages into IMAP.  I'm just using deliver by hand at this point in time.
(and also very aware of the postfix chroot situation)

Focus on the lmtpd -- what is the select failing on?  Is that a lock
failing, or the socket itself?

--

-- 
Joe Rhett                                                      Chief Geek
JRhett <at> Isite.Net                                      Isite Services, Inc.

Simon Matter | 1 Oct 08:50 2003

Re: Summary/Confirmation - RedHat sasl libraries don't work with 2.2.x

Joe Rhett schrieb:
> 
> I'd like to note for the record (and anyone else searching) that the sasl
> that ships with Redhat WILL NOT work with 2.2.1.  It returns OK with an
> empty realm.  For unknown reasons, Cyrus then returns an
>     "Login failed: can't request info until later in exchange"
> 
> I'm not sure why Cyrus 2.2.1 is unhappy with the OK response, but it is.

IIRC this is only the case when authenticating using saslauthd, not when
using sasldb.

Simon

> 
> As per the only thread I could find on this subject, upgrading to sasl 2.1.15
> solved the problem.  I left the Redhat plugins and saslauthd in place, just
> replaced the shared library and it works.  So Rob's suggestion was correct.
> (Sorry, can't find the original thread handy)
> 
> Can someone with a RedHat contract persuade them to provide updates from
> 2.1.10-3 to 2.1.15 ?
> 
> As stated above, I'm just reaffirming this for other searchers.  When I'm
> searching for solutions to problems, I always appreciate finding confirmation
> that a problem was replicable.
> 
> --
> Joe Rhett                                                      Chief Geek
> JRhett <at> Isite.Net                                      Isite Services, Inc.
(Continue reading)

Ramprasad A Padmanabhan | 1 Oct 09:34 2003
Picon

Problems with pop access

I am using cyrus imapd 2.1.13 on redhat 9.0 with saslauthd and pam_ldap for authentication

Most of my users are using pop access but sometimes the server just refuses connection, or accepts connection and delivers mail but does not delete mail from the server.
I restart cyrus and things start working fine

If such a thing happens
How do I start cyrus in a debug mode so that I can see what is going wrong



Thanks
Ram

Alexandros Vellis | 1 Oct 11:33 2003
Picon

Re: Sieve interface for spam filtering scripts?

On Wed, 1 Oct 2003 00:33:33 +0100 (BST)
"Mike Brodbelt" <m.brodbelt <at> acu.ac.uk> wrote:

> > Squirrelmail has a sieve plugin. Maybe give that a try ;)
> 
> I'll second that. I'm using Squirrelmail and the sieve plugin in
> production, and can vouch for it.

In my TODO list there has been an entry for "ready-made" rules for a
long time; I'm planning to implement this probably in the next (major?)
release. It will essentially let the user click on "Add Spam Rule" or
something equivalent, and an administrator-defined spam rule will be
created in a snap.

I'm still looking into the options that this kind of simplified rule
could offer to Joe User, or any other possibilities for "ready-made",
site-specific rules, for that matter.

--

-- 
Alexandros Vellis       University of Athens
avel <at> noc.uoa.gr         Network Operations Centre
        http://www.noc.uoa.gr/~avel/
Public Key: http://www.noc.uoa.gr/~avel/gpgkey.asc
Hank Beatty | 1 Oct 16:47 2003
Picon
Picon

Re: mailboxes.db problem cont.

Many thanks to Scott Adkins and Joe Hrbek for all of their help.

Here are a couple of scripts that I wrote to rebuild the mailboxes.db.
The scripts do not take into account default domain, basic or no
directory hashing, multiple partitions, and possibly other things, but I
figured they might give someone a head start if they run into this
problem.

shell script "repairMBoxDB"

#!/bin/sh
#stop Cyrus imapd before running this script

#get the directories
ls -R /var/spool/imap/* | grep "/" > /bin/scripts/mboxRepair/directories

#run perl repair script (this doesn't actually do any repairing)
/bin/scripts/mboxRepair/mboxRepair.pl

#cp the file to Cyrus' home directory and change the ownership
cp /bin/scripts/mboxRepair/newMBoxList /home/cyrus/
chown cyrus:mail /home/cyrus/newMBoxList

#save off the current mailboxes.db 
mv /var/imap/mailboxes.db /var/imap/mailboxes.db.backup

#import the new mailbox list
su - cyrus -c "umask 077 ; /usr/cyrus/bin/ctl_mboxlist -u <
/home/cyrus/newMBoxList"

#EOF

perl script mboxRepair.pl

#!/usr/bin/perl

&openDirectoriesFile;

&rewriteFormat;

&scriptExit;

sub openDirectoriesFile {
   my ($lSuccess, $lName);

   $lName = "directories";
   $lSuccess = open (fhDirectories, "/bin/scripts/mboxRepair/$lName");
   if (!$lSuccess) {
      print "Didn't open " . $lName . ": $!\n";
      &scriptExit ();
   }
}

sub scriptExit {
   close (fhDirectories);
   close (fhNewMBoxList);
   exit();
}

sub rewriteFormat {
   my ($lSuccess, $lNewLine, $lCount, $lArrayCount, $lSortedCount);
   my ( <at> lArray,  <at> lUnsortedArray,  <at> lSortedArray);

   $lName = "newMBoxList";
   $lSuccess = open (fhNewMBoxList, ">/bin/scripts/mboxRepair/$lName");
   if (!$lSuccess) {
      print "Didn't open " . $lName . ": $!\n";
      &scriptExit ();
   }
   $lArrayCount = 0;
   while(<fhDirectories>){
      chomp;                                 # no newline
      s/#.*//;                               # no comments
      s/^\s+//;                              # no leading white
      s/\s+$//;                              # no trailing white
      next if ($_ =~ m/\/mail:$/);           # no lines ending with
/mail:
      s/:$//;                                # no ending colons
      s/^\/var\/spool\/imap\///;             # no /var/spool/imap/
      next if ($_ !~ m/\//);                 # get rid of any line that
doesn't
have a /
s/domain\/[A-Z]//;                     # get rid of domain/A, domain/B,
domain/C, etc.
      s/^\///;                               # no / at the beginning of
a line
      next if ($_ !~ m/\//);                 # get rid of any line that
doesn't
have a /
      next if ($_ !~ m/\/user\//);           # get rid of any line that
doesn't
have /user
      next unless length;                    # anything left?
       <at> lArray = split ("/", $_);
      $lNewLine = sprintf ("%s!%s.%s", $lArray[0], $lArray[2],
$lArray[3]);
      $lCount = 4;
      while ($lArray[$lCount]) {
         $lNewLine = sprintf ("%s.%s", $lNewLine, $lArray[$lCount]);
         $lCount++;
      }
      #now we are going to put it into an array so we can sort it
      $lUnsortedArray[$lArrayCount] = $lNewLine;
      $lArrayCount++;
   }
    <at> lSortedArray = sort { $a cmp $b }  <at> lUnsortedArray;

   #now take the sorted array and put it in the proper format and
   #write it to a file
   while ($lSortedArray[$lSortedCount]) {
       <at> lArray = split (/\./, $lSortedArray[$lSortedCount]);
      $lArray[2] =~ s/\^/\./;
      my  <at> lDomain = split (/!/, $lSortedArray[$lSortedCount]);
      $lNewLine = sprintf ("%s\tdefault\t%s <at> %s\tlrswipcda\t",
$lSortedArray[$lSortedCount], $lArray[2], $lDomain[0]);
      print fhNewMBoxList "" . $lNewLine . "\n";    # write to a new
file
      $lSortedCount++;
   }
}

On Mon, 2003-09-29 at 08:52, Hank Beatty wrote:
> It was indeed the tab at the end of each line that caused the problem. I
> added the tab to the end of each line and implemented it about 3 PM
> Saturday afternoon and brought the server back on line.
> 
> On Sun, 2003-09-28 at 12:14, Rob Siemborski wrote:
> > On Sat, 27 Sep 2003, Hank Beatty wrote:
> > 
> > > Took dir.txt and converted it to the format of mboxlist file (except for
> > > the tab on the end of each line. Not sure if this caused a problem)
> > 
> > This will likely cause a problem with the ACLs.
> > 
> > > The above steps got POP working, but IMAP gives ???Mailbox does not
> > > exist??? when trying to select the ???INBOX??? using squirrelmail.
> > 
> > I suspect this can be caused by a munged ACL.
> > 
> > > I also tried using the reconstruct command before and after moving the
> > > mailboxes.db to no avail. At this point I???m thinking of writing the
> > > ???m option of reconstruct unless anyone has some better ideas or has
> > > already written something that might help. While writing the ???m option
> > > I might try to figure out why the ???f and ???r options of reconstruct
> > > didn???t appear to work in my case. I???m wondering if the ???f and ???r
> > > options don???t work because I???m using the fulldirhash option.
> > 
> > -r means "look at the mailbox list and descend"
> > 
> > -f means "look at subdirectories" which won't always work quite right on
> > top level mailboxes because of how hashing is done.
> > 
> > Its unlikely fulldirhash affected this at all.
> > 
> > -Rob
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
> > Research Systems Programmer * /usr/contributed Gatekeeper
--

-- 
Hank Beatty <hbeatty.lists <at> earthlink.net>

Frederic Perrouin | 1 Oct 17:04 2003
Picon

Problem Make perl imap ld

Is there anybody to help me ??

I try to compile Cyrus 2.2.1 on AIX 5.2.

I got this error in perl/imap :

Running Mkbootstrap for Cyrus::IMAP ()
        chmod 644 IMAP.bs
        rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
        LD_RUN_PATH="/lib:/usr/local/lib:/opt/freeware/lib" ld  -bhalt:4
-bM:SRE -bI:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp
-bE:IMAP.exp -bnoentry -lpthreads -lc_r IMAP.o  -o
blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a
../../lib/libcyrus_min.a  -ldb-3.3 -L/usr/local/lib -lsasl2
-L/opt/freeware/lib -L/opt/freeware/lib -lssl -lcrypto
ld: 0711-317 ERROR: Undefined symbol: .__eprintf
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.

I haven't found anything about this !

Fred

Patrick Welche | 1 Oct 18:25 2003
Picon
Picon

Re: Sieve interface for spam filtering scripts?

On Tue, Sep 30, 2003 at 12:44:12PM -0700, Pat Lashley wrote:
.. 
> I'll also be checking out Websieve, Smartsieve, and "damn, none of
> these do what I want so I'll have to roll my own".

.. and the avelsieve plugin to squirrelmail..

Cheers,

Patrick


Gmane