Re: [Courier-imap] max value for maildirsize

2008-01-31 Thread Francis Galiegue
Le jeudi 31 janvier 2008, Jose Celestino a écrit :
 Words by Sam Varshavchik [Thu, Jan 31, 2008 at 07:08:11AM -0500]:
  Felipe Neuwald writes:
 
  Does anybody knows how can I fix this?
 
  Upgrade to a 64 bit platform.
 
  On some platforms, it is possible to enable 64 bit file size support by 
  using some custom flags when compiling code, usually by defining 
  _FILE_OFFSET_BITS=64 or _LARGE_FILES=1. If that's the case, you will 
need 
  to reconfigure and recompile everything, with those custom flags.
 
  I'm running a 32bit platform. That's the only way?
 
  Yes, until someone changes certain fundamental laws of physics in this 
  universe, which limits signed 32 bit values to a maximum value of 
  2147483647.
 
 
 Of course that you could use a long long. You know that, right?
 

Provided that the target compiler supports it. AFAIK, Courier IMAP doesn't 
require gcc.

-- 
Francis Galiegue, [EMAIL PROTECTED]
[ATTENTION - CHANGEMENT D'ADRESSE !]
40 av Raymond Poincaré, 75016 PARIS
+33178945570, +33683877875

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] max value for maildirsize

2008-01-31 Thread Francis Galiegue
Le jeudi 31 janvier 2008, Jose Celestino a écrit :
 Words by Francis Galiegue [Thu, Jan 31, 2008 at 03:59:36PM +0100]:
  Le jeudi 31 janvier 2008, Jose Celestino a écrit :
   Words by Sam Varshavchik [Thu, Jan 31, 2008 at 07:08:11AM -0500]:
Felipe Neuwald writes:
   
Does anybody knows how can I fix this?
   
Upgrade to a 64 bit platform.
   
On some platforms, it is possible to enable 64 bit file size support 
by 
using some custom flags when compiling code, usually by defining 
_FILE_OFFSET_BITS=64 or _LARGE_FILES=1. If that's the case, you will 
  need 
to reconfigure and recompile everything, with those custom flags.
   
I'm running a 32bit platform. That's the only way?
   
Yes, until someone changes certain fundamental laws of physics in this 
universe, which limits signed 32 bit values to a maximum value of 
2147483647.
   
   
   Of course that you could use a long long. You know that, right?
   
  
  Provided that the target compiler supports it. AFAIK, Courier IMAP doesn't 
  require gcc.
  
 
 And being long long supported on C99 and assured to be 64 bits is of no
 value, of course.
 

Not all compilers support C99. In fact, gcc doesn't even support the whole 
standard.

And, well, the problem is with MySQL to start with - which also happens not to 
require gcc anyway.

-- 
Francis Galiegue, [EMAIL PROTECTED]
[ATTENTION - CHANGEMENT D'ADRESSE !]
40 av Raymond Poincaré, 75016 PARIS
+33178945570, +33683877875

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] recovering from source/rpm install user stuffup

2007-10-16 Thread Francis Galiegue
Le mardi 16 octobre 2007, Voytek Eymont a écrit :
 OK, I'm still trying to recover:
 
 I've uninstalled and reinstalled both courier-imap and courier-authlib*
 more times that I'm willing to admit, I've got authlib working, but, cant
 start imap as it's looking for courierlogger in wrong spot:
 
 does that mean my executable has been compiled looking for it in 'wrong
 spot' ?
 
 so, I need to re generate RPMs ?
 
 and, make sure the path in .spec is correct ??
 

Curious that your RPM could just _build_ given the situation: as far as I've 
seen, configure looks for the courierlogger executable before it OK'es 
Courier-IMAP construction. Wouldn't you have built this RPM _before_ removing 
a dangling courierlogger in /usr/local/sbin?

-- 
Francis Galiegue, [EMAIL PROTECTED]
[ATTENTION - CHANGEMENT D'ADRESSE !]
40 av Raymond Poincaré, 75016 PARIS
+33178945570, +33683877875

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] famd : use or disable ?

