Well, in case you haven't yet been able to tell, I'm certainly no dovecot guru. For my email address, aladdin@csunv.com, I thought the referenced line would give me a mail location of /var/mail/csunv.com/aladdin, and indeed it does. I would think your way would give me a mail location of /var/mail/csunv.com/aladdin/Maildir, which is not what I want.
This seems to be working fine. Regarding INBOX, I have a directory .INBOX in /var/mail/csunv.com/aladdin, which I think is what I want and is correct. At any rate, using both Outlook/imap and Thunderbird/imap clients I'm accessing my mail and mail folders just fine.
My problem isn't the location of the mail boxes, my problem is that dovecot is not filling in the %d variable in deliver & sieve, while it is doing so in the main part of dovecot just fine and and, again in the main part of dovecot, finding all the mailboxes with no problem. I have none of the issues referenced in Stephan's http://wiki.dovecot.org/DomainLost, and the auth_debug printout shows no change occurring to the user name/domain.
Thanks, Allen
-----Original Message----- From: dovecot-bounces+aladdin=csunv.com@dovecot.org [mailto:dovecot- bounces+aladdin=csunv.com@dovecot.org] On Behalf Of Noel Butler Sent: Sunday, September 12, 2010 6:56 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Lost %d variable
On Sun, 2010-09-12 at 01:24 -0400, Aladdin wrote:
mail_location:
maildir:/var/mail/%d/%n:CONTROL=/var/mail/%d/%n:INDEX=/var/mail/%d/%n:I NBOX=
/var/mail/%d/%n
This looks wrong- maildir:/var/mail/%d/%n it should be maildir:/var/mail/%d/%n/Maildir
and it appears strange that you're using INBOX=... but, it is your system you should know what you're doing with those options.
plugin:
sieve: /var/mail/%d/%n/.sieve
----------- End lda/sieve part --------------
userdb:
driver: static args: uid=vmail gid=vmail home=/var/mail/home/%u
??????? you are not specifying %d this also doesnt look right based on other information you have supplied /home/ ?? I suspect this section here is the main culprit, but it has been a long time since I've used any non mysql based solution, so I could be rusty.
userdb:
driver: passwd
plugin:
sieve: /var/mail/%d/%n/.sieve
And, here is the log output:
ops:/var/log/mail# cat deliver-errors.log
2010-09-11 18:23:46 deliver(aladdin): Error: sieve: failed to stat user's sieve script: stat(/var/mail//aladdin/.sieve) failed: Not a directory (using global script path in stead)
I would expect this error given the above criteria