LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mail delivered to /home/user/Maildir instead of /var/mail/vdomain/vuser/Maildir (https://www.linuxquestions.org/questions/linux-software-2/mail-delivered-to-home-user-maildir-instead-of-var-mail-vdomain-vuser-maildir-4175421558/)

snowweb 08-11-2012 07:31 AM

Mail delivered to /home/user/Maildir instead of /var/mail/vdomain/vuser/Maildir
 
I've instructed Postfix to use dovecot transport with the following line in /etc/postfix/main.cf
Code:

virtual_transport = dovecot
but it is still delivered to /home/user/Maildir.

Can someone tell me what I'm doing wrong please?

Here is my dovecot -n
Code:

# OS: Linux 2.6.32-279.2.1.el6.x86_64 x86_64 CentOS release 6.3 (Final) ext4
auth_mechanisms = cram-md5
disable_plaintext_auth = no
last_valid_gid = 1000
mail_gid = 502
mail_location = maildir:/var/mail/%d/%n/Maildir
mail_uid = 501
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
}
ssl = no
userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
}
verbose_proctitle = yes

Here is the contents of /etc/dovecot/users
Code:

peter:{SHA512}AUodPFNKd7SO++EIZlGDv2vItu5c6vGHfnFpJAVcTTP/E2J79YU2xOmXMgMaXmA5DdPApnImoVX1f2oip+lpJQ==
Many thanks,

Peter

dkm999 08-16-2012 09:59 PM

You don't need to use virtual_transport to specify the interface with Dovecot. By default, dovecot will look for mail in /home/{user}/Maildir. If you want to specify that Postfix should deliver mail to some other folder, you can use Postfix's virtual_mailbox facilities(see this page). Then you will also need to tell Dovecot to look for mail in some place other than the default location; for that configuration, see this page


All times are GMT -5. The time now is 05:11 PM.