[Dovecot] POP3/IMAP newbie question
Is it possible to serve both POP3 and IMAP for the same user from the same mailbox format, e.g. the maildir format?
If so, how should I configure in dovecot.conf?
At the moment I have (dovecot -n): # 1.1.beta2: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_disable: yes 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_extra_groups: mail mail_location: maildir:~/Mail mail_full_filesystem_access: yes dotlock_use_excl: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): quota trash dspam expire autocreate mail_plugins(imap): quota trash dspam expire autocreate mail_plugins(pop3): quota expire 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 imap_client_workarounds(default): delay-newmail outlook-idle imap_client_workarounds(imap): delay-newmail outlook-idle imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login gssapi username_format: %n passdb: driver: pam args: blocking=yes dovecot userdb: driver: passwd args: blocking=yes socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 plugin: quota: fs:storage=102400 trash: /etc/dovecot/trash.conf sieve: ~/.dovecot.sieve dspam: /usr/sbin/dspam:Spam:nosignature:Trash:users autocreate: Spam
I.e., I use the same mail_location for both POP3 and IMAP. However, mails are delivered to ~/Mail/inbox and seems to be invisible to both my IMAP and POP3 client (Thunderbird).
Any input appreciated /Lars
on 10/23/2007 2:39 PM Lars Stavholm spake the following:
Is it possible to serve both POP3 and IMAP for the same user from the same mailbox format, e.g. the maildir format?
If so, how should I configure in dovecot.conf?
At the moment I have (dovecot -n): # 1.1.beta2: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_disable: yes 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_extra_groups: mail mail_location: maildir:~/Mail mail_full_filesystem_access: yes dotlock_use_excl: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): quota trash dspam expire autocreate mail_plugins(imap): quota trash dspam expire autocreate mail_plugins(pop3): quota expire 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 imap_client_workarounds(default): delay-newmail outlook-idle imap_client_workarounds(imap): delay-newmail outlook-idle imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login gssapi username_format: %n passdb: driver: pam args: blocking=yes dovecot userdb: driver: passwd args: blocking=yes socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 plugin: quota: fs:storage=102400 trash: /etc/dovecot/trash.conf sieve: ~/.dovecot.sieve dspam: /usr/sbin/dspam:Spam:nosignature:Trash:users autocreate: Spam
I.e., I use the same mail_location for both POP3 and IMAP. However, mails are delivered to ~/Mail/inbox and seems to be invisible to both my IMAP and POP3 client (Thunderbird).
Any input appreciated /Lars
It doesn't make a lot of sense to do it, but with your setting of mail_full_filesystem_access: yes you need to set the proper base directory in the pop3 mua. Also, when the pop client clears the inbox, it will be cleared for the imap login also.
-- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
Scott Silva wrote:
on 10/23/2007 2:39 PM Lars Stavholm spake the following:
Is it possible to serve both POP3 and IMAP for the same user from the same mailbox format, e.g. the maildir format?
It doesn't make a lot of sense to do it,
How about normally logging in via POP, but users want webmail access also?
Ed W
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 24 Oct 2007, Ed W wrote:
How about normally logging in via POP, but users want webmail access also?
Well, I'm very curious about POP3 and IMAP access. It does not work well locally. When POP3 removes mails from the server, IMAP sees nothing anymore.
Most people use folders to sort mail. This is not manageable with POP3 and IMAP together, with POP you sort locally, with IMAP on the server, but the folders are not accessable from POP.
Do your users use MUAs, that do not support IMAP?
Bye.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRx832i9SORjhbDpvAQIW4Af/aDV/+I9TddcIi+91x39ObtomNN650cKG 4nbQhDGQgBY/lw2y5+55SmxYBRsr1fe5Q9ZUOSmfNIJDBNbPYlFKNxAQNTzzAvEs CqEZc1AjtSfqfgQRuIO2yR9uOIBLNQ6J4uj9KgvJGqVFiMLShj9o2YxQCUSOM1i5 OytAFGNtePSGwq12Zjb4rIZpeS4MGC6B/LdUauzAnqwzHgv4jQKvCBjMzdjDjlyf bSSDFt5CuVeyznXvKBCQwhq3LGtKJwMx7SEyhNuGn2NPxDaET3UEZ6zmdEglHT6u Yxc6/DFsNilZ8VYfne0H8dWT62ClbBGGvnuhxfJOyCgMSB7Bngn3IQ== =FwcX -----END PGP SIGNATURE-----
Steffen Kaiser wrote:
On Wed, 24 Oct 2007, Ed W wrote:
How about normally logging in via POP, but users want webmail access also?
Well, I'm very curious about POP3 and IMAP access. It does not work well locally. When POP3 removes mails from the server, IMAP sees nothing anymore.
Well, that's kinda' whats supposed to happen.
Most people use folders to sort mail. This is not manageable with POP3 and IMAP together, with POP you sort locally, with IMAP on the server,
Exactly.
but the folders are not accessable from POP.
As IMAP is not accessible from POP since it's two different protocols with different functionality, as is intended I guess.
Do your users use MUAs, that do not support IMAP?
Well, as a matter of being somewhat relaxed about things like this, I would like the users to choose whatever suits them, as opposed to some techie moron (me) making the choice for them. Common sense, right?
Cheers /Lars
Lars Stavholm wrote:
Well, as a matter of being somewhat relaxed about things like this, I would like the users to choose whatever suits them, as opposed to some techie moron (me) making the choice for them. Common sense, right?
Cheers /Lars
Actually, from my experience, a user will do whatever the techie tells them, because they don't really know the difference...I've forcibly moved users on my server to IMAP, and they didn't realize until then how much better it was than POP3....
RACooper
rac@noidea.us wrote:
Lars Stavholm wrote:
Well, as a matter of being somewhat relaxed about things like this, I would like the users to choose whatever suits them, as opposed to some techie moron (me) making the choice for them. Common sense, right?
Actually, from my experience, a user will do whatever the techie tells them, because they don't really know the difference...I've forcibly moved users on my server to IMAP, and they didn't realize until then how much better it was than POP3....
Some of my users have (and really want to continue) over 10Gb of email. And that is growing. I do prefer these users on POP3, so they are on their own with all that. Just an example...
FiL
on 10/24/2007 11:23 AM FiL @ Kpoxa spake the following:
rac@noidea.us wrote:
Lars Stavholm wrote:
Well, as a matter of being somewhat relaxed about things like this, I would like the users to choose whatever suits them, as opposed to some techie moron (me) making the choice for them. Common sense, right?
Actually, from my experience, a user will do whatever the techie tells them, because they don't really know the difference...I've forcibly moved users on my server to IMAP, and they didn't realize until then how much better it was than POP3....
Some of my users have (and really want to continue) over 10Gb of email. And that is growing. I do prefer these users on POP3, so they are on their own with all that. Just an example...
FiL
But users quickly learn to check the box "leave mail on server" and then you will get the angry calls of " I keep getting the same 200 e-mails over and over". Space is cheap, and if you are in a corporate environment, keeping mail on the server makes for easy backups.
-- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
Ed W wrote:
Scott Silva wrote:
on 10/23/2007 2:39 PM Lars Stavholm spake the following:
Is it possible to serve both POP3 and IMAP for the same user from the same mailbox format, e.g. the maildir format?
It doesn't make a lot of sense to do it,
How about normally logging in via POP, but users want webmail access also?
There's a good one! /L
on 10/24/2007 5:06 AM Ed W spake the following:
Scott Silva wrote:
on 10/23/2007 2:39 PM Lars Stavholm spake the following:
Is it possible to serve both POP3 and IMAP for the same user from the same mailbox format, e.g. the maildir format?
It doesn't make a lot of sense to do it,
How about normally logging in via POP, but users want webmail access also?
Ed W
Then use something like openwebmail. It uses pop, but stores its files in mbox format, so you can still see them with imap. It can look at the inbox, and users can read what is there, but as soon as they pop with their normal client, the mail is pulled off the server and the inbox is empty.
-- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
On Tue, Oct 23, 2007 at 11:39:45PM +0200, Lars Stavholm wrote:
Is it possible to serve both POP3 and IMAP for the same user from the same mailbox format, e.g. the maildir format?
If so, how should I configure in dovecot.conf?
Answering my own question for the possible benefit of others:
I've defined mail_location on a global level to be 'maildir:~/Mail', making sure that I leave out the definition in the 'protocol imap', and 'protocol pop3' sections, and everything works as expected, you can reach your inbox through IMAP or POP3. (Dovecot rocks!) /L
participants (7)
-
Ed W
-
FiL @ Kpoxa
-
Lars Stavholm
-
rac@noidea.us
-
Scott Silva
-
stava@telcotec.se
-
Steffen Kaiser