Re: [Dovecot] UW-IMAP to Dovecot conversion - How to migrate the folders?

2007-08-21 Thread Philipp Kolmann
On Mon, Aug 20, 2007 at 03:21:20PM -0700, Patrick - South Valley Internet wrote:
> We just migrated away from our AIX machines which were running Postfix 
> and UW-IMAP.  We're now running Postfix with Dovecot.  I already 
> converted everyone's mbox file to maildir, but now I'm having a little 
> troubles with how to exactly populate their IMAP folders.  People are 
> saying they cannot see their folders.  These 'folders' they are talking 
> about can be found in their /home directory.

We just moved from HPUX to linux and there we had the problem, that with IMAP
and UW-IMAPd you had to specify a Folder Path in the client. With Dovecot and
Maildir you don't need this.

Check if your users have set this folder path. That solved a lot of problems
here.

Philipp

-- 
If you have problems in Windows: REBOOT
If you have problems in Linux:   BE ROOT


[Dovecot] userdb override?

2007-08-21 Thread Leroy van Logchem

Hi,

I used to change the mailbox root for some users using a custom userdb 
file which contains lines like:

doe::2:200::/u/doe::userdb_mail=mbox:/u/doe/Mail:INBOX=/var/mail/%u

The logfiles shows the mail location stays default ( rc15 worked ):
---
dovecot: Aug 21 09:43:49 Info: auth(default): master out: USER  250 
doe system_user=doe uid=20324   gid=200 home=/u/doe

dovecot: Aug 21 09:43:49 Info: imap-login: Login: user=
dovecot: Aug 21 09:43:49 Info: IMAP(doe): Effective uid=2, gid=200, 
home=/u/doe
dovecot: Aug 21 09:43:49 Info: IMAP(doe): mbox: 
data=/u/doe/:INBOX=/var/mail/doe
dovecot: Aug 21 09:43:49 Info: IMAP(doe): mbox: root=/u/doe, 
index=/u/doe, inbox=/var/mail/doe

---

Configuration:

# 1.0.3: etc/dovecot.conf
mail_location: mbox:~/:INBOX=/var/mail/%u
auth default:
 mechanisms: plain login digest-md5 cram-md5 ntlm
 verbose: yes
 debug: yes
 passdb:
   driver: passwd-file
   args: /etc/userdb_extra
 passdb:
   driver: pam
 userdb:
   driver: passwd
   args: /etc/userdb_extra
 userdb:
   driver: passwd-file
   args: /etc/userdb_extra

--
Leroy


Re: [Dovecot] userdb override? [SOLVED]

2007-08-21 Thread Leroy van Logchem



 userdb:
   driver: passwd
   args: /etc/userdb_extra
 userdb:
   driver: passwd-file
   args: /etc/userdb_extra

Got it working again. The userdb driver: passwd shouldnt point to the 
userdb_extra file and the passwd-file should be configured first. The 
sequence does matter, after the first hit it doesnt look futher.


--
Leroy


Re: [Dovecot] userdb override?

2007-08-21 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 21 Aug 2007, Leroy van Logchem wrote:


passdb:
  driver: passwd-file
  args: /etc/userdb_extra
passdb:
  driver: pam
userdb:
  driver: passwd
  args: /etc/userdb_extra
userdb:
  driver: passwd-file
  args: /etc/userdb_extra


Dunno if it matters, but you've used passwd with the file first, try 
using passwd-file before the passwd driver.

BTW: passdb and userdb are not consistent.

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRsqnBS9SORjhbDpvAQIxAQf/Y60zyTXZIpXFq5b7629S70i4twQgLCzz
G2jsIvjyagjHfDSqh4GRo1zrSZeoomCi0ELHHfgChjXuNhsiK9WswxXpH2lcSGGX
oL5OFUzOhxnjgJnfsHuYNj6gF20stLfyIyQ1lH60fKDzkNkbt0khTF6lc6BGrIIo
rzuErDt/gy7t6NIqYlLtRIFxSivKi2QyEnR8kow/KVweIvPz6bxeF3NdRM3RmpZy
5UVCWrx2MHD7ZBFt8KtrvkjQ16M8PBXdiujiqLAo+oEnDBtp/gi/Dt+AO7XE5Iv8
O6ZZazDhsXMNhTb0TUj3gaTSFFAf4L+3TOqdflJGyxYS+3EWFIEiHg==
=3+Q+
-END PGP SIGNATURE-