2007-10-16 Thread Francis Galiegue
Le mardi 16 octobre 2007, Voytek Eymont a écrit :
 what do I need to do about famd ?
 
 disable or is it worthwhile to try to get it going ?
 
 I came across some negative comments about famd, hence my Q
 
 maillog has like:
 
 Oct 17 00:34:36 bilby imapd: Failed to connect to socket /tmp/fam--
 Oct 17 00:34:36 bilby imapd: Failed to create cache file: maildirwatch
 ([EMAIL PROTECTED])
 Oct 17 00:34:36 bilby imapd: Error: Input/output error
 Oct 17 00:34:36 bilby imapd: Check for proper operation and configuration
 Oct 17 00:34:36 bilby imapd: of the File Access Monitor daemon (famd).

I've never used it. The INSTALL file says:

 * FAM, the File Alteration Monitor (http://oss.sgi.com/projects/fam/) is
   optional. If FAM is installed, it is used for an enhanced IMAP IDLE
   implementation that provides real-time folder status updates to
   concurrent IMAP clients that have the same folder opened.

I've never had to deal with the usage scenario mentioned, so I never enabled 
it. Would be useful if you use a lot of shared maildirs, though. YMMV.

-- 
Francis Galiegue, [EMAIL PROTECTED]
[ATTENTION - CHANGEMENT D'ADRESSE !]
40 av Raymond Poincaré, 75016 PARIS
+33178945570, +33683877875

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] recovering from source/rpm install user stuffup

2007-10-16 Thread Francis Galiegue
Le lundi 15 octobre 2007, Tony Earnshaw a écrit :

 
 Ergo, you haven't installed Courier authlib. Or if you have, you've 
 installed it to /usr/local, where Courier IMAP isn't looking, without 
 doing the ldconfig stuff.
 
 For goodness sake read the docs provided for you in the Courier IMAP 
 tarball; failure to do so, then complain, is regarded as a hanging 
 offense in my domain. Even if you only install the RPM, you still have 
 an rpm BUILD directory with all the documentation in it, so go find it.
 
 FWIW, I used (years ago) to install everything non-Red Hat as source 
 code and experienced much. *much* hell. Sam kept on bitching at me about 
 installing only rpms on Red Hat, in his own sweet manner, until I 
 finally got the message and now refuse to install *any* Red Hat software 
 whatsoever if it's not in the form of an rpm. I even learned to write my 
 own rpm specs for software where there's no rpm available. At the same 
 time, I *do* always make sure I read *all* the documentation before I 
 ask any question on any list. Mostly I don't, any longer, ask any 
 question on any list.
 
 CentOS is gratis (free as in beer). There's no excuse for a savvy 
 sysadmin not to upgrade to CentOS5, you're heaping coals on the fire by 
 continuing with CentOS4.
 

Meh.

As a trained RPM packager (been doing/managing RPMs for more than 8 years) I 
can relate to what you say but only partially. Knowing about RPM packaging is 
NO REASON to blame people about NOT knowing.

Give them pointers. Instead of saying RTFM, go a step further and PROVE that 
you understand the problem by giving insights on what could have gone wrong.

The saying goes that you learn more from one error than a thousand 
reads/courses. I'm sure Vojtek will have learned a lot from his RPM 
experience.

I'm just starting to get used to Gentoo's ebuilds (and some of their decisions 
are VERY questionable indeed, I won't deny it). But instead of getting bashed 
upon like I was, I'd have preferred to have pointers. Just like I helped 
Vojtek sort out his problems.

-- 
Francis Galiegue, [EMAIL PROTECTED]
[ATTENTION - CHANGEMENT D'ADRESSE !]
40 av Raymond Poincaré, 75016 PARIS
+33178945570, +33683877875

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] Upgrade from Courier IMAP 4.0.3 to 4.0.6: pop3d-ssl login fails

2007-10-13 Thread Francis Galiegue
Hello everyone,

I've upgraded yesterday night to Courier IMAP 4.0.6, on a Gentoo Linux system, 
x86 arch. I'm using courier-imap's own scripts to startup, instead of Gentoo 
scripts, but now I get this error in the logs:


Oct 13 13:04:26 ns35774 pop3d-ssl: Connection, ip=whatever
Oct 13 13:04:26 ns35774 pop3d-ssl: pop3d: Too many arguments
Oct 13 13:04:26 ns35774 pop3d-ssl: Try `pop3d --help' or `pop3d --usage' for 
more information.


Curiously enough, on a pstree, I see this:

  |-couriertcpd,14281 -address=0 
-stderrlogger=/usr/lib/courier-imap/courierlogger 
-stderrloggername=imapd-maxprocs=100

Just looks like a space is missing in -stderrloggername=imapd-maxprocs=100, 
doesn't it?

-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 40 av. Raymond Poincaré, 75116 PARIS CEDEX
+33683877875

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Upgrade from Courier IMAP 4.0.3 to 4.0.6: pop3d-ssl login fails

2007-10-13 Thread Francis Galiegue
Le Saturday 13 October 2007 15:12:41 Sam Varshavchik, vous avez écrit :

 There's no such error message in Courier-IMAP.


I know...


 There's nothing that even vaguely resembles 'imapd-maxprocs' in Courier's
 startup scripts.


I said:

 a space is missing

because I think it should read:

 -stderrloggername=imapd -maxprocs=100

And both the startup scripts and config files are OK. Oh yeah, I also happen 
to use Courier's original startup scripts, not Gentoo's. The only difference 
is that I upgraded to 4.0.6.

 Remove all traces of everything you installed, then follow the instructions 
 in Courier's INSTALL file to get a clean, working install

Oh, please! Is there somewhere in your vocabulary the word nice or anything? 
I cured the problem anyway (back to 4.0.3), and I don't write to the list to 
get bashed upon like this. If you don't want to/can help, pleas refrain from 
answering.

Thanks (not),
-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 40 av. Raymond Poincaré, 75116 PARIS CEDEX
+33683877875

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Upgrade from Courier IMAP 4.0.3 to 4.0.6: pop3d-ssl login fails

2007-10-13 Thread Francis Galiegue
Le Saturday 13 October 2007 18:09:32 Tony Earnshaw, vous avez écrit :


 I run Fedora FC6 and Red Hat RHEL5 with rpms built from Sam's tarballs,
 I've been running Courier IMAP (literally) for years and there is
 *nothing* in my ps stuff or startup scripts like yours.


Look in @libexecdir@/imapd.rc.


 You are *not* running Sam's stuff, you are running something else.


I _DO_ _RUN_ _THEM_, damnit! Gentoo's custom scripts are broken. Quoting my 
first mail:

 I'm using courier-imap's own scripts to startup, instead of Gentoo 
 scripts


 What does nice (a Unix term for process priority) have to do with
 anything? Sam does not suffer fools gladly. Follow what the man says to
 the letter, and you will have no more problems.


[ I'm not retarded as to not know what nice means, thank you very much. Ya 
know, nice has a meaning in English, too. I won't comment on the fool.]

Nice as in giving hints, being helpful or the like. You know, such 
as Courier's pop3d never outputs such a message, are you sure this is the 
good pop3d? Check with your package manager or There is a -stderrlogname 
and a -maxprocs option, something else is wrong (again, I told that I was 
using Courier IMAP's own startup scripts).

And indeed:

* the pop3d was not the good one. I also have GNU mailutils installed, 
and /usr/sbin/pop3d was the mailutils one. The thing is, in 4.0.3, the Gentoo 
build substitutes pop3d for courier-pop3d in the startup scripts, it's not 
done in the 4.0.6 build, hence the error;

* the no space error is a bug in the installed pstree! It truncates the line 
if it's over a certain length but for some reason it does not put a space in 
front of the last argument. The MySQL command lines, also very long, exhibit 
the same behaviour, but I noticed this only after I came back to the working 
4.0.3 install and observed the same bug.

-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 40 av. Raymond Poincaré, 75116 PARIS CEDEX
+33683877875

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Recommended filesystem to use?

2007-10-02 Thread Francis Galiegue
Le mardi 02 octobre 2007, Phill a écrit :
 Has anyone got a recommendation for the best file-system to use for 
 Courier? I've heard qmail and postfix can sometimes have problems with 
 ReiserFS, but ReiserFS is great for handline small files (such as 
 email). I've heard good things about both JFS and XFS, but haven't had 
 any experience with them personally.
 
 Any tips would be great.
 
 -

Is that under Linux? I suppose so...

If yes, go with ext3. As always, it's not the best of breed theoretically, but 
it's the most well supported under Linux. I haven't had a single ext3 fs 
crash on me for the many years I've been using it. Other people may have had 
crashes of course, but then you do backups, don't you? ;)

-- 
Francis Galiegue, [EMAIL PROTECTED]
[ATTENTION - CHANGEMENT D'ADRESSE !]
40 av Raymond Poincaré, 75016 PARIS
+33178945570, +33683877875

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Which filesystem is the best one for maildir++

2007-07-11 Thread Francis Galiegue
Le mercredi 11 juillet 2007, [EMAIL PROTECTED] a écrit :
 Hello all,
 which filesystem is the best one for a partition
 containg only maildir++ mailboxes?
 
 We already use ReiserFS, but have a big IO-Wait.
 (SEARCH and ORDER is slow on big IMAP folders)
 
 Is XFS, JFS, ext3 (with journal and h-tree) or ext4 better?
 
 Any recommendations?
 

I take it you use Linux. Go with ext3. Not the fastest, not the best one 
theoretically, but THE most stable when you use Linux.

That's what I use on our enterprise mail server and it has never failed on me. 
OK, we only have 35 users. But OTOH it has never failed either on an Oracle 
server with a 750 GB, busy Oracle instance :p

-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Which filesystem is the best one for maildir++

2007-07-11 Thread Francis Galiegue
Le mercredi 11 juillet 2007, [EMAIL PROTECTED] a écrit :
 
  I take it you use Linux. Go with ext3. Not the fastest, not the best one
  theoretically, but THE most stable when you use Linux.
 OK. But which one would be the fastest (most efficient)?
 

Given that maildir++ is small files mostly, ReiserFS would be the fastest. But 
do you really favour speed over reliability?

[...]
 ReiserFS also never failed on our old Mailsystem with
 ~1000 Users. We just look for a more efficient one.
 

ReiserFS has failed on me more than once on a build server (which stresses a 
filesystem much more than a maildir++, even with 1000+ users), and was barely 
faster than ext3.

Believe me, stick with ext3.


-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Sub(sub)folders creation headaches

2007-06-23 Thread Francis Galiegue
Le Monday 18 June 2007 17:29:57 Francis Galiegue, vous avez écrit :
 Hello list,

[...]

Well, I've found the root of my problems. There was _one_ parameter in the 
imapd config file that turned out to be the problem: IMAP_OBSOLETE_CLIENT. 
Was 0, is 1, now everything works. I didn't even know why I set it to 0 in 
the first place.

Thanks to everyone for your patience, I'm afraid I lacked some for the last 
week ;)

Have fun,
-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée - 75011 PARIS
+33683877875, +33143381980

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Sub(sub)folders creation headaches

2007-06-19 Thread Francis Galiegue
Le mardi 19 juin 2007, Sam Varshavchik a écrit :
 Francis Galiegue writes:
 
  So far, the only successful attempt was with KMail, but I had to use the 
quite 
  ugly syntax INBOX.firstleveldir.secondleveldir.
 
 What syntax were you expecting to use?
 

Ermwell, just right click on the subfolder, select New subfolder, enter 
name, and voilà... With Dovecot/wu-imapd and mbox storage, It Just Works(tm). 
Heck, it even works with OutLook. With Courier IMAP and Maildir++ storage, it 
does _not_, and as far as I'm concerned, that's a fact. What I find really

I don't expect a mail client to send different commands to different IMAP 
server software, since it cannot tell them apart anyway. Neither can it tell 
whether the storage is mbox or Maildir. So, what's wrong?

 
  On our internal system, which uses wu-imapd (I know) and mbox storage, I 
have 
  no trouble at all creating subfolders, even if a folder cannot contain 
  messages.
 
 Neither does Courier-IMAP.
 

Maybe so... 

   I can even migrate the whole mbox tree to a Maildir tree and it's 
  viewed correctly by all MUAs cited above.
 
 See?  You would not've been able to do that, if it weren't the case.
 

As stated, the problem is with creation. I didn't expect the mbox/Maildir 
conversion to fail at all.

  What's more, I don't see any relevant configuration directive in the IMAP 
  server configuration file that could help --- at least, not a directive 
that 
  is documented.
 
 There are no configuration directives that would somehow allow Courier-IMAP 
 to fix limitations in IMAP clients.
 
[...]
 
 It works just fine, as long as the mail client properly implements IMAP.
 

This argument I've heard and reject outright. I want things to work, and as 
they don't currently, I'm trying to find a reason.

If it's _really_ a problem with clients, then I think the Courier IMAP page 
should have a Client issues page such as this one for Dovecot: 
http://wiki.dovecot.org/Clients

Regards,
-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] Sub(sub)folders creation headaches

2007-06-18 Thread Francis Galiegue
Hello list,

For a couple of days now, I've been trying to have the following MUAs create 
subfolders on a Courier IMAP (4.0.6) server, using Maildir storage (of 
course) and IMAP as a protocol:

* KMail 1.9.6,
* Thunderbird 1.5 (Windows),
* Outlook 2003

So far, the only successful attempt was with KMail, but I had to use the quite 
ugly syntax INBOX.firstleveldir.secondleveldir. No way with OutLook or 
Thunderbird.

From what I could google off the web, I've learned that:

* the original Maildir specification does _not_ allow for nested subfolders,
* Maildir++, however, does, and has been developped specifically for and by 
the Courier IMAP team,
* Courier IMAP claims to implement IMAP as well as it can be, given the state 
of specifications.

On our internal system, which uses wu-imapd (I know) and mbox storage, I have 
no trouble at all creating subfolders, even if a folder cannot contain 
messages. I can even migrate the whole mbox tree to a Maildir tree and it's 
viewed correctly by all MUAs cited above. But creation is a no no, except 
with the KMail hack. For this reason, I cannot envision a move to Courier 
IMAP for our internal system and am considering Dovecot and... mbox storage, 
since Dovecot suffers the exact same problems when using Maildir (except that 
I cannot even create subfolders with KMail this time).

What's more, I don't see any relevant configuration directive in the IMAP 
server configuration file that could help --- at least, not a directive that 
is documented.

Do you have any enlightenment on whether this can work at all? Is it written 
somewhere in the documentation and I have overlooked it (which I certainly do 
not reject as a possibility)? I'm at a complete loss here.

Thanks in advance for your replies, and have fun,
-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] [OT?] Migrating from uw-imapd (MAIL env var + mboxes) to Courier-IMAP (full Maildir): any suggestions?

2007-04-24 Thread Francis Galiegue
Hello everyone,

At work, we have a middle term project (planned for this summer) to migrate 
all mail to a newer server. This implies changing the authentication scheme 
(this I can handle, after all _I_ will make the authentication scheme and 
have prior experience with Courier IMAP) and the mailboxes --- and it's this 
latter point which causes me headaches.

The situation is as such: for now we use uw-imapd, which stores the INBOX in 
the MAIL environment variable, which is setup to /var/spool/mail/$USER. For 
the subdirectories, everything is stored in $HOME/mail for each user (so, for 
instance, a mailbox named Test in the IMAP tree would be in an mbox file 
named $HOME/mail/Test).

I know programs to convert from mailboxes to Maildirs exist (I have even used 
one at some occasion, with success). But the problem here is that the INBOX 
and the subdirectories are _not_ located at the same place, so I cannot use 
this tool to migrate both the INBOX and subdirectorires separately - or can 
I?

Would you have any suggestions on how I can achieve this? I'm at a loss here 
and would appreciate any pointers, even if it's the RTFM kind of pointers.

Thanks,
-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Problems authenticanting with ldap

2007-03-02 Thread Francis Galiegue
Le vendredi 02 mars 2007, Mário Gamito a écrit :
 Hi,
 
 I'm having troubles authenticating in courier-imap with or without SSL.
 Always tells me wrong credentials
 
 I send you here my stuff in case you can help me.
 
 Any help would be appreciated.
 
[...]

 Mar  2 09:28:29 email authdaemond: using search filter:
 ([EMAIL PROTECTED] mailto:[EMAIL PROTECTED])
 Mar  2 09:28:29 email authdaemond: number of entries returned: 0 (but we
 need exactly 1)

[...]
 ldif:
 --
 dn: uid=mgamito,ou=users,ou=accounts,dc=telbit,dc=pt

The module looks up the wrong uid: it tries to find the email address whereas 
the LDAP entry only contains the left part of it.

Looks like your problem is with your authdaemond configuration.

-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Maildir permission problem with virtual users under mysql

2006-12-11 Thread Francis Galiegue
Le lundi 11 décembre 2006 23:13, kazabe a écrit :
 Hi.

 I have a mail server with postfix+SA+clamav+Courier Imap/POP, using
 mysql to manage virtual domain and users.

 All work perfectly, except for a little strange problem with the
 Maildir Permission;  When the message is processed and saved in the
 maildir, is writed with read/write permission only for mysql !,

Do you mean that your mysql _unix_ account writes mails?

What UID does Courier use, and what UID owns the maildir ?

-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée - 75011 PARIS
+33683877875, +33143381980

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] encryption of passwords

2006-12-03 Thread Francis Galiegue
Le dimanche 03 décembre 2006 10:48, krystian a écrit :
 Hi!
 I have virtual users in mysql database with plain text passwords.
 Now I'd like to encrypt passwords in database. Which kind I should use
 (ex. md5, encrypt), so imap courier as well as postfix and squirellmail
 understand encrypted passwords too?


I do use crypted passwords here, the classical crypt(3) way. MySQL has the 
ENCRYPT() function to do that.

For Courier authlib, you'll need to set the MYSQL_CRYPT_PWFIELD variable 
instead of MYSQL_CLEAR_PWFIELD. If Courier handles these, Squirrelmail will, 
too, provided it uses Courier for authentication.

For Postfix, it's a little more complicated, and out of the scope of this 
mailing list, I think. I suggest you join the #postfix channel on Freenode 
(irc.freenode.net), I hang by there and do use encrypted passwords with 
Postfix and Courier, using saslauthd and pam_mysql.

I'd also advise you to do it step by step: Courier is the easiest to set up, 
so add a field to your database containing the crypted password, test with 
Courier, and only then try Postfix. SASL is a pain.

-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée - 75011 PARIS
+33683877875, +33143381980

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Courier Imap cant authenticate virtual users

2006-12-02 Thread Francis Galiegue
Le samedi 02 décembre 2006 12:03, kazabe a écrit :
 hi.

 Im using courier imap and pop in my server (Debian Sarge with virtual
 mail accounts with mysql ).

 When i try to authenticate using pop3, work perfectly;  i fetch my
 messages without any problem;  but if try to use imap, simply the auth
 cant be stablished;

 exist some difference between the courier-pop auth process and the
 courier-imap?

 how can i find the cause about this problem?


Both use the Courier authlib mechanism to authenticate. Try and debug what 
happens at this level. Add DEBUG_LOGIN=1 or DEBUG_LOGIN=2, but beware, the 
latter shows passwords in the logs.

-- 
Francis Galiegue, [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée - 75011 PARIS
+33683877875, +33143381980

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


Re: [Courier-imap] Removing quotas

2006-11-30 Thread Francis Galiegue
Le jeudi 30 novembre 2006 14:53, vous avez écrit :
 Francis Galiegue wrote:
[...]

 You didn't specify the guide you followed or the details of what you did 
 but my guess is that it's just using quotas stored in the Maildir.

The guide is http://workaround.org/articles/ispmail-sarge/ - with some 
adaptations as I run Gentoo and not Debian.

I've already removed the necessary configuration from Postfix.

 try: 
 
 rm $HOME/Maildir/maildirsize
 
 If the quota is stored in your MySQL or LDAP backend you may need to 
 clear that field also.
 

No maildirsize... Probably because I created maildirs by hand using 
maildirmake.

There is a quota field in the users table but it's not referenced anywhere. So 
I guess I'm all set already.

Thanks!

-- 
Francis Galiegue, [EMAIL PROTECTED]
12bis rue de la Pierre Levée, 75011 PARIS
+33143381980, +33683877875

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] Courier POP3D{, -SSL} won't start, and logs remain silent

2006-11-15 Thread Francis Galiegue
Hello,

I've a big problem starting courier-pop3d or courier-pop3d-ssl, neither
will start and I cannot figure out why. I have no logs _at_ _all_.

On this same machine, the IMAP server is already running (with TLS
support) along with the authdaemon. Both work flawlessly. This is Courier
IMAP 4.0.3 and Courier authlib 0.58, on a Gentoo 2006.1.

Here's the pop3d configuration file (comments stripped):


PIDFILE=/var/run/pop3d.pid
MAXDAEMONS=100
MAXPERIP=100
POP3AUTH=PLAIN LOGIN
POP3AUTH_ORIG=PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256
POP3AUTH_TLS=PLAIN LOGIN
POP3AUTH_TLS_ORIG=PLAIN LOGIN
POP3_PROXY=0
PORT=110
ADDRESS=0
TCPDOPTS=-nodnslookup -noidentlookup
LOGGEROPTS=-name=pop3d
POP3DSTART=YES
MAILDIRPATH=.maildir
MAILDIR=.maildir
PRERUN=
LOGINRUN=


Here's the pop3d-ssl configuration file (the pop3d.pem certificate does
exist):


