Re: [Dovecot] how to create maildir on local mail delivery

2010-01-23 Thread Sebastian Logar
Upgrade and configuration changes did work.

 

Thank you Timo and thank you for nice work you are doing.

 

Regards,

Sebastian

 

 



[Dovecot] how to create maildir on local mail delivery

2010-01-22 Thread Sebastian Logar
Hi!

 

I am using Dovecot 1.0.10 with LDA/postfix option reading user data from
ldap, but the problem would be nonexistent maildir. Connection with ldap
should be fine since reading proper maildir folder. Is it possible to
auto creating maildir folders even on received mail since the you can
auto create when user login with mail_executable scripts as it's seen
from configuration I am doing for pop3 and imap. 

 

Jan 23 00:23:17 dovecot postfix/qmgr[14579]: 75AADD212F:
from=someu...@domain.tld, size=354, nrcpt=1 (queue active)

Jan 23 00:23:17 dovecot deliver(erikp): Loading modules from directory:
/usr/lib/dovecot/modules/lda

Jan 23 00:23:17 dovecot deliver(erikp): Module loaded:
/usr/lib/dovecot/modules/lda/lib10_quota_plugin.so

Jan 23 00:23:17 dovecot deliver(erikp): auth input: erikp

Jan 23 00:23:17 dovecot deliver(erikp): auth input:
home=/nas/5b/7d/5f/erikp/www

Jan 23 00:23:17 dovecot deliver(erikp): auth input: uid=5000

Jan 23 00:23:17 dovecot deliver(erikp): auth input: gid=5000

Jan 23 00:23:17 dovecot deliver(erikp): auth input:
mail=/nas/5b/7d/5f/erikp/Maildir/

Jan 23 00:23:17 dovecot deliver(erikp): auth input:
quota=maildir:storage=1

Jan 23 00:23:17 dovecot deliver(erikp): Home dir not found:
/nas/5b/7d/5f/erikp/www

