RE: Migrating 12,000 students

2001-02-26 Thread Grant Beattie

we use some custom sendmail rules to deliver mail to IMAP folders based on a
flat file containing the usernames of those who wish to use IMAP.

All others go to /var/mail/username.

I can post the rules here, if you like, it's fairly straightforward stuff.

g.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> Salmon
> Sent: Tuesday, 20 February 2001 7:41 PM
> To: Marco Pirovano; [EMAIL PROTECTED]
> Subject: Re: Migrating 12,000 students
>
> | Now, I use fetchmail to move mail from /var/mail/user to imap
> users INBOX
> | folders. but, I can't use it for a great number of users.
> | Is it possible to configure sendmail so, POP3 users mail still goes into
> | /var/mail/user and IMAP mail goes into INBOX folders ?
>
> Possible, yes but not desireable. If it was me and I really had
> to do it, I
> would create a custom MDA script but I think that that is a bad solution.
> Take the system down for a few hours and convert all mailboxes,
> my guess is
> that you can convert several mailboxes per second.




Re: Migrating 12,000 students

2001-02-26 Thread Tristan Ball

[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-scanner: Scanned by Inflex & McAffee. 

Yes, I had to do something similar, on a smaller scale.

Assuming that you have your default mailer as cyrus, add something like
the following to your sendmail.m4 file, and rebuild your .cf. Replace
pop_mailer with whatever is apropriate. The two R lines need to go in
before the normal delivery to cyrus, otherwise these will never be
evaluated.

FI/etc/mail/pop-users

LOCAL_RULE_0
R$=I < @ $=w >  $#pop_mailer $: $1
R$=I$#pop_mailer $: $1

Then list the user accounts in pop-users, one to a line.

For your number of uses, you will probably need to use a hash database
rather than a text file tho, but I'm not sure of the syntax off the top
of my head :-)

T.

Marco Pirovano wrote:
> 
> Dear Michael and Simon,
> thank you for your answer.
> 
> At 02:47 PM 2/19/01 +0100, you wrote:
> >On Monday, February 19, 2001 12:01:19 PM +0100 Marco Pirovano
> ><[EMAIL PROTECTED]> wrote:
> >+--
> >| Hello,
> >| I have to migrate about 12,000 students from a POP3 view to a IMAP view.
> >| Both POP3 server and IMAP server reside on the same machine.
> >| Now they use Eudora as POP3 client, and in the future they will use a
> >| webmail program, probably IMP.
> >|
> >| I've two big questions:
> >|
> >| 1) For a not short time, we will have both POP3 and IMAP users,
> >|  so how can I configure sendmail to manage this situation ?
> >|  We run sendmail 8.11.2 and procmail 3.15.
> >
> >As cyrus supports both imap and pop3 this isn't really a problem, just use
> >formail and deliver to copy the mail from the usual mailboxes into cyrus,
> >you users can continue using pop3 until the webmail comes online.
> >Configuring sendmail to use deliver or lmtp isn't particularly hard.
> 
> Now, I use fectmail to move mail from /var/mail/user to imap users INBOX
> folders.
> but, I can't use it for a great number of users.
> Is it possible to configure sendmail so, POP3 users mail still goes into
> /var/mail/user
> and IMAP mail goes into INBOX folders ?
> 
> >The
> >biggest problem is the time it takes to convert 12000 mailboxes but I guess
> >that you are planning to do the change this summer when traffic is low.
> 
> Of sure !
> 
> >| 2) Is there a way to convert Eudora mailboxes to IMAP folders ?
> >
> >No idea I'm afraid.
> >
> >/Michael
> >--
> >This space intentionally left non-blank.
> 
> 
>   Marco Pirovano
>   Universita' Bocconi
>   Area Sistemi Informatici e Telematici
>   Via Balilla, 18 20136 Milano - Italy
>   E-mail: [EMAIL PROTECTED]
>   Phone: +39 02 5836.3173  Fax: +39 02 5836.3160
> 

-- 
-=*=-=*=--=*=-=*=-=*=-
Tristan Ball
System Administrator
Vision Systems
ph 03 9211 7064
-=*=-=*=--=*=-=*=-=*=-



Re: Migrating 12,000 students

2001-02-26 Thread Marco Colombo

On Mon, 19 Feb 2001, Marco Pirovano wrote:

> Dear Michael and Simon,
> thank you for your answer.
> 
> At 02:47 PM 2/19/01 +0100, you wrote:
> >On Monday, February 19, 2001 12:01:19 PM +0100 Marco Pirovano
> ><[EMAIL PROTECTED]> wrote:
> >+--
> >| Hello,
> >| I have to migrate about 12,000 students from a POP3 view to a IMAP view.
> >| Both POP3 server and IMAP server reside on the same machine.
> >| Now they use Eudora as POP3 client, and in the future they will use a
> >| webmail program, probably IMP.
> >|
> >| I've two big questions:
> >|
> >| 1) For a not short time, we will have both POP3 and IMAP users,
> >|  so how can I configure sendmail to manage this situation ?
> >|  We run sendmail 8.11.2 and procmail 3.15.
> >
> >As cyrus supports both imap and pop3 this isn't really a problem, just use
> >formail and deliver to copy the mail from the usual mailboxes into cyrus,
> >you users can continue using pop3 until the webmail comes online.
> >Configuring sendmail to use deliver or lmtp isn't particularly hard.
> 
> Now, I use fectmail to move mail from /var/mail/user to imap users INBOX 
> folders.
> but, I can't use it for a great number of users.
> Is it possible to configure sendmail so, POP3 users mail still goes into 
> /var/mail/user
> and IMAP mail goes into INBOX folders ?

