Re: [Dovecot] Dovecot creating aditional folders?
Thank you again.
Yes, you're on the way :-)
Problem was that in /etc/dovecot/dovecot.conf was:
mail_location = maildir:/home/vmail/%u/
instead of my new line:
mail_location = maildir:/home/vmail/%d/%u/
I think it's all right now. Well...not all right, I see no mails with a client (it's on the mailserver filesystem) but it's another history ;-)
Thanks in advance!
2010/9/1 <spamvoll@googlemail.com>:
mail_location: maildir:/home/vmail/%u/
check if there is the correct home in /etc/dovecot/dovecot-sql.conf
maybe that is different, but not sure
2010/9/1 Pablo <boinker@gmail.com>:
Thank you for your response.
Yes, I know that I'm using maildir, but when we create an account, file sistem look likes:
/home/vmail/domain.com/user1/new /home/vmail/domain.com/user1/cur /home/vmail/domain.com/user1/tmp
My problem is that dovecot is creating additional folders:
/home/vmail/user1/new /home/vmail/domain.com/user/cur /home/vmail/domain.com/user/tmp
Mail are received in first directories, second ones are created but not used.
What's the problem?
Thanks again!
2010/9/1 <spamvoll@googlemail.com>:
its because u using maildir to store your mails.
THE MAILDIR STRUCTURE A directory in maildir format has three subdirectories, all on the same filesystem: tmp, new, and cur.
2010/9/1 Pablo <boinker@gmail.com>:
Hi guys.
My conf:
# 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-23-server x86_64 Ubuntu 10.04.1 LTS reiserfs log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/mail/dovecot.crt ssl_key_file: /etc/ssl/mail/dovecot.key 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_location: maildir:/home/vmail/%u/ mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 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 auth default: mechanisms: plain login verbose: yes debug: yes debug_passwords: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail
My problem is that dovecot is creating aditional folders:
#ls -l /home/vmail
drwx------ 6 vmail vmail 184 2010-09-01 01:31 escuelasuperiordecoaching.com drwx------ 8 vmail vmail 392 2010-09-01 10:58 pablo.rodriguez@escuelasuperiordecoaching.com
# ls -l escuelasuperiordecoaching.com/ drwx------ 5 vmail vmail 120 2010-08-30 14:35 pablo.rodriguez
I'm receiving mail in /home/vmail/escuelasuperiordecoaching.com/pablo.rodriguez/new without problem, but why is dovecot creating aditional folders?
My log:
Sep 1 10:58:30 socrates dovecot: auth(default): master in: REQUEST^I162^I4003^I1 Sep 1 10:58:30 socrates dovecot: auth-worker(default): sql(pablo.rodriguez@escuelasuperiordecoaching.com,127.0.0.1): SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = 'pablo.rodriguez@escuelasuperiordecoaching.com' Sep 1 10:58:30 socrates dovecot: auth(default): master out: USER^I162^Ipablo.rodriguez@escuelasuperiordecoaching.com^Imaildir=escuelasuperiordecoaching.com/pablo.rodriguez/^Iuid=1001^Igid=1001 Sep 1 10:58:30 socrates dovecot: imap-login: Login: user=<pablo.rodriguez@escuelasuperiordecoaching.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): Effective uid=1001, gid=1001, home=(none) Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): maildir: data=/home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com/ Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): maildir++: root=/home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com, index=, control=, inbox=/home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): Namespace : Using permissions from /home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com: mode=0700 gid=-1 Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): Disconnected: Logged out bytes=117/1383
I can see that Dovecot is creating when...I login?
What's the problem? I can't understand...
Thanks in advance.
Sorry, was not solved.
I've changed in dovecot-sql.conf:
password_query = SELECT password FROM mailbox WHERE username = '%u' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%u'
by:
password_query = SELECT password FROM mailbox WHERE username = '%n' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%n'
Now I think it's all right.
Thank you again, guys :-)
2010/9/1 Pablo <boinker@gmail.com>:
Thank you again.
Yes, you're on the way :-)
Problem was that in /etc/dovecot/dovecot.conf was:
mail_location = maildir:/home/vmail/%u/
instead of my new line:
mail_location = maildir:/home/vmail/%d/%u/
I think it's all right now. Well...not all right, I see no mails with a client (it's on the mailserver filesystem) but it's another history ;-)
Thanks in advance!
2010/9/1 <spamvoll@googlemail.com>:
mail_location: maildir:/home/vmail/%u/
check if there is the correct home in /etc/dovecot/dovecot-sql.conf
maybe that is different, but not sure
2010/9/1 Pablo <boinker@gmail.com>:
Thank you for your response.
Yes, I know that I'm using maildir, but when we create an account, file sistem look likes:
/home/vmail/domain.com/user1/new /home/vmail/domain.com/user1/cur /home/vmail/domain.com/user1/tmp
My problem is that dovecot is creating additional folders:
/home/vmail/user1/new /home/vmail/domain.com/user/cur /home/vmail/domain.com/user/tmp
Mail are received in first directories, second ones are created but not used.
What's the problem?
Thanks again!
2010/9/1 <spamvoll@googlemail.com>:
its because u using maildir to store your mails.
THE MAILDIR STRUCTURE A directory in maildir format has three subdirectories, all on the same filesystem: tmp, new, and cur.
2010/9/1 Pablo <boinker@gmail.com>:
Hi guys.
My conf:
# 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-23-server x86_64 Ubuntu 10.04.1 LTS reiserfs log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps pop3 pop3s ssl_cert_file: /etc/ssl/mail/dovecot.crt ssl_key_file: /etc/ssl/mail/dovecot.key 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_location: maildir:/home/vmail/%u/ mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 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 auth default: mechanisms: plain login verbose: yes debug: yes debug_passwords: yes passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail group: vmail
My problem is that dovecot is creating aditional folders:
#ls -l /home/vmail
drwx------ 6 vmail vmail 184 2010-09-01 01:31 escuelasuperiordecoaching.com drwx------ 8 vmail vmail 392 2010-09-01 10:58 pablo.rodriguez@escuelasuperiordecoaching.com
# ls -l escuelasuperiordecoaching.com/ drwx------ 5 vmail vmail 120 2010-08-30 14:35 pablo.rodriguez
I'm receiving mail in /home/vmail/escuelasuperiordecoaching.com/pablo.rodriguez/new without problem, but why is dovecot creating aditional folders?
My log:
Sep 1 10:58:30 socrates dovecot: auth(default): master in: REQUEST^I162^I4003^I1 Sep 1 10:58:30 socrates dovecot: auth-worker(default): sql(pablo.rodriguez@escuelasuperiordecoaching.com,127.0.0.1): SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = 'pablo.rodriguez@escuelasuperiordecoaching.com' Sep 1 10:58:30 socrates dovecot: auth(default): master out: USER^I162^Ipablo.rodriguez@escuelasuperiordecoaching.com^Imaildir=escuelasuperiordecoaching.com/pablo.rodriguez/^Iuid=1001^Igid=1001 Sep 1 10:58:30 socrates dovecot: imap-login: Login: user=<pablo.rodriguez@escuelasuperiordecoaching.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): Effective uid=1001, gid=1001, home=(none) Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): maildir: data=/home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com/ Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): maildir++: root=/home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com, index=, control=, inbox=/home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): Namespace : Using permissions from /home/vmail/pablo.rodriguez@escuelasuperiordecoaching.com: mode=0700 gid=-1 Sep 1 10:58:30 socrates dovecot: IMAP(pablo.rodriguez@escuelasuperiordecoaching.com): Disconnected: Logged out bytes=117/1383
I can see that Dovecot is creating when...I login?
What's the problem? I can't understand...
Thanks in advance.
On 2010-09-01 7:35 AM, Pablo <boinker@gmail.com> wrote:
password_query = SELECT password FROM mailbox WHERE username = '%n' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%n'
Now I think it's all right.
Depending on your requirements, you might consider changing it to '%Ln' instead... I know on our systems we never allow mixed case usernames, but force all to lowercase.
--
Best regards,
Charles
Yes Bill and Charles!!!
Thank you again, not only solved my folder problem, but I've solved accesing to my emails too! :-))
Thank you very much, I understand now how dovecot, sql and postfix work together.
2010/9/1 Charles Marcus <CMarcus@media-brokers.com>:
On 2010-09-01 7:35 AM, Pablo <boinker@gmail.com> wrote:
password_query = SELECT password FROM mailbox WHERE username = '%n' user_query = SELECT maildir, 1001 AS uid, 1001 AS gid FROM mailbox WHERE username = '%n'
Now I think it's all right.
Depending on your requirements, you might consider changing it to '%Ln' instead... I know on our systems we never allow mixed case usernames, but force all to lowercase.
--
Best regards,
Charles
On 01/09/2010 12:10, Pablo wrote:
Thank you again.
Yes, you're on the way :-)
Problem was that in /etc/dovecot/dovecot.conf was:
mail_location = maildir:/home/vmail/%u/
instead of my new line:
mail_location = maildir:/home/vmail/%d/%u/
Are you sure that you want %d/%u and not %d/%n ?
Bill
participants (3)
-
Charles Marcus
-
Pablo
-
William Blunn