[Dovecot] dovecot howto?
Hi,
is there a *simple* HOWTO that explains a simple postfix+dovecot setup? Up to now, I used postfix+cyrus, worked fine. But I do not get postfix+dovecot to work. Currently, all emails go to /dev/null.
What really would help me is a dovecot lmtp server. Is there any?
Regards Olaf
postfix main.cf:
# -- delivery options # local_recipient_maps = virtual_alias_maps = btree:/etc/postfix/virtual alias_maps = btree:/etc/postfix/aliases alias_database = btree:/etc/postfix/aliases # mailbox_command = /usr/lib/dovecot/deliver mailbox_transport = dovecot
postfix master.cf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
dovecot.conf:
mail_location = maildir:/home/vmail/%u namespace private { separator = '/' inbox = yes }
auth default { mechanisms = cram-md5 plain verbose = yes passdb passwd-file { args = /etc/dovecot/passwd } userdb static { args = uid=vmail gid=vmail home=/home/vmail/%u } socket listen { client { # Assuming the default Postfix $queue_directory setting path = /var/spool/postfix/private/auth mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } } }
On 12/10/2008, Olaf Zaplinski (oz@tuxfriends.net) wrote:
is there a *simple* HOWTO that explains a simple postfix+dovecot setup? Up to now, I used postfix+cyrus, worked fine. But I do not get postfix+dovecot to work. Currently, all emails go to /dev/null.
Dovecot is much simpler than cyrus, so if you can do cyrus, you should be able to handle dovecot...
But, it will help if you will follow the troubleshooting instructions:
http://wiki.dovecot.org/#head-8d40952a271a60d8d053be1068b515278c438c07
What really would help me is a dovecot lmtp server. Is there any?
Doevecot's LDA doesn't currently support lmtp...
--
Best regards,
Charles Marcus I.T. Director Media Brokers International 678.514.6200 x224 678.514.6299 fax
Olaf Zaplinski wrote:
Hi,
is there a *simple* HOWTO that explains a simple postfix+dovecot setup? Up to now, I used postfix+cyrus, worked fine. But I do not get postfix+dovecot to work. Currently, all emails go to /dev/null.
What really would help me is a dovecot lmtp server. Is there any?
Regards Olaf
postfix main.cf:
# -- delivery options # local_recipient_maps = virtual_alias_maps = btree:/etc/postfix/virtual alias_maps = btree:/etc/postfix/aliases alias_database = btree:/etc/postfix/aliases # mailbox_command = /usr/lib/dovecot/deliver mailbox_transport = dovecot
postfix master.cf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
dovecot.conf:
mail_location = maildir:/home/vmail/%u namespace private { separator = '/' inbox = yes }
auth default { mechanisms = cram-md5 plain verbose = yes passdb passwd-file { args = /etc/dovecot/passwd } userdb static { args = uid=vmail gid=vmail home=/home/vmail/%u } socket listen { client { # Assuming the default Postfix $queue_directory setting path = /var/spool/postfix/private/auth mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } } }
Olaf,
I'm quite new to both postfix and dovecot. This probably does not qualify as "simple" but I found this link helpful:
http://workaround.org/articles/ispmail-etch/
Another useful one:
http://www200.pair.com/mecham/spam/spamfilter20061118.html
Regards,
Andy
Those 2 links are too much.
Go here: http://wiki.dovecot.org/HowTo
And here: http://www.linuxmail.info/ <--- Dovecot + postfix
That's all you need.
On 12/10/08 11:49 AM, "Andy Howell" AndyHowell@austin.rr.com wrote:
Olaf Zaplinski wrote:
Hi,
is there a *simple* HOWTO that explains a simple postfix+dovecot setup? Up to now, I used postfix+cyrus, worked fine. But I do not get postfix+dovecot to work. Currently, all emails go to /dev/null.
What really would help me is a dovecot lmtp server. Is there any?
Regards Olaf
postfix main.cf:
# -- delivery options # local_recipient_maps = virtual_alias_maps = btree:/etc/postfix/virtual alias_maps = btree:/etc/postfix/aliases alias_database = btree:/etc/postfix/aliases # mailbox_command = /usr/lib/dovecot/deliver mailbox_transport = dovecot
postfix master.cf:
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
dovecot.conf:
mail_location = maildir:/home/vmail/%u namespace private { separator = '/' inbox = yes }
auth default { mechanisms = cram-md5 plain verbose = yes passdb passwd-file { args = /etc/dovecot/passwd } userdb static { args = uid=vmail gid=vmail home=/home/vmail/%u } socket listen { client { # Assuming the default Postfix $queue_directory setting path = /var/spool/postfix/private/auth mode = 0660 # Assuming the default Postfix user and group user = postfix group = postfix } } }
Olaf,
I'm quite new to both postfix and dovecot. This probably does not qualify as "simple" but I found this link helpful:
http://workaround.org/articles/ispmail-etch/
Another useful one:
http://www200.pair.com/mecham/spam/spamfilter20061118.html
Regards,
Andy
On Wed, Dec 10, 2008 at 06:08:31PM +0100, Olaf Zaplinski wrote:
I have maildrop between dovecot and postfix but doesn't matter:
postfix main.cf:
# -- delivery options # local_recipient_maps =
So not use users from /etc/passwd and
virtual_mailbox_domains = <list of my domains or database with it> mydestination =
virtual_alias_maps = btree:/etc/postfix/virtual alias_maps = btree:/etc/postfix/aliases alias_database = btree:/etc/postfix/aliases
I think last two lines not for virtual, but for system users, so use virtual_alias_maps instead
# mailbox_command = /usr/lib/dovecot/deliver mailbox_transport = dovecot
virtual_transport = dovecot
As far as I understand postfix also need to know users/mailboxes. So there must be: virtual_mailbox_maps = type:database
with database key equal to mailbox name and value with something (virtual from postfix distribution wants path to mailbox/maildir). mailbox name is user@domain.
WBR Dmitri Ivanov
participants (5)
-
Andy Howell
-
Charles Marcus
-
Dmitri V. Ivanov
-
Olaf Zaplinski
-
Romer Ventura