[Dovecot] Disagreement on where mail goes.
My virtual users have their mail stored in /usr/local/virtual/user@example.com/
dovecot wants to read the mail from /usr/local/virtual/user@example.com/Maildir which is causing problems since all new mail is being written in /usr/local/virtual/user@example.com/new and dovecot is looking in /usr/local/virtual/user@example.com/Maildir/new
For the local users, /home/user/Maildir is the right directory.
for right now I've had to kludge a script that moves mail from /usr/local/virtual/user@example.com/new to /usr/local/virtual/user@example.com/Maildir/new every two minutes.
-- First we must assume a spherical cow.
One guess: your mail_location is misconfigured.
something like:
mail_location = maildir:/usr/local/%u/Maildir
might fix it up...
Computerisms
Bob Miller
867-334-7117 / 867-633-3760
http://computerisms.ca
On Fri, 2013-08-16 at 17:09 -0600, LuKreme wrote:
My virtual users have their mail stored in /usr/local/virtual/user@example.com/
dovecot wants to read the mail from /usr/local/virtual/user@example.com/Maildir which is causing problems since all new mail is being written in /usr/local/virtual/user@example.com/new and dovecot is looking in /usr/local/virtual/user@example.com/Maildir/new
For the local users, /home/user/Maildir is the right directory.
for right now I've had to kludge a script that moves mail from /usr/local/virtual/user@example.com/new to /usr/local/virtual/user@example.com/Maildir/new every two minutes.
On 16 Aug 2013, at 17:55 , Bob Miller bob@computerisms.ca wrote:
One guess: your mail_location is misconfigured.
something like:
mail_location = maildir:/usr/local/%u/Maildir
First, that isn't the right location. I moved the mail folders into maildir because dovecot didn’t see the mail otherwise. It shouls be /usr/local/%u
But *only* for the sql users. I though mail_location would set it globally for all users.
-- To read makes our speaking English good.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, 17 Aug 2013, LuKreme wrote:
On 16 Aug 2013, at 17:55 , Bob Miller bob@computerisms.ca wrote:
One guess: your mail_location is misconfigured.
something like:
mail_location = maildir:/usr/local/%u/Maildir
First, that isn't the right location. I moved the mail folders into maildir because dovecot didn’t see the mail otherwise. It shouls be /usr/local/%u
But *only* for the sql users. I though mail_location would set it globally for all users.
?
See http://wiki2.dovecot.org/MailLocation/Maildir I never used it myself, but if you specify mail_location, you should be able to drop "/Maildir" from the path. If Dovecot is to automagically detect the mailbox format, you need Maildir.
If you want to use different mail locations, you need to have your userdb return another mail_location setting for (some) users. E.g. configure the default / usual mail_location in the conf files and have SQL return a field mail with the proper location for that particular user.
http://wiki2.dovecot.org/MailLocation
"2. mail userdb field overrides mail_location setting."
http://wiki2.dovecot.org/AuthDatabase/SQL
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUhG+Z13r2wJMiz2NAQKG7gf7BPZku1Ix3vKFOOZj6LiBS5vuoubXbYXW LTaASX/LIY0x7yYwcSP+BSEmhYEKjr3iw+IyyDs/yRfr18brMTinIrBH1B0HOwms 9g/WWH1qFUe0eqBq7V6X4lRVJ5SaDoxirR9K6GDudrDI5D3N/HuLu1LQQRfLZSu6 tzAwrLKkplpI3mhooplLs9LaBn9qjuTlCu1pHrjlUHqlIqLtNnAPR20YDZrSBryX 1tq0YcVRXcvbZ/wodJYAuPmrZFzMhMjeSgqys7P24Mtoubb0YODjJZII/Dj7Bnpd X2nZ5KQn/EuzNmew/9hezVTkTyOWp3c8/RE3tQJwVMa8d73GYiDr0A== =K19R -----END PGP SIGNATURE-----
On 19 Aug 2013, at 00:42 , Steffen Kaiser skdovecot@smail.inf.fh-brs.de wrote:
See http://wiki2.dovecot.org/MailLocation/Maildir I never used it myself, but if you specify mail_location, you should be able to drop "/Maildir" from the path. If Dovecot is to automagically detect the mailbox format, you need Maildir.
If you want to use different mail locations, you need to have your userdb return another mail_location setting for (some) users. E.g. configure the default / usual mail_location in the conf files and have SQL return a field mail with the proper location for that particular user.
http://wiki2.dovecot.org/MailLocation
"2. mail userdb field overrides mail_location setting."
Thanks, I'v read those, but I don't know what the scope of that setting is.
I have mail_location set to milder:~/Maildir at the top-level of the dovecot.conf.
If I try to set it again in the userdb
userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql default_fields= uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u }
Well, I thought that threw an error last time I tried it. Hmm. OK.
<watches the logs with suspicion for a while>
OK, never mind. I don't know what I did last time, that does seem to work.
-- Nothing gold can stay -- Robert Frost Stay gold -- Johnny Cade
participants (3)
-
Bob Miller
-
LuKreme
-
Steffen Kaiser