[Dovecot] Dovecot should raise the limit of file descriptors at startup...

2007-08-21 Thread Peter Eriksson
We've run into a situation where the Dovecot master process "dovecot"
runs out of file descriptors on Solaris 10 since the default is
only 256:

# plimit 1
1:  /sbin/init
   resource  current maximum
  time(seconds) unlimited   unlimited
  file(blocks)  unlimited   unlimited
  data(kbytes)  unlimited   unlimited
  stack(kbytes) 8192unlimited
  coredump(blocks)  unlimited   unlimited
  nofiles(descriptors)  256 65536
  vmemory(kbytes)   unlimited   unlimited



Output from "pfiles" after we raised the limit manually:

# pfiles 26378 | head -10
26378:  /ifm/sbin/dovecot -c /etc/dovecot.conf
  Current rlimit: 16384 file descriptors
   0: S_IFCHR mode:0666 dev:327,15 ino:18128 uid:0 gid:3 rdev:13,2
  O_RDONLY|O_LARGEFILE
  /export/zones/dovecot/root/dev/null
   1: S_IFCHR mode:0666 dev:327,15 ino:18128 uid:0 gid:3 rdev:13,2
  O_RDONLY|O_LARGEFILE
  /export/zones/dovecot/root/dev/null
   2: S_IFCHR mode:0666 dev:327,15 ino:18128 uid:0 gid:3 rdev:13,2
  O_RDONLY|O_LARGEFILE
# pfiles 26378 | tail -10
 243: S_IFIFO mode: dev:324,0 ino:2038192 uid:0 gid:0 size:0
  O_RDWR|O_NONBLOCK FD_CLOEXEC
 246: S_IFIFO mode: dev:324,0 ino:2048002 uid:0 gid:0 size:0
  O_RDWR|O_NONBLOCK FD_CLOEXEC
 247: S_IFIFO mode: dev:324,0 ino:2048441 uid:0 gid:0 size:0
  O_RDWR|O_NONBLOCK FD_CLOEXEC
 258: S_IFIFO mode: dev:324,0 ino:2042076 uid:0 gid:0 size:0
  O_RDWR|O_NONBLOCK FD_CLOEXEC
 459: S_IFIFO mode: dev:324,0 ino:1311426 uid:0 gid:0 size:0
  O_RDWR|O_NONBLOCK FD_CLOEXEC

Perhaps the Dovecot master process should raise it's own limit to the
allowed maximum when it starts? (getrlimit()+setrlimit()), or be
user configurable?

Has this been discussed somewhere before?

- Peter



signature.asc
Description: OpenPGP digital signature


[Dovecot] Imap service and quota

2007-08-21 Thread Miguel
Hi, i have just migrated from courier-imap to dovecot. im using it with 
vpopmail, the pop service is working ok but the imap service for imp 
webmail is not writing the quota information to the maildirsize file, as 
recommended in the docs, i have this in dovecot.conf :


plugin {
  # Quota plugin. Multiple backends are supported:
 #   dirsize: Find and sum all the files found from mail directory.
 #Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
 #   dict: Keep quota stored in dictionary (eg. SQL)
 #   maildir: Maildir++ quota
 #   fs: Read-only support for filesystem quota
 quota = maildir

 }

This only happend with imp/imap, there is not problem using a pop client
Regards,


[Dovecot] Subscriptions - delivering to different folders

2007-08-21 Thread bichumo

Hi,

I am using Postfix and Dovecot. I have set up [EMAIL PROTECTED], 
which gets mail copies from [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED], the copy option is set in postfix recipient_bcc_maps = 
path_to_file_recipient_bcc. In recipient_bcc file I have:


[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]

