[Dovecot] Howto create maildir in lower case while user login via imap/pop3?
Hi, all. I searched mail archives, but no result. I use OutLook Express on Windows XP as MUA, login username is in upper case, such as '[EMAIL PROTECTED]', when login via imap, dovecot create directories: /home/vmail/ |- BBB.COM/ # <- Domain name |- AAA/ # <- User name |- cur/ |- xxx Here, domain name and user name are in upper case. How can i make it create directories in lower case? # # dovecot -n # # /etc/dovecot.conf log_path: /var/log/dovecot 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 mail_location: maildir:/%h/%d/%n/:INDEX=/%h/%d/%n/ mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: mechanisms: plain login user: vmail passdb: driver: ldap args: /etc/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot-ldap.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: 432 user: vmail group: vmail # # File: /etc/dovecot-ldap.conf # hosts = 127.0.0.1:389 ldap_version= 3 auth_bind = yes dn = cn=vmail,dc=openbsdonly,dc=org dnpass = passwd base= o=%d,o=domains,dc=openbsdonly,dc=org scope = subtree deref = never user_filter = (&(mail=%u)(objectClass=qmailUser)(accountStatus=active)) user_attrs = homeDirectory=home,mailMessageStore=maildir:mail,mailQuota=quota=maildir:storage pass_filter = (mail=%u) pass_attrs = userPassword=password user_global_uid = 2000 user_global_gid = 2000 default_pass_scheme = CRYPT -- Best Regards. Zhang Huangbin - OpenBSD 4.2 -release, i386. - RHEL 5.1 Client
[Dovecot] outlook2007 shows frequent imap disconnect no matter what outlook-idle setting in dovecot.conf
Hello, I saw the problem quite often in various posts but could not find a real solution . Problem is that I frequently get annoying popups from outlook 2007 about imap idle timeouts which block working with outlook until the popup is acknowledged. The popup says: Your IMAP server closed the connection. This can occur if you leave the connection idle for too long. Protocol: IMAP Server: testhost Port: 143 Error Code: 0x800CCCDD I tried to run dovecot with or without "imap_client_workarounds = outlook-idle" but do not see any difference. I am running dovecot on Red Hat Enterprise Linux Client release 5.1 (Tikanga). Below is the output of some commands to get a clue about my config. Background info: Our primary mailboxes are on exchange servers. As there is a size limit on the server mailboxes I am evaluating a local storage solution for our users. Thus I set up an additional mailbox in outlook using IMAP. Local .pst files can not be backuped easily (especially when outlook is running) and I am investigating a local IMAP server where users can move their mails to. This server can easily be backuped (even incrementally when using Maildir) and users do always have access to their mails. The drawbacks are that users must have an extra login to the imap server because I have no ldap access to the company AD server from our local site domain. The solution will not be accepted though if I can not prevent the frequent disconnect popups. Peter #dovecot --version 1.0.rc15 #dovecot -n # /etc/dovecot.conf protocols: imap imaps login_dir: /var/run/dovecot/login login_executable: /usr/libexec/dovecot/imap-login mail_location: maildir:~/Maildir maildir_copy_with_hardlinks: yes auth default: passdb: driver: pam userdb: driver: passwd # tail /var/log/messages Mar 26 06:45:28 testhost dovecot: imap-login: Login: user=, method=PLAIN, rip=:::130.143.81.176, lip=:::130.143.83.92 Mar 26 06:46:01 testhost dovecot: IMAP(peter): Disconnected: Logged out Mar 26 06:46:01 testhost dovecot: IMAP(peter): Disconnected Mar 26 07:15:31 testhost dovecot: imap-login: Login: user=, method=PLAIN, rip=:::130.143.81.176, lip=:::130.143.83.92 Mar 26 07:15:31 testhost dovecot: imap-login: Login: user=, method=PLAIN, rip=:::130.143.81.176, lip=:::130.143.83.92 Mar 26 07:16:04 testhost dovecot: IMAP(peter): Disconnected Mar 26 07:16:04 testhost dovecot: IMAP(peter): Disconnected Mar 26 07:40:13 testhost dovecot: imap-login: Login: user=, method=PLAIN, rip=:::130.143.81.176, lip=:::130.143.83.92 Mar 26 07:40:13 testhost dovecot: imap-login: Login: user=, method=PLAIN, rip=:::130.143.81.176, lip=:::130.143.83.92 Mar 26 07:40:39 testhost dovecot: IMAP(peter): Disconnected
Re: [Dovecot] xexec and dovecot 1.1
Charles Marcus escribió: On 3/25/2008, Marc Perkel ([EMAIL PROTECTED]) wrote: What I'm really looking for someone to do is write some kind of SMTP over IMAP plugin so that IMAP can be an authenticated transport that would carry outbound email to Dovecot which would hand it off to an SMTP server or be a conduit to SMTP server. That way email users need not configure outgoing SMTP. It would just send outgoing email over the same connections. I have been a big detractor for any usefulness for this kind of thing, but there is one use that would be a big plus... For the 'Copy to Sent' function... if you sent a message somehow using the IMAP connection, maybe you could save the Client having to upload the same message AGAIN just to copy it to the Sent folder (think 10MB email sent over a 512Kb connection)... No need for a new extension, it's easier to make your MTA deliver a copy of outgoing mail to the 'Sent' folder for those users that want it. -- Angel Marin http://anmar.eu.org/
Re: [Dovecot] Howto create maildir in lower case while user login viaimap/pop3?
Hi, Toms. Toms Trankalis wrote: I have a similar problem. When mail comes to [EMAIL PROTECTED] (in lovercase) dovecot creates directory /vmail/domain.com/user, but if user types login like [EMAIL PROTECTED], then dovecot creates dir /vmail/domain.com/User and I wonder why dovecot accepts the login name at all? In my sutiation dovecot is auth against mysql database. I fixed this situation, and sorry for the noise :( Reference: http://wiki.dovecot.org/Variables#head-010a6461d783547686f70249e820fd6b83fd453e %L - lowercase So i set mail_location to: mail_location = maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/ It works. -- Best Regards. Zhang Huangbin - OpenBSD 4.2 -release, i386. - RHEL 5.1 Client
Re: [Dovecot] xexec and dovecot 1.1
On 3/25/2008 2:20 PM, Marc Perkel wrote: But when I was sitting here watching a large email I had just sent copying to the Sent folder, just minutes after reading your message - it hit me that this would be one very real benefit to it... Yes - my idea isn't for Dovecot to be an SMTP server. As you know IMAP can move messages from the client to the server. My idea is that you add the ability to move it to the server and then hand it off to a real SMTP server for delivery. IMAP is just being used as a transport to upload the message past various port blocks. Does this make sense? Of course... this is the part I saw some value in. But what I meant was, I had seen some messages from you in the past (many months ago) suggesting changes the the IMAP protocol in general that would allow the execution of arbitrary code to do arbitrary things. *This* is what I didn't like. -- Best regards, Charles
[Dovecot] Moving main inbox file from /var/mail to ~/mail
Hi list, I am using Dovecot version 1.0.10 in a Debian package. At the moment, i have the main INBOX of each user in /var/mail/%u and others mboxes in ~/mail/. Here is the line coming from my /etc/dovecot/dovecont.conf mail_location = mbox:~/mail:INBOX=/var/mail/%u I would like to move the main inbox in each home folder with the rest of the others mboxes. What should be the process ? Should i only tkahe the network down, update my conf file and move the inbox of every user ? Or do I have to do something different ? Thanks Regards Romain romain(at)abakila(dot)net
Re: [Dovecot] outlook2007 shows frequent imap disconnect no matter what outlook-idle setting in dovecot.conf
on 3-26-2008 1:33 AM Kielbasiewicz, Peter spake the following: Hello, I saw the problem quite often in various posts but could not find a real solution . Problem is that I frequently get annoying popups from outlook 2007 about imap idle timeouts which block working with outlook until the popup is acknowledged. The popup says: Your IMAP server closed the connection. This can occur if you leave the connection idle for too long. Protocol: IMAP Server: testhost Port: 143 Error Code: 0x800CCCDD I tried to run dovecot with or without "imap_client_workarounds = outlook-idle" but do not see any difference. I am running dovecot on Red Hat Enterprise Linux Client release 5.1 (Tikanga). Below is the output of some commands to get a clue about my config. Background info: Our primary mailboxes are on exchange servers. As there is a size limit on the server mailboxes I am evaluating a local storage solution for our users. Thus I set up an additional mailbox in outlook using IMAP. Local .pst files can not be backuped easily (especially when outlook is running) and I am investigating a local IMAP server where users can move their mails to. This server can easily be backuped (even incrementally when using Maildir) and users do always have access to their mails. The drawbacks are that users must have an extra login to the imap server because I have no ldap access to the company AD server from our local site domain. The solution will not be accepted though if I can not prevent the frequent disconnect popups. Peter #dovecot --version 1.0.rc15 First try upgrading to a more current version. 1.0.rc15 has got to be a year old by now. You can get a newer rpm at atrpms.net. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't signature.asc Description: OpenPGP digital signature
[Dovecot] (userdb/ldap) Set home dovecot variable - How?
Dovecot version dovecot-1.0.rc14-7 (opensuse) Postfix is using Dovecot LDA. I'm getting this error message, and I guess it's going to be a problem on my next task, which is to set up sieve scripts. Is there something wrong/contraditory on my config or I forgot something? I want: /var/dovecot-tests/: where user's inbox resides /var/dovecot-tests/home/: home dir (users will not be system users, this home is for sieve) /var/dovecot-tests/data/: mbox --- error msg --- --- --- --- auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip auth(default): client out: CONT1 auth(default): client in: CONT 1 AHRoYWlzY2diAHRyb2NhcjEyMw== auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object class=inetlocalmailrecipient)(uid=someuser)) auth(default): ldap(someuser,client_ip): result: mail(user)=someuser auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me auth(default): client out: OK 1 user=someuser auth(default): master in: REQUEST 9 13177 1 auth(default): ldap(someuser,client_ip): user search: base=dc=mydomain,dc=me scope=subtree fi lter=(&(objectclass=inetlocalmailrecipient)(mail=someuser)) fields=uid, uid auth(default): master out: USER9 someuseruser=someuser uid=1500 gid=12 imap-login: Login: user=, method=PLAIN, rip=client_ip, lip=dovecot_machine_ip debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Effective uid=1500, gid=12 debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: data=/var/dovecot-test/data/someuser:INBOX=/var/dovecot-test/someuser debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: root=/var/dovecot-test/data/someuser, index=/var/dovecot-test/data/someuser, inbox=/var/dovecot -teste-mailspool/someuser auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip resp=dGhhaXNjZ2IAdGhhaXNjZ2IAdHJvY2FyMTIz auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object class=inetlocalmailrecipient)(uid=someuser)) auth(default): ldap(someuser,client_ip): result: mail(user)=someuser auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me auth(default): client out: OK 1 user=someuser auth(default): master in: REQUEST 10 16172 1 auth(default): ldap(someuser,client_ip): user search: base=dc=mydomain,dc=me scope=subtree fi lter=(&(objectclass=inetlocalmailrecipient)(mail=someuser)) fields=uid, uid auth(default): master out: USER10 someuseruser=someuser uid=1500 gid=12 imap-login: Login: user=, method=PLAIN, rip=client_ip, lip=dovecot_machine_ip debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Effective uid=1500, gid=12 debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: data=/var/dovecot-test/data/someuser:INBOX=/var/dovecot-test/someuser debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')mbox: root=/var/dovecot-test/data/someuser, index=/var/dovecot-test/data/someuser, inbox=/var/dovecot -teste-mailspool/someuser debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Disconnected: Logged out debug ('someuser' 'someuser' '' 'IMAP' '/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB' '1500 ')Disconnected: Logged out auth(default): client in: AUTH 1 PLAIN service=IMAP lip=dovecot_machine_ip rip=client_ip auth(default): client out: CONT1 auth(default): client in: CONT 1 AHRoYWlzY2diAHRyb2NhcjEyMw== auth(default): ldap(someuser,client_ip): bind search: base=dc=mydomain,dc=me filter=(&(object class=inetlocalmailrecipient)(uid=someuser)) auth(default): ldap(someuser,client_ip): result: mail(user)=someuser auth(default): ldap(someuser,client_ip): bind: dn=cn=112345,ou=people,dc=mydomain,dc=me auth(default): client out: OK 1 user=someuser auth(default): master in: REQUEST 11 70141 --- error msg --- --- --- --- -- dovecot.conf --- --- --- --- login_user = dovecot mail_extra_groups = mail valid_chroot_dirs = /var/dovecot-test mail_location = mbox:/var/dovecot-test/data/%u:INBOX=/var/dovecot-test/%u login_process_per_connection = yes login_processes_count = 3 login_greeting = login_greeting_capability = yes namespace private { separator = / p
Re: [Dovecot] sieve header :matches for multiline header
On Mon, Mar 17, 2008 at 10:49:16PM +0300, Anton Yuzhaninov wrote: > RFC3028 say: Not an answer, but note that RFC3028 has been superseded by RFC5228. mm