On Mon, May 16, 2011 at 01:23:52PM -0400, John Nichel wrote: > Long time qmail user now migrating to Postfix (old guy who doesn't like > change J ). I have my Postfix server set up to the point where it is > sending and receiving mail properly but I'm wondering if there is a > configuration setting where I change how mail is stored on the machine. > I'm using Maildir, and when the server receives mail for a virtual > domain, it is storing it on the machine under: > > > /var/vmail/domain.tld/u...@domain.tld > > Dovecot is looking for mail in: > > /var/vmail/domain.tld/user
If delivering via virtual(8), adjust virtual_mailbox_maps to return the desired directory. Otherwise, and this is preferred, use a Dovecot delivery agent that knows where to read and write mail for each user. > I could configure Dovecot to look for the mail where Postfix is storing > it, but I'd rather (if possible) change Postfix to fit what Dovecot is > looking for (personal preference, as I'd rather not have an '@' in the > directory name). Is this possible? Largely, this is a Dovecot configuration question, if you hand delivery off to Dovecot (as you most probably should). > virtual_mailbox_base = /var/vmail > virtual_mailbox_domains = > mysql:/etc/postfix/mysql_virtual_domains_maps.cf > virtual_mailbox_limit = 51200000 > virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf > virtual_minimum_uid = DDD > virtual_uid_maps = static:DDD Looks like you're using virtual(8), for now adjust the result returned by the MySQL query in mysql_virtual_mailbox_maps.cf. Then learn how to use Dovecot (LMTP or a pipe(8) delivery agent) as the transport for virtual users. -- Viktor.