i have been spending countless hours on this and now i figured id come to the 'internet' for help.
I have installed a new install of postfix + dovecot + mysql.
Right now, i am able to receive email from my one mapped account 'sean@domain.com' but for some reason all messages get inserted into /var/mail/sean
the expected location is: /var/vmail/domain.com/sean
ill list the key pieces of code ive used to get this working.
postfix master.cf
dovecot unix - n n - - pipe
flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d ${recipient}
postfix main.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
Dovecot 10-mail.conf
mail_location = maildir:/var/vmail/%d/%n
mail_uid = vmail
mail_gid = mail
first_valid_uid = 150
last_valid_uid = 150
Dovecot 10-auth.conf
disable_plaintext_auth = yes
!include auth-sql.conf.ext
Dovecot auth-sql.conf.ext
passdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf.ext
}
userdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf.ext
}
Dovecot dovecot-sql.conf.ext
driver = mysql
connect = host=localhost dbname=mail user=mail password=P@ssw0rd
default_pass_scheme = MD5-CRYPT
password_query = \
SELECT username as user, password, '/var/vmail/%d/%n' as userdb_home, \
'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as userdb_uid, 8 as userdb_gid \
FROM mailbox WHERE username = '%u' AND active = '1'
user_query = \
SELECT '/var/vmail/%d/%n' as home, 'maildir:/var/vmail/%d/%n' as mail, \
150 AS uid, 8 AS gid, concat('dirsize:storage=', quota) AS quota \
FROM mailbox WHERE username = '%u' AND active = '1'
And that pretty much does it for the config part of what i'm trying to do.
Any ideas of what i'm doing wrong? { I should be bald by this time tomorrow :) }