Jan 23 00:23:17 dovecot deliver(erikp): maildir autodetect:
stat(/nas/5b/7d/5f/erikp/Maildir//cur) failed: No such file or directory

Jan 23 00:23:17 dovecot deliver(erikp): mbox autodetect:
data=/nas/5b/7d/5f/erikp/Maildir/

Jan 23 00:23:17 dovecot deliver(erikp): mbox autodetect: INBOX file:
stat(/nas/5b/7d/5f/erikp/Maildir/) failed: No such file or directory

Jan 23 00:23:17 dovecot deliver(erikp): mbox autodetect: has .imap/:
stat(/nas/5b/7d/5f/erikp/Maildir//.imap) failed: No such file or
directory

Jan 23 00:23:17 dovecot deliver(erikp): mbox autodetect: has inbox:
stat(/nas/5b/7d/5f/erikp/Maildir//inbox) failed: No such file or
directory

Jan 23 00:23:17 dovecot deliver(erikp): mbox autodetect: has mbox:
stat(/nas/5b/7d/5f/erikp/Maildir//mbox) failed: No such file or
directory

Jan 23 00:23:17 dovecot deliver(erikp): Ambiguous mail location setting,
don't know what to do with it: /nas/5b/7d/5f/erikp/Maildir/ (try
prefixing it with mbox: or maildir:)

Jan 23 00:23:17 dovecot deliver(erikp): Failed to create storage for
'erikp' with mail '/nas/5b/7d/5f/erikp/Maildir/'

Jan 23 00:23:17 dovecot postfix/pipe[15537]: 75AADD212F:
to=er...@somelocaldomain.tld, relay=dovecot, delay=2146,
delays=2146/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure)

dovecot -n

# 1.0.10: /etc/dovecot/dovecot.conf

log_timestamp: %Y-%m-%d %H:%M:%S

protocols: imap pop3

disable_plaintext_auth: no

login_dir: /var/run/dovecot/login

login_executable(default): /usr/lib/dovecot/imap-login

login_executable(imap): /usr/lib/dovecot/imap-login

login_executable(pop3): /usr/lib/dovecot/pop3-login

mail_privileged_group: mail

mail_debug: yes

mail_executable(default): /usr/lib/dovecot/imap.sh

mail_executable(imap): /usr/lib/dovecot/imap.sh

mail_executable(pop3): /usr/lib/dovecot/pop3.sh

mail_plugins(default): quota imap_quota

mail_plugins(imap): quota imap_quota

mail_plugins(pop3): quota

mail_plugin_dir(default): /usr/lib/dovecot/modules/imap

mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap

mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3

pop3_uidl_format(default):

pop3_uidl_format(imap):

pop3_uidl_format(pop3): %08Xu%08Xv

auth default:

  passdb:

driver: ldap

args: /etc/dovecot/dovecot-ldap.conf

  userdb:

driver: ldap

args: /etc/dovecot/dovecot-ldap.conf

  socket:

type: listen

client:

  path: /var/run/dovecot/auth-client

  mode: 432

  user: postfix

  group: postfix

master:

  path: /var/run/dovecot/auth-master

  mode: 384

  user: vmail

  group: vmail

plugin:

  quota: maildir:storage=10

 

Regards,

Sebastian



Re: [Dovecot] how to create maildir on local mail delivery

2010-01-22 Thread Timo Sirainen
On 23.1.2010, at 1.45, Sebastian Logar wrote:

 I am using Dovecot 1.0.10 with LDA/postfix option reading user data from
 ldap, but the problem would be nonexistent maildir. Connection with ldap
 should be fine since reading proper maildir folder. Is it possible to
 auto creating maildir folders even on received mail since the you can
 auto create when user login with mail_executable scripts as it's seen
 from configuration I am doing for pop3 and imap. 

Yes.

 Jan 23 00:23:17 dovecot deliver(erikp): Ambiguous mail location setting,
 don't know what to do with it: /nas/5b/7d/5f/erikp/Maildir/ (try
 prefixing it with mbox: or maildir:)

This is your problem. You need to prefix it with maildir:.

 # 1.0.10: /etc/dovecot/dovecot.conf

v1.0 might not make this easy..

  userdb:
 
driver: ldap
 
args: /etc/dovecot/dovecot-ldap.conf

What's in your user_attrs?


Re: [Dovecot] how to create maildir on local mail delivery

2010-01-22 Thread Sebastian Logar
Hi Timo,

First of all thank you for responding so fast. So i need to change
maildir ldap entry to maildir:/nas/5b/7d/5f/erikp/Maildir/ or i just can
change user_attrs?

What version would you suggest, probably latest? I installed this one
from ubuntu repository.

My user_attrs is
user_attrs =
homeDirectory=home,uidNumber=uid,gidNumber=gid,mailMessageStore=mail,mai
lQuota=quota=maildir:storage

regards,
Sebastian

-Original Message-
From: Timo Sirainen [mailto:t...@iki.fi] 
Sent: Saturday, January 23, 2010 12:52 AM
To: Sebastian Logar
Cc: dovecot@dovecot.org
Subject: Re: [Dovecot] how to create maildir on local mail delivery

On 23.1.2010, at 1.45, Sebastian Logar wrote:

 I am using Dovecot 1.0.10 with LDA/postfix option reading user data
from
 ldap, but the problem would be nonexistent maildir. Connection with
ldap
 should be fine since reading proper maildir folder. Is it possible to
 auto creating maildir folders even on received mail since the you can
 auto create when user login with mail_executable scripts as it's seen
 from configuration I am doing for pop3 and imap. 

Yes.

 Jan 23 00:23:17 dovecot deliver(erikp): Ambiguous mail location
setting,
 don't know what to do with it: /nas/5b/7d/5f/erikp/Maildir/ (try
 prefixing it with mbox: or maildir:)

This is your problem. You need to prefix it with maildir:.

 # 1.0.10: /etc/dovecot/dovecot.conf

v1.0 might not make this easy..

  userdb:
 
driver: ldap
 
args: /etc/dovecot/dovecot-ldap.conf

What's in your user_attrs?


Re: [Dovecot] how to create maildir on local mail delivery

2010-01-22 Thread Timo Sirainen
On 23.1.2010, at 2.36, Sebastian Logar wrote:

 What version would you suggest, probably latest? I installed this one
 from ubuntu repository.

Latest, yeah. But..:

 My user_attrs is
 user_attrs =
 homeDirectory=home,uidNumber=uid,gidNumber=gid,mailMessageStore=mail,mai
 lQuota=quota=maildir:storage

You can change this to be:

user_attrs = .., mailMessageStore=home, ..

and in dovecot.conf:

mail_location = maildir:%h



Re: [Dovecot] how to create maildir on local mail delivery

2010-01-22 Thread Timo Sirainen

On 23.1.2010, at 2.40, Timo Sirainen wrote:

 My user_attrs is
 user_attrs =
 homeDirectory=home,uidNumber=uid,gidNumber=gid,mailMessageStore=mail,mai
 lQuota=quota=maildir:storage
 
 You can change this to be:
 
 user_attrs = .., mailMessageStore=home, ..
 
 and in dovecot.conf:
 
 mail_location = maildir:%h

Reading again.. what's the relationship between homeDirectory and 
mailMessageStore? Perhaps you should just drop mailMessageSotre and use:

mail_location = maildir:%h/Maildir