Pawel J. Sawicki | 1 Feb 2008 14:49

Re: Dovecot, LDAP and something akin to Postfix' "table search order" from virtual deliver.

Hi!

Just for the sake of archive completeness - I've managed to solve my
problem without any dirty hacks or something.

The key part was to rewrite recipient address before relying mail to
dovecot deliver. This can be achieved using e.g.
recipient_canonical_maps. More info can be found here:

http://pjs.name/pages/en/blog/postfix_dovecot_deliver_catchall/

Once again - thanks Maciej for your input :)

Regards,
Pawel

Michel Bulgado | 1 Feb 2008 19:40
Picon
Favicon

Quota Override

Hi People

I use the dovecot version 1.0.10 , in my config I have set a global quota 
value = 10 MB but I want to override for some users this value , getting from 
my ldap other value like = 30 MB.

Dovecot obtain this value from ldap:
(((((Feb  1 12:12:26 gandalf dovecot: auth(default): client out: OK   1       
user=michel <at> home.com  quota= maildir:storage=30240)))))

Feb  1 12:12:26 gandalf dovecot: auth(default): 
ldap(michel <at> home.com,127.0.0.1): result: mail(user)=michel <at> home.com 
quota(quota= maildir:storage)=30240
Feb  1 12:12:26 gandalf dovecot: auth(default): 
ldap(michel <at> home.com,127.0.0.1): bind: dn=CN=Usuario 
Michel,OU=Computacion,OU=Home,DC=home,DC=com
Feb  1 12:12:26 gandalf dovecot: auth(default): client out: OK   1       
user=michel <at> home.com  quota= maildir:storage=30240
Feb  1 12:12:26 gandalf dovecot: auth(default): master in: REQUEST       1       
27697   1
Feb  1 12:12:26 gandalf dovecot: pop3-login: Login: user=<michel <at> home.com>, 
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb  1 12:12:26 gandalf dovecot: auth(default): master out: USER 1       
michel <at> home.com       uid=503 gid=503 home=/var/storage/virtualmail/home.com/
Feb  1 12:12:26 gandalf dovecot: POP3(michel <at> home.com): Loading modules from 
directory: /usr/lib64/dovecot/pop3
Feb  1 12:12:26 gandalf dovecot: POP3(michel <at> home.com): Module 
loaded: /usr/lib64/dovecot/pop3/lib10_quota_plugin.so
Feb  1 12:12:26 gandalf dovecot: POP3(michel <at> home.com): Effective uid=503, 
gid=503
(Continue reading)

Freese Notis | 1 Feb 2008 22:07
Picon

auth default : passwd-file Can't open file: Permission denied

Hello,

I'm attempting to migrate from an existing dovecot .99 install to dovecot
1.0.rc15 on a fresh up to date CentOs 5.1.  I'm not sure what's causing this
permissions error on startup - I've tried 777,644, and 600 chmods but it's
always this same error:

Feb  1 12:43:05 ns2 dovecot: Dovecot v1.0.rc15 starting up
Feb  1 12:43:06 ns2 dovecot: Auth process died too early - shutting down
Feb  1 12:43:06 ns2 dovecot: auth(default): passwd-file
/var/spool/virtual/passwd: Can't open file: Permission denied
Feb  1 12:43:06 ns2 dovecot: child 16411 (auth) returned error 89
Feb  1 12:43:06 ns2 dovecot: Temporary failure in creating login processes,
slowing down for now

Here's some more information from the shell:

# dovecot -n
# /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_user: vmail
mail_location: maildir:/var/spool/virtual/%d/%n
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
(Continue reading)

Charles Marcus | 1 Feb 2008 23:21

Re: auth default : passwd-file Can't open file: Permission denied

On 2/1/2008, Freese Notis (freesenotis <at> gmail.com) wrote:
> I'm attempting to migrate from an existing dovecot .99 install to 
> dovecot 1.0.rc15 on a fresh up to date CentOs 5.1. I'm not sure
> what's causing this permissions error on startup - I've tried
> 777,644, and 600 chmods but it's always this same error:

You really should go ahead and update to a release version... check the 
atrpm repository...

Make sure you follow the upgrade instructions here:

http://tinyurl.com/23pvb3

--

-- 

Best regards,

Charles

Aria Stewart | 2 Feb 2008 02:03
Gravatar

Bug handling zero-byte files in maildirs

