dovecot at corwyn.net
2009-Apr-30 20:12 UTC
[Dovecot] Case sensitive oddity when mail delivered.
Currently running Postfix/Dovecot1.1.8 with mysql storing the user data and delivering to folders as determined by dovecot using dovecot's "deliver" as defined in postfix's master.cf Mail location is determined by mail_location = maildir:/var/spool/mail/%d/%n/Maildir If I have an account user1 at example.com it works just fine. However, when mail is sent to USER1 at EXAMPLE.COM it also delivers, but ends up creating a new file structure so I end up with /var/spool/mail/example.com/user1 (with lower case mail in it) and /var/spool/mail/EXAMPLE.COM/USER1 (with uppercase mail in it) which is decidedly not good. Looks to me like wherever %d and %n are pulled from is pulled out of the email, but not lower-cased. Any ideas where I would look to change this value before the email is delivered to the mailbox? Thx. rick Rick Steeves http://www.sinister.net "Life is like a sausage: The more you pack into it, the longer it gets"
On 04/30/2009 10:12 PM dovecot at corwyn.net wrote:> > Mail location is determined by > mail_location = maildir:/var/spool/mail/%d/%n/Maildir > > If I have an account user1 at example.com it works just fine. However, > when mail is sent to USER1 at EXAMPLE.COM it also delivers, but ends up > creating a new file structure so I end up with > /var/spool/mail/example.com/user1 (with lower case mail in it) > and > /var/spool/mail/EXAMPLE.COM/USER1 (with uppercase mail in it) > > which is decidedly not good.That's the correct behavior, as configured. Try: mail_location = maildir:/var/spool/mail/%Ld/%Ln/Maildir ^ ^ See also http://wiki.dovecot.org/Variables Regards, Pascal -- The trapper recommends today: face1e55.0912022 at localdomain.org