Re: [Dovecot] Errors in log file

2013-12-20 Thread Christian Rößner
Hi,

 Dec 16 17:21:55 imap(roessner@): Error: 
 stat(/srv/mail/virtual/*/roessner/.dovecot.sieve/tmp) failed: Not a 
 directory
 
 This is why it's not a good idea to use home as the Maildir root directory. 
 You can work around this by setting maildir_stat_dirs=yes (minor performance 
 hit). A bigger problem comes if a user creates a dovecot/sieve folder.

I fully agree. The mailboxes are historical from an old Courier-IMAP server. 
Maybe more than 5 years ago. I switched to Dovecot in the past.

Probably I will write a little script and rearrange the directory structure.

The workaround is okay for now. Thanks a lot

Enjoy the holidays

-Christian Rößner

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein



signature.asc
Description: Message signed with OpenPGP using GPGMail


[Dovecot] [dovecot-2.2.5] Duplicates in mdbox

2013-12-20 Thread radek
Hi 

I have strange situation with one of mailboxes in mdbox format. Some messages 
are duplicated, not all. I am sure that is not sieve or another mail client 
issue, because access is via roundcube without sieve plugin.
In maillog I have not found any suspicious information about this problem and i 
can see that from postfix do dovecot-lda was piped only one copy of message.

Radek


Re: [Dovecot] configure lmtp to deliver to email addresses case insensitively

2013-12-20 Thread Adrian Zaugg

I've updated the wiki under:

http://wiki2.dovecot.org/LMTP/Exim

to document the discussed problem. Maybe someone can review this.

Regards, Adrian.

Am 19.12.13 22:59 schrieb Timo Sirainen:
 auth_username_format = %u
 protocol lmtp {
   auth_username_format = %Lu
 }


[Dovecot] Thank you!

2013-12-20 Thread Steve Litt
Hi all,

I've been on this list for 18 months but almost completely as a lurker.
You know why? Because Dovecot never, ever, ever screws up on me or
displays unexpected behavior, so I never have technical questions.

Thank you for producing such a rock solid piece of software!

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: [Dovecot] [SOLVED] Errors in log file

2013-12-20 Thread Christian Rößner
Hi

 Dec 16 17:21:55 imap(roessner@): Error: 
 stat(/srv/mail/virtual/*/roessner/.dovecot.sieve/tmp) failed: Not a 
 directory
 
 This is why it's not a good idea to use home as the Maildir root directory. 
 You can work around this by setting maildir_stat_dirs=yes (minor performance 
 hit). A bigger problem comes if a user creates a dovecot/sieve folder.
 
 I fully agree. The mailboxes are historical from an old Courier-IMAP server. 
 Maybe more than 5 years ago. I switched to Dovecot in the past.
 
 Probably I will write a little script and rearrange the directory structure.

Solved! 15.000 lines bash script and now I have a perfect clean directory 
structure and all problems are gone

Happy holidays
Christian 

[Dovecot] Ignoring mount points for secondary dovecot instance does not seem to work

2013-12-20 Thread Jouko Nikula
Hello,

I tried to ignore all mountpoints in Dovecot. I have two dovecot
instances running:

root@fileserver# doveadm instance list
path
name  last used   running
/usr/local/var/run/dovecot
dovecot   2013-12-21 08:09:34 yes
/var/run/dovecot.smtp
smtp-auth 2013-12-21 08:09:34 yes

I give commands:

root@fileserver# doveadm mount add '/*' ignore
root@fileserver# doveadm -i smtp-auth mount add '/*' ignore

And then restart dovecot. In the log I can see that the main instance
is now ignoring my mountpoints, but the smtp-auth instance is still
warning about my mountpoints. Is this a bug or am I missing something?

My configurations are as follows:

root@fileserver# doveconf -ni smtp-auth
# 2.2.9: /usr/local/etc/dovecot/dovecot.conf.smtp
# OS: Linux 3.2.0-4-686-pae i686 Debian 7.1
auth_mechanisms = plain login
base_dir = /var/run/dovecot.smtp/
first_valid_uid = 123
instance_name = smtp-auth
log_timestamp = %Y-%m-%d %H:%M:%S 
mail_gid = mail
mail_location = maildir:~/mail
mail_uid = vmail
passdb {
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
passdb {
  args = dovecot
  driver = pam
}
protocols =
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
}
ssl_cert = /etc/ssl/certs/imapd.pem
ssl_key = /etc/ssl/private/imapd.pem
userdb {
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}


root@fileserver# doveconf -n
# 2.2.9: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-686-pae i686 Debian 7.1
auth_mechanisms = plain login
first_valid_uid = 123
log_timestamp = %Y-%m-%d %H:%M:%S 
mail_gid = mail
mail_location = maildir:~/mail
mail_uid = vmail
passdb {
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
passdb {
  args = session=yes dovecot
  driver = pam
}
protocols = imap
service auth-worker {
  user = vmail
}
ssl_cert = /etc/ssl/certs/imapd.pem
ssl_key = /etc/ssl/private/imapd.pem
userdb {
  args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}

regards,
   - Jouko