Re: [Dovecot] Maildir owner importance
That last line actually made it possible for me to be able to log into the server :) I am still getting errors from PAM but it starting to look good. Is there a good HowTo on setting Dovecot to comunicate directly to MySql without using PAM in the middle ?
Also, Since Postfix is still not working on my server, I can't actually recive Emails. Is there somewere an example of the files that need to be in the maildir that I can put them in there and test that the email client get's the mail out ?
On Wed, 29 Dec 2004 18:36:34 +0200, Timo Sirainen tss@iki.fi wrote:
If you have passwords in Mysql, you probably don't want to use passwd-file as your auth_userdb. Rather just use:
auth_userdb = static uid=100 gid=101 home=/var/local/virtualdir/%d/%u
On 29.12.2004, at 18:58, Roi Efrati wrote:
That last line actually made it possible for me to be able to log into the server :) I am still getting errors from PAM but it starting to look good. Is there a good HowTo on setting Dovecot to comunicate directly to MySql without using PAM in the middle ?
I don't think there's anything else than doc/dovecot-mysql.conf, but it should be pretty helpful.
Also, Since Postfix is still not working on my server, I can't actually recive Emails. Is there somewere an example of the files that need to be in the maildir that I can put them in there and test that the email client get's the mail out ?
Maildir files are simple one message per file. It doesn't really matter what the files are named. Just put them into new/ or cur/ directory and Dovecot should see them. If you don't have real email files, that's fine too. Just write something in the file.
On Wed, 29 Dec 2004 19:06:15 +0200, Timo Sirainen tss@iki.fi wrote:
I don't think there's anything else than doc/dovecot-mysql.conf, but it should be pretty helpful.
Please forgive me for asking this but WHERE the XXXX can I find this file ?
Maildir files are simple one message per file. It doesn't really matter what the files are named. Just put them into new/ or cur/ directory and Dovecot should see them. If you don't have real email files, that's fine too. Just write something in the file.
I have made a file named test with some test in it and put it both at the new and cur directories. But Outlook don't seem to pick it up ?
On 29.12.2004, at 19:23, Roi Efrati wrote:
On Wed, 29 Dec 2004 19:06:15 +0200, Timo Sirainen tss@iki.fi wrote:
I don't think there's anything else than doc/dovecot-mysql.conf, but it should be pretty helpful.
Please forgive me for asking this but WHERE the XXXX can I find this file ?
How did you install Dovecot? It comes at least with sources. If you installed from binary package, it might be in /usr/share/doc/dovecot/, or maybe not.
Maildir files are simple one message per file. It doesn't really matter what the files are named. Just put them into new/ or cur/ directory and Dovecot should see them. If you don't have real email files, that's fine too. Just write something in the file.
I have made a file named test with some test in it and put it both at the new and cur directories. But Outlook don't seem to pick it up ?
If the file in new/ isn't moved into cur/ after logging in, Dovecot is looking into wrong directory for the mails. If your userdb had home=/var/local/virtualdir/%d/%u, then you should have either:
default_mail_env=maildir:%h and new mails should be delivered to /var/local/virtualdir/domain.com/user/new/
or
default_mail_env=maildir:%h/Maildir and new mails should be delivered to /var/local/virtualdir/domain.com/user/Maildir/new/
On Wed, 29 Dec 2004 19:58:33 +0200, Timo Sirainen tss@iki.fi wrote:
How did you install Dovecot? It comes at least with sources. If you installed from binary package, it might be in /usr/share/doc/dovecot/, or maybe not.
It came pre build with Fedora core 2. I have a directory : /usr/share/doc/dovecot-0.99.10.5 but it have no dovecot-mysql.conf in it. I also searched the drive and did not find it.
If the file in new/ isn't moved into cur/ after logging in, Dovecot is looking into wrong directory for the mails. If your userdb had home=/var/local/virtualdir/%d/%u, then you should have either:
default_mail_env=maildir:%h and new mails should be delivered to /var/local/virtualdir/domain.com/user/new/
or
default_mail_env=maildir:%h/Maildir and new mails should be delivered to /var/local/virtualdir/domain.com/user/Maildir/new/
At the moment the default_mail_env is set to 'maildir:/var/local/virtualdir/%d/%n' The auth_userdb is set to 'static uid=100 gid=101 home=/var/local/virtualdir/%d/%u'
Is this correct ?
On Wed, 2004-12-29 at 20:27 +0200, Roi Efrati wrote:
It came pre build with Fedora core 2. I have a directory : /usr/share/doc/dovecot-0.99.10.5 but it have no dovecot-mysql.conf in it.
It looks to me as though the Fedora dovecot is not built with any form of database support. I would definitely doubt it would have mysql support compiled in since that adds mysql client libraries as a package dependency which Red Hat try to avoid. [Its a little more surprising that postgresql is also not linked in]
You will need to rebuild dovecot.
Nigel.
-- [ Nigel Metheringham Nigel.Metheringham@InTechnology.co.uk ] [ - Comments in this message are my own and not ITO opinion/policy - ]
On Sat, 01 Jan 2005 17:06:36 +0000, Nigel Metheringham Nigel.Metheringham@dev.intechnology.co.uk wrote:
On Wed, 2004-12-29 at 20:27 +0200, Roi Efrati wrote:
It came pre build with Fedora core 2. I have a directory : /usr/share/doc/dovecot-0.99.10.5 but it have no dovecot-mysql.conf in it.
It looks to me as though the Fedora dovecot is not built with any form of database support. I would definitely doubt it would have mysql support compiled in since that adds mysql client libraries as a package dependency which Red Hat try to avoid. [Its a little more surprising that postgresql is also not linked in]
You will need to rebuild dovecot.
Nigel.
-- [ Nigel Metheringham Nigel.Metheringham@InTechnology.co.uk ] [ - Comments in this message are my own and not ITO opinion/policy - ]
At the moment I'v kinda trashed Fedora while trying to make Postfix work with Postfix. Today I finished to Download Fedora FC 3, And next thing tomorow it's going to be installed. First with th eold configuration, At last I know it.. Then I'll start working on the final.
On Sat, Jan 01, 2005 at 05:06:36PM +0000, Nigel Metheringham wrote:
On Wed, 2004-12-29 at 20:27 +0200, Roi Efrati wrote:
It came pre build with Fedora core 2. I have a directory : /usr/share/doc/dovecot-0.99.10.5 but it have no dovecot-mysql.conf in it.
It looks to me as though the Fedora dovecot is not built with any form of database support. I would definitely doubt it would have mysql support compiled in since that adds mysql client libraries as a package dependency which Red Hat try to avoid. [Its a little more surprising that postgresql is also not linked in]
It has changed since Core 2. The {S}RPMS supplied with Fedora Core 3 include both PostgreSQL and MySQL support.
You will need to rebuild dovecot.
And when you do, you may want to start from the FC3 SRPM.
-- Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/ Ringo MUG Tokyo http://www.ringo.net/rss.html
participants (4)
-
Jim Tittsler
-
Nigel Metheringham
-
Roi Efrati
-
Timo Sirainen