You are not logged in.
I have followed the wiki guide at:
https://wiki.archlinux.org/index.php/Vi … ail_system
on a virtual machine server, pretty much exactly as it says. I have a full LAMP server up and running, with PostfixAdmin and phpMyAdmin.
With the all of the configuration files set as they are on the wiki, I can make emails accounts with PostfixAdmin and login to them with Thunderbird. I can also send emails out and receive them with Gmail, etc.
My problem is that I cannot receive emails. Postfix log states:
postfix/virtual[960]: 70981C0609: to=<username@domain.com>, relay=virtual, delay=0.12, delays=0.07/0.04/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
however they never show up in Thunderbird's inbox.
The current layout of my /home folder is:
vmail/user1
vmail/user1@domain.com
vmail/user2
vmail/user2@domain.com
The emails are actually showing up in the user@domain.com folder, and not in the user folder, but the wiki states to have this in dovecot.conf:
mail_home = /home/vmail/%d/%n
Which means it looks in the /home/vmail/user folder. I have tried changing it to
mail_home = /home/vmail/%d/%u
Which makes the emails show up in the inbox in Thunderbird, but says that all other folders do not exist (sent, trash, etc.) and I cannot delete any emails.
Is there something that i'm missing? Maybe a setting in the postfix configuration that will have it send the emails to the user folder instead of the user@domain.com folder?
Keep in mind that right now all of my configs are exactly as they are on the wiki for the PostfixAdmin setup, but I will post them on here anyway if someone wants me to.
P.S.
My MX record points directly to my main domain.com, not mail.domain.com
Not sure if that matters though
Thanks
Offline
It looks like if I make a symlink from username@domain.com/new to username/new and the same for cur, that everything works. The only problem is that this shouldn't have to be done and it would be hard to do it for every new email address.
Offline
Postfix just reads the maildir from the database lookup specified by the virtual_mailbox_map - it's postfixadmin that writes that value. So postfixadmin and dovecot have to be in sync, but it seems that yours are not.
I don't use postfixadmin, but from what I've read there are two settings in config.inc.php/config.local.php which combine to determine the maildir - and the default is “domain/user” (which matches the “%d/%n” that the wiki asks you to configure dovecot with). Your postfixadmin settings are different, so you need to change either the postfixadmin settings or the dovecot settings so that they agree on the format.
Once in sync, new users will be OK; you'll just have to fix up the existing users (either their maildir, or their mailbox map database entry, depending on which settings you edit to bring in sync).
Offline