Postfix does the job and copies user1, user2, user3 emails to 
backup_mailbox. But I also want to filter mails in backup_mailbox and to 
put user1 mails to USER1 folder in backup_mailbox, user2 mails to USER2 
folder in backup_mailbox and so on. How this is possible? I made an 
entry in subscriptions file of user1, user2, user3. Now I have folders 
.user1, .user2, user3 in backup_mailbox folder and I can also see these 
folders through webmail client (squirrelmail), but how do I put email 
copy which comes from [EMAIL PROTECTED] to [EMAIL PROTECTED] to 
go not to main folder of backup_mailbox but to USER1 folder in 
backup_mailbox folder.


Thanks for any suggestions.


Re: [Dovecot] Subscriptions - delivering to different folders

2007-08-21 Thread Luis Pablo Michelena Scaffo
May be wrong (am I?), but i think that perhaps you'are looking at the 
wrong hammer. If I had to  do that i'd use  the lda (e.g procmail, 
modifing .procmailrc in the backup user homedir) to achieve that.

My half cent,
Luis
bichumo escribió:

Hi,





[Dovecot] Exim-dovecot-Horde/imp-Mysql

2007-08-21 Thread Andre Eisvogel
Dear all,

I'm running a linuxbox with ' Dovecot<->Exim<->horde/IMP<-> Mysql ', this is a 
very good combination and works excellent for the system users.

Now I want to change the configuration and authenticate against the mysql 
database from horde. That way it is much easy for me to create (virtual) mail 
users. I also want to use the mail alias of the horde users for Exim and 
Dovecot.

My questions are; is it possible to use the horde mysql database for this? And 
is it also possible for the mail alias of horde?
If this is possible, is there a howto of this configuration?

The packages i'm using are:
Exim 4.67
Dovecot 1:1.0.3
Horde 3.1.4
Mysql 5.0.45
PHP 5.2.3

-- 
Met vriendelijke groet / Kind regards,

 André Eisvogel


Re: [Dovecot] UW-IMAP to Dovecot conversion - How to migrate the folders?

2007-08-21 Thread Patrick - South Valley Internet

Kyle Wheeler wrote:

On Monday, August 20 at 04:07 PM, quoth Patrick - South Valley Internet:

I have, but it didn't do anything that I could tell.

I tried resyncing my IMAP but I didn't see the new folder.

Does it matter that the UW-IMAP folders are in mbox-like format?  It 
appears each "folder" is a single file, similar to mbox format.


Yeah, it does matter. Dovecot doesn't allow you to mix-and-match 
different mail storage formats very easily. You may be able to set 
something like that up with the Namespaces support in Dovecot, but the 
easiest thing to do is to convert your mbox files into Maildir.


~Kyle



Thanks Kyle, but how do I convert the mbox-like IMAP folders into 
something Dovecot can read with the new config?


Patrick


Re: [Dovecot] UW-IMAP to Dovecot conversion - How to migrate the folders?

2007-08-21 Thread Patrick - South Valley Internet

Philipp Kolmann wrote:

On Mon, Aug 20, 2007 at 03:21:20PM -0700, Patrick - South Valley Internet wrote:
  
We just migrated away from our AIX machines which were running Postfix 
and UW-IMAP.  We're now running Postfix with Dovecot.  I already 
converted everyone's mbox file to maildir, but now I'm having a little 
troubles with how to exactly populate their IMAP folders.  People are 
saying they cannot see their folders.  These 'folders' they are talking 
about can be found in their /home directory.



We just moved from HPUX to linux and there we had the problem, that with IMAP
and UW-IMAPd you had to specify a Folder Path in the client. With Dovecot and
Maildir you don't need this.

Check if your users have set this folder path. That solved a lot of problems
here.

Philipp

  


Hi Philipp,

Our users are using Outlook Express and Outlook.  I just set up an IMAP 
account that is having the issue and I didn't specify any folders.  I 
just used the defaults.


What's even more odd is that when I created a new folder within Outlook 
Express, I see it in /home/USERNAME/Maildir/subscriptions, but I don't 
see the folder anywhere...how does Dovecot see these IMAP folders?  Is 
there some sort of tag that is contained within each Maildir email that 
tells what folder it goes in to?


