I’m setting up postfix with mysql and PostfixAdmin. I’d like mail delivered to
/var/mail/vhosts/<domain name>/<user name>, but the mail gets delivered to
/var/mail/<username> with all email appended to one file, not separate files
for each email. I did a grep on my /etc/dovecot directory for mbox, but found
nothing that wasn’t commented out. I get no errors in my logs. My client, OS
X Mail, connects and Connection Doctor reports that the connection is good.
Suggestion appreciated,
My dovecot -n is:
auth_debug = yes
auth_debug_passwords = yes
auth_default_realm = attymatter.com
auth_realms = chrysalis.attymatter.com
auth_verbose = yes
hostname = chrysalis.attmatter.com
lda_mailbox_autocreate = yes
mail_debug = yes
mail_gid = vmail
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_plugins = mail_log notify
mail_uid = vmail
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size
}
postmaster_address = [email protected]
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
}
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
userdb {
args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
driver = static
}
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol imap {
mail_max_userip_connections = 3
mail_plugins = mail_log notify
}