Why? Users are able to read messages in their mailbox *both* using a
POP3 client *and* an IMAP client. There's no need to keep two separate
mailbox systems. You may need some means to *move* messages from
Unix mailboxes to Cyrus ones.
BTW, there are ways to access Unix mailboxes (/var/mail/) with
IMAP, too. Using UW servers, you access /var/mail/ mailboxes
with both IMAP and POP. Of course, I definitely recommend Cyrus for >1
users. But UW servers are the default under RedHat Linux for example.
And are easy to manage (somewhat easier than Cyrus expecially with 
small user populations). Can you afford to have TWO different servers
available at the same time (IMP itself is configurable to let the user
choose a server, I think)?  Say 'imap1.' and 'imap2.'.
imap1 will carry the old mailbox files (/var/mail/*), and use an UW server.
imap2 will be the definitive Cyrus IMAPd server. New messages will be
delivered on imap2 only, of course. Users are told to read mail on imap1,
move it somewhere (save it on local folders, or even on imap2), then
to forget about imap1 and user only imap2.
I can't remember whether IMP handles two connections at the same time,
as MS Outlook and Netscape do.

Of course there are ways to tell sendmail to route messages to two
different destinations... the first to come into my mind is to use
virtusertable to rewrite POP user into a different (pseudo) domain
(by naming them one by one!) and then route all messages for that domain
to a procmail based mailer. Normal (IMAP) users will go through the Cyrus
(LMTP?) mailer. But don't try it if you're not a sendmail.cf Guru.
[Someone else may suggest some advanced procmail configurations...]

> 
>   Marco Pirovano
>   Universita' Bocconi
>   Area Sistemi Informatici e Telematici
>   Via Balilla, 18 20136 Milano - Italy
>   E-mail: [EMAIL PROTECTED]
>   Phone: +39 02 5836.3173  Fax: +39 02 5836.3160
> 

(being < 1Km away)
B-)

.TM.
-- 
  /  /   /
 /  /   /   Marco Colombo
___/  ___  /   /  Technical Manager
   /  /   /  ESI s.r.l.
 _/ _/  _/ [EMAIL PROTECTED]



Re: Migrating 12,000 students

2001-02-20 Thread Michael Salmon

On Monday, February 19, 2001 03:24:57 PM +0100 Marco Pirovano
<[EMAIL PROTECTED]> wrote:
+--
| Dear Michael and Simon,
| thank you for your answer.
| 
| At 02:47 PM 2/19/01 +0100, you wrote:
| >On Monday, February 19, 2001 12:01:19 PM +0100 Marco Pirovano
| ><[EMAIL PROTECTED]> wrote:
| >+--
| >| Hello,
| >| I have to migrate about 12,000 students from a POP3 view to a IMAP
| >| view. Both POP3 server and IMAP server reside on the same machine.
| >| Now they use Eudora as POP3 client, and in the future they will use a
| >| webmail program, probably IMP.
| >|
| >| I've two big questions:
| >|
| >| 1) For a not short time, we will have both POP3 and IMAP users,
| >|  so how can I configure sendmail to manage this situation ?
| >|  We run sendmail 8.11.2 and procmail 3.15.
| >
| >As cyrus supports both imap and pop3 this isn't really a problem, just
| >use formail and deliver to copy the mail from the usual mailboxes into
| >cyrus, you users can continue using pop3 until the webmail comes online.
| >Configuring sendmail to use deliver or lmtp isn't particularly hard.
| 
| Now, I use fetchmail to move mail from /var/mail/user to imap users INBOX
| folders. but, I can't use it for a great number of users.
| Is it possible to configure sendmail so, POP3 users mail still goes into
| /var/mail/user and IMAP mail goes into INBOX folders ?

Possible, yes but not desireable. If it was me and I really had to do it, I
would create a custom MDA script but I think that that is a bad solution.
Take the system down for a few hours and convert all mailboxes, my guess is
that you can convert several mailboxes per second.

/Michael
--
This space intentionally left non-blank.



Re: Migrating 12,000 students

2001-02-19 Thread Marco Pirovano

Dear Michael and Simon,
thank you for your answer.

At 02:47 PM 2/19/01 +0100, you wrote:
>On Monday, February 19, 2001 12:01:19 PM +0100 Marco Pirovano
><[EMAIL PROTECTED]> wrote:
>+--
>| Hello,
>| I have to migrate about 12,000 students from a POP3 view to a IMAP view.
>| Both POP3 server and IMAP server reside on the same machine.
>| Now they use Eudora as POP3 client, and in the future they will use a
>| webmail program, probably IMP.
>|
>| I've two big questions:
>|
>| 1) For a not short time, we will have both POP3 and IMAP users,
>|  so how can I configure sendmail to manage this situation ?
>|  We run sendmail 8.11.2 and procmail 3.15.
>
>As cyrus supports both imap and pop3 this isn't really a problem, just use
>formail and deliver to copy the mail from the usual mailboxes into cyrus,
>you users can continue using pop3 until the webmail comes online.
>Configuring sendmail to use deliver or lmtp isn't particularly hard.

Now, I use fectmail to move mail from /var/mail/user to imap users INBOX 
folders.
but, I can't use it for a great number of users.
Is it possible to configure sendmail so, POP3 users mail still goes into 
/var/mail/user
and IMAP mail goes into INBOX folders ?

>The
>biggest problem is the time it takes to convert 12000 mailboxes but I guess
>that you are planning to do the change this summer when traffic is low.

Of sure !


>| 2) Is there a way to convert Eudora mailboxes to IMAP folders ?
>
>No idea I'm afraid.
>
>/Michael
>--
>This space intentionally left non-blank.


  Marco Pirovano
  Universita' Bocconi
  Area Sistemi Informatici e Telematici
  Via Balilla, 18 20136 Milano - Italy
  E-mail: [EMAIL PROTECTED]
  Phone: +39 02 5836.3173  Fax: +39 02 5836.3160





Re: Migrating 12,000 students

2001-02-19 Thread Michael Salmon

On Monday, February 19, 2001 12:01:19 PM +0100 Marco Pirovano
<[EMAIL PROTECTED]> wrote:
+--
| Hello,
| I have to migrate about 12,000 students from a POP3 view to a IMAP view.
| Both POP3 server and IMAP server reside on the same machine.
| Now they use Eudora as POP3 client, and in the future they will use a
| webmail program, probably IMP.
| 
| I've two big questions:
| 
| 1) For a not short time, we will have both POP3 and IMAP users,
|  so how can I configure sendmail to manage this situation ?
|  We run sendmail 8.11.2 and procmail 3.15.

As cyrus supports both imap and pop3 this isn't really a problem, just use
formail and deliver to copy the mail from the usual mailboxes into cyrus,
you users can continue using pop3 until the webmail comes online.
Configuring sendmail to use deliver or lmtp isn't particularly hard. The
biggest problem is the time it takes to convert 12000 mailboxes but I guess
that you are planning to do the change this summer when traffic is low.

| 2) Is there a way to convert Eudora mailboxes to IMAP folders ?

No idea I'm afraid.

/Michael
--
This space intentionally left non-blank.



Migrating 12,000 students

2001-02-19 Thread Marco Pirovano

Hello,
I have to migrate about 12,000 students from a POP3 view to a IMAP view.
Both POP3 server and IMAP server reside on the same machine.
Now they use Eudora as POP3 client, and in the future they will use a webmail
program, probably IMP.

I've two big questions:

1) For a not short time, we will have both POP3 and IMAP users,
so how can I configure sendmail to manage this situation ?
We run sendmail 8.11.2 and procmail 3.15.

2) Is there a way to convert Eudora mailboxes to IMAP folders ?

Thank you very much for your help.
Ciao,
Marco



  Marco Pirovano
  Universita' Bocconi
  Area Sistemi Informatici e Telematici
  Via Balilla, 18 20136 Milano - Italy
  E-mail: [EMAIL PROTECTED]
  Phone: +39 02 5836.3173  Fax: +39 02 5836.3160