I managed to get a bunch of zero-byte files in my maildirs today, and  
Dovecot choked completely (at least for pop3 users); It wouldn't  
download any messages at all, and the mailbox would often say "-ERR  
[IN-USE]" when doing a STAT

Aria

Gary Funck | 2 Feb 2008 03:02

corrupted index?

We're seeing the following sporadically in
the log file (single line broken into separate
lines for readability):

Corrupted index cache file 
/home/user/mail/.index/.imap/INBOX/dovecot.index.cache:
invalid record size

We're running dovecot-1.0.7-2.fc8.  The imap directory
is in the user's NFS-mounted /home directory, but
doveot is running on the same host as the
/home filesystem.  There's plenty of disk space and
no other significant system problems.  The mail
index directory we rm'd a week/so ago, so doveoct
has had the opportunity to rebuild it.

Any ideas on what might be causing this?  Is this
issue anything to worry about?

thanks.

Timo Sirainen | 2 Feb 2008 10:40
Picon
Picon
Favicon

Re: auth default : passwd-file Can't open file: Permission denied

On Fri, 2008-02-01 at 15:07 -0600, Freese Notis wrote:

> I'm attempting to migrate from an existing dovecot .99 install to dovecot
> 1.0.rc15 on a fresh up to date CentOs 5.1.  I'm not sure what's causing this
> permissions error on startup - I've tried 777,644, and 600 chmods but it's
> always this same error:
> 
> Feb  1 12:43:06 ns2 dovecot: auth(default): passwd-file
> /var/spool/virtual/passwd: Can't open file: Permission denied
..
> I tried searching first but couldn't find anything other than similar config
> examples that seemed to confirm my config was setup right.  Any suggestions?

SELinux prevents accessing it.

Timo Sirainen | 2 Feb 2008 10:48
Picon
Picon
Favicon

Re: Bug handling zero-byte files in maildirs

On Fri, 2008-02-01 at 18:03 -0700, Aria Stewart wrote:
> I managed to get a bunch of zero-byte files in my maildirs today, and  
> Dovecot choked completely (at least for pop3 users); 

What Dovecot version?

> It wouldn't  
> download any messages at all, and the mailbox would often say "-ERR  
> [IN-USE]" when doing a STAT

That error is returned for the first command after login if the mailbox
syncing failed (or locking it failed). Dovecot should have logged an
error in that case.

Anyway I don't see why zero byte files should be a problem for Dovecot.
I've often used them for testing, and just now couldn't reproduce this
problem. Maybe the actual problem is something else.

Timo Sirainen | 2 Feb 2008 11:30
Picon
Picon
Favicon

Re: Postfix, mailbox_command, Dovecot deliver, LDAP and mail_location

On Thu, 2008-01-31 at 20:49 +0100, Patrick Ben Koetter wrote:
> * Timo Sirainen <dovecot <at> dovecot.org>:
> > On Thu, 2008-01-31 at 20:36 +0100, Patrick Ben Koetter wrote:
> > > # Mail delivery
> > > Jan 31 20:28:20 mail deliver(p): Loading modules from directory: /usr/lib/dovecot/modules/lda
> > > Jan 31 20:28:20 mail deliver(p): Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
> > > Jan 31 20:28:20 mail deliver(p): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
> > > Jan 31 20:28:20 mail deliver(p): maildir: data=/home/p/Maildir
> > > Jan 31 20:28:20 mail deliver(p): maildir: root=/home/p/Maildir, index=/home/p/Maildir,
control=, inbox=
> > > Jan 31 20:28:20 mail deliver(p): cmusieve: Using sieve path: /home/p/.dovecot.sieve
> > > Jan 31 20:28:20 mail deliver(p): cmusieve: Executing script /home/p/.dovecot.sievec
> > > Jan 31 20:28:20 mail deliver(p): msgid=<20080131192820.822F680CCAA <at> mail.state-of-mind.de>:
saved mail to INBOX
> > 
> > There's no auth info here, so it's not doing an auth lookup. So you're
> > not giving -d parameter to deliver?
> 
> You mean on the Postfix $mailbox_command? No, I am not.

The userdb lookup is done only when giving -d dest <at> user parameter to
deliver. I don't know if mailbox_command allows that.

Timo Sirainen | 2 Feb 2008 11:31
Picon
Picon
Favicon

Re: Quota Override

On Fri, 2008-02-01 at 13:40 -0500, Michel Bulgado wrote:
> user_attrs = mail=user,MailQuota=quota= maildir:storage

Why is there a space after quota=? Maybe that messes it up.


Gmane