SSLPORT=995
SSLADDRESS=0
SSLPIDFILE=/var/run/pop3d-ssl.pid
SSLLOGGEROPTS=-name=pop3d-ssl
POP3DSSLSTART=YES
POP3_STARTTLS=YES
POP3_TLS_REQUIRED=1
COURIERTLS=/usr/sbin/couriertls
TLS_PROTOCOL=SSL3
TLS_STARTTLS_PROTOCOL=TLS1
TLS_CERTFILE=/etc/courier-imap/pop3d.pem
TLS_VERIFYPEER=NONE
TLS_CACHEFILE=/var/lib/courier-imap/couriersslcache
TLS_CACHESIZE=524288
MAILDIRPATH=.maildir
MAILDIR=.maildir


Here's the authdaemonrc configuration:


authmodulelist=authmysql
authmodulelistorig=authvchkpw
daemons=10
authdaemonvar=/var/lib/courier/authdaemon
DEBUG_LOGIN=1
DEFAULTOPTIONS=disablepop3=0
LOGGEROPTS=-facility=mail


The authmysqlrc file:


MYSQL_SERVER localhost
MYSQL_USERNAME someuser
MYSQL_PASSWORD somepassword
MYSQL_PORT 0
MYSQL_DATABASE mail_data
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD 1001
MYSQL_GID_FIELD 1001
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD /home/vmail/mail
MYSQL_MAILDIR_FIELD
CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')