Patrick


Re: [Dovecot] Imap service and quota

2007-08-21 Thread FORMER 03 | Baltasar Cevc
Hi Miguel,

On Tue, 21 Aug 2007 11:50:10 -0600
Miguel <[EMAIL PROTECTED]> wrote:

> Hi, i have just migrated from courier-imap to dovecot. im using it
> with vpopmail, the pop service is working ok but the imap service for
> imp webmail is not writing the quota information to the maildirsize
> file, as recommended in the docs, i have this in dovecot.conf :
> 
> plugin {
># Quota plugin. Multiple backends are supported:
>   #   dirsize: Find and sum all the files found from mail directory.
>   #Extremely SLOW with Maildir. It'll eat your CPU and
> disk I/O. #   dict: Keep quota stored in dictionary (eg. SQL)
>   #   maildir: Maildir++ quota
>   #   fs: Read-only support for filesystem quota
>   quota = maildir
> 
>   }
> 
> This only happend with imp/imap, there is not problem using a pop
> client Regards,

Have you added the quota plugin to the imap service?
As far as I've understood the docs it needs to be in every service.
However, I'm new to dovecot, too, so I may be wrong.

Baltasar

-- 

_ FORMER 03 GmbH
_ infanteriestra§e 19 haus 6 eg
_ 80797 muenchen

_ www.former03.de


[Dovecot] maildir question

2007-08-21 Thread Tim Bates
If I copy message files (from a command prompt) will dovecot get upset 
or confused? Do I need to delete index files or anything like that?
I ask because I need to restore some messages from a backup, but not 
restore the entire maildir. I tried some the other day as a test, but 
the user is saying that they didn't appear.


TB

**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**


Re: [Dovecot] maildir question

2007-08-21 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Aug 22, 2007 at 10:36:38AM +1000, Tim Bates wrote:
> If I copy message files (from a command prompt) will dovecot get upset 
> or confused?

Dovecot is supposed to cope just fine. See

  

>  Do I need to delete index files or anything like that?

I don't know about maildir (I'm using mbox), but I'd expect Dovecot to
reindex whenever it "sees" the directory more recent than the index
file.

> I ask because I need to restore some messages from a backup, but not 
> restore the entire maildir. I tried some the other day as a test, but 
> the user is saying that they didn't appear.

Have you checked the creation dates of the maildir and of the
corresponding index?

Regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGy7ioBcgs9XrR2kYRAnOrAJwI+J4qYYDgTd0NmaqnbxAxq2/A+QCfS2YI
17XpT1HZhmdCaK3xLynQIDk=
=6nvK
-END PGP SIGNATURE-



Re: [Dovecot] maildir question

2007-08-21 Thread Curtis Maloney

Tim Bates wrote:
If I copy message files (from a command prompt) will dovecot get upset 
or confused? Do I need to delete index files or anything like that?
I ask because I need to restore some messages from a backup, but not 
restore the entire maildir. I tried some the other day as a test, but 
the user is saying that they didn't appear.


It's part of how Maildir is designed.

Since Dovecot can quite happily deal with other agents (user or delivery) 
meddling with the files and moving them about, it will also happily deal with 
new messages arriving magically.


--
Curtis Maloney
[EMAIL PROTECTED]



Re: [Dovecot] maildir question

2007-08-21 Thread Tim Bates

Curtis Maloney wrote:

Tim Bates wrote:
If I copy message files (from a command prompt) will dovecot get 
upset or confused? Do I need to delete index files or anything like 
that?
I ask because I need to restore some messages from a backup, but not 
restore the entire maildir. I tried some the other day as a test, but 
the user is saying that they didn't appear.


It's part of how Maildir is designed.

Since Dovecot can quite happily deal with other agents (user or 
delivery) meddling with the files and moving them about, it will also 
happily deal with new messages arriving magically.



Cool. That's good to know.
I got word back that it showed in our webmail so it appears to be the 
client they are using (Outlook of course).


TB

**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**