LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix and Maildir (https://www.linuxquestions.org/questions/linux-server-73/postfix-and-maildir-656609/)

h725 07-18-2008 07:36 AM

Postfix and Maildir
 
Hi,

I'm migrating from qmail to postfix.
Virtual user are stored in mysql db. For each user, the maildir record is "/usr/local/virtual/domain.ext/username".
Ok, I must add the trailing / in order to use maildir format in postfix.

My problem is: when I send an email to "username@domain.ext", postix create cur, new and tmp directory in /usr/local/virtual/domain.ext/username, while at this moment the correct path must be "/usr/local/virtual/domain.ext/username/Maildir/" in order to work with courier-imap.

How can I tell postfix to create "Maildir/cur" , "Maildir/new", etc ?


I need the VDA patch?
Tnx

eliufoo 07-18-2008 09:18 AM

Can you post your settings in /etc/authlib/authmysqlrc

For the following parameters

Quote:

MYSQL_HOME_FIELD
MYSQL_MAILDIR_FIELD

BlueC 07-18-2008 09:19 AM

What makes you think that courier-imap requires the mail to be in /usr/local/virtual/domain.ext/username/Maildir/ ?

Presuming you are using authlib with courier imap just ensure that your /etc/authlib/authmysqlrc has the same maildir field from the mysql database as that which postfix is using, e.g.

MYSQL_MAILDIR_FIELD maildir

HTH

h725 07-18-2008 09:50 AM

Quote:

Originally Posted by eliufoo (Post 3218920)
Can you post your settings in /etc/authlib/authmysqlrc

For the following parameters



MYSQL_HOME_FIELD home

MYSQL_MAILDIR_FIELD home

with "home" = /usr/local/virtual/domain.ext/username/.

courier auth is working, but postfix send mail to /usr/local/virtual/domain.ext/username/new/.

In fact, by this way, I can't read all the email already present in the user maildir.

My goal is to delivery in Maildir/new


All times are GMT -5. The time now is 03:01 AM.