Finally, here are the scripts used by Gentoo to launch the pop3d{,-ssl}
daemons. For both I verified that the different programs called did exist,
and they do. But the scripts themselves fail silently...

For pop3d (all comments stripped):

prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/lib/courier-imap
source /etc/courier-imap/pop3d-ssl
source /etc/courier-imap/pop3d
export POP3DSTARTTLS=$POP3_STARTTLS
TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL
eval `sed -n '/^#/d;/=/p' /etc/courier-imap/pop3d | \
sed 's/=.*//;s/^/export /;s/$/;/'`
eval `sed -n '/^#/d;/=/p' /etc/courier-imap/pop3d-ssl | \
sed 's/=.*//;s/^/export /;s/$/;/'`
eval $PRERUN \
/usr/lib/courier-imap/couriertcpd -address=$ADDRESS \
-stderrlogger=/usr/lib/courier-imap/courierlogger \
-stderrloggername=pop3d \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
-pid=$PIDFILE $TCPDOPTS \
$PORT ${exec_prefix}/sbin/pop3login \
/usr/lib/courier-imap/courier-pop3d.indirect ${MAILDIR}


For pop3d-ssl:


prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/lib/courier-imap
source /etc/courier-imap/pop3d
source /etc/courier-imap/pop3d-ssl
export POP3_TLS=1
eval `sed -n '/^#/d;/=/p' /etc/courier-imap/pop3d | \
sed 's/=.*//;s/^/export /;s/$/;/'`
eval `sed -n '/^#/d;/=/p' /etc/courier-imap/pop3d-ssl | \
sed 's/=.*//;s/^/export /;s/$/;/'`
eval $PRERUN \
/usr/lib/courier-imap/couriertcpd -address=$SSLADDRESS \
-stderrlogger=/usr/lib/courier-imap/courierlogger \
-stderrloggername=pop3d-ssl \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
-pid=$SSLPIDFILE $TCPDOPTS \
$SSLPORT $COURIERTLS -server -tcpd \
${exec_prefix}/sbin/pop3login \
/usr/lib/courier-imap/courier-pop3d.indirect ${MAILDIR}



First thing, how do I obtain logs? Not having any is really troublesome
when you look into debugging what happens... And, well, the available
documentation is of no help.

Any help appreciated. Have a nice day,
-- 
Francis Galiegue, fg (at) one2team [dot] com
One2team - 12bis rue de la Pierre Levée, 75011 PARIS
tel +33143381980



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap


[Courier-imap] SOLVED (was Re: Courier POP3D{, -SSL} won't start, and logs remain silent)

2006-11-15 Thread Francis Galiegue

On Wed, November 15, 2006 22:23, Brian Candler wrote:
[...]

 courier's own scripts work just fine.


Well you were right. Fortunately they did keep the original scripts, so I
changed the init script to use them instead. And it works.

Thanks!

-- 
Francis Galiegue, fg (at) one2team [dot] com
One2team - 12bis rue de la Pierre Levée, 75011 PARIS
tel +33143381980



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap