Re: Why use lda or lmtp at all?
And thank you Martin for asking. I had the same ideas and questions as you. I don't use any incoming filtering with Dovecot and my mailboxes only have around 10k messages, so I just have OpenSMTPD setup as the MDA. Previously, I was using Postfix+Dovecot for years. I configured Postfix to pass mail to Dovecot. So when I recently converted Postfix to OpenSMTPD, I decided to put OpenSMTPD in charge. I did some testing both ways and found no difference in function or performance, so I revoked Dovecot's MDA rights so to speak. But I can understand Bryan's points below. Martin Braun wrote, On 04/16/14 20:51: I have now (finally) a successful setup in which opensmtpd delivers mail to dovecot-lda and dovecot handles imap, but I tried to have opensmtpd deliver the mail directly into the maildir, and NOT to dovecot, and just have dovecot serve IMAP. Keeping them separated and using OpenSMTPDs own MDA seems much nicer. So OpenSMTPD can focus on its job and Dovecot only has to serve IMAP. If - for some reason - Dovecot should crash, OpenSMTPD can still deliver email. One guy on this list wrote: It's better to either deliver via LMTP to dovecot or via dovecot's delivery binary because this will keep the indexes intact that dovecot needs to work efficiently. But I have testet Dovecots index and cache and both are kept intact and updated even when Dovecot doesn't handle the mail delivery. Each time a user checks his maildir via IMAP Dovecot scannes the directory and updates the index. So, currently I cannot see any reason as to why OpenSMTPD should deliver mail directly to Dovecot. Am I missing something? Kind regards. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Why use lda or lmtp at all?
While you don't need to use LDA/LMTP if you read the documentation about Dovecot and the IMAP index you'll find that your dovecot instance will use more resources if you don't run it through the Dovecot delivery agent since it will have to update the index at a later time where if it comes through the delivery agent it updates it as it comes in. That said again its not vital it just depends on how busy your instance is. If you have a several thousand user instance it may be better for you if you use the delivery agent, BUT if its just one or two you may not notice the difference. On Sat, Jun 7, 2014 at 1:25 AM, Clint Pachl pa...@ecentryx.com wrote: And thank you Martin for asking. I had the same ideas and questions as you. I don't use any incoming filtering with Dovecot and my mailboxes only have around 10k messages, so I just have OpenSMTPD setup as the MDA. Previously, I was using Postfix+Dovecot for years. I configured Postfix to pass mail to Dovecot. So when I recently converted Postfix to OpenSMTPD, I decided to put OpenSMTPD in charge. I did some testing both ways and found no difference in function or performance, so I revoked Dovecot's MDA rights so to speak. But I can understand Bryan's points below. Martin Braun wrote, On 04/16/14 20:51: I have now (finally) a successful setup in which opensmtpd delivers mail to dovecot-lda and dovecot handles imap, but I tried to have opensmtpd deliver the mail directly into the maildir, and NOT to dovecot, and just have dovecot serve IMAP. Keeping them separated and using OpenSMTPDs own MDA seems much nicer. So OpenSMTPD can focus on its job and Dovecot only has to serve IMAP. If - for some reason - Dovecot should crash, OpenSMTPD can still deliver email. One guy on this list wrote: It's better to either deliver via LMTP to dovecot or via dovecot's delivery binary because this will keep the indexes intact that dovecot needs to work efficiently. But I have testet Dovecots index and cache and both are kept intact and updated even when Dovecot doesn't handle the mail delivery. Each time a user checks his maildir via IMAP Dovecot scannes the directory and updates the index. So, currently I cannot see any reason as to why OpenSMTPD should deliver mail directly to Dovecot. Am I missing something? Kind regards. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org -- Jason Barbier | jab...@serversave.us Pro Patria Vigilans
Re: Why use lda or lmtp at all?
Hello Martin, Could you share your configuration in OpenSMTPD and Dovecot in a pastbin? Dovecot it's like a monster for me sometimes with all this files etc... I have to build a new dovecot and your configuration could be useful for me. Thanks Cordialement Olivier Calzi 2014-04-17 7:23 GMT+02:00 Martin Braun yellowgoldm...@gmail.com: Thank you very much for explaining this! :) 2014-04-17 6:48 GMT+02:00 Bryan Vyhmeister br...@bsdjournal.net: The advantage in dovecot delivering the mail directly is that the indexes are updated at delivery rather than later scanned when the user checks their mail. Also, sieve scripts work great with dovecot-lda which is how I filter the many lists I am subscribed to. Another advantage, and one I use, is the ability to use other mailbox formats like sdbox or mdbox (what I'm using) which allows for more efficient folder structures and less moving around of messages. With mdbox the index indicates what is happening with the message and the on-disk message storage remains essentially unchanged. The doveadm command does allow you to convert between formats as well if need be. I use it to export an mbox of spam to use for training spam filters. In my case, I have a little over five million messages (and growing) stored in mdbox format and that seems to be the fastest format for my use case. The mbox format would be an absolute nightmare and Maildir isn't as good as mdbox. That's just for my mailboxes. My other users also have tens of thousands up to hundreds of thousands of messages and they also have no issues with that setup. Updating a mailbox with 200,000+ messages is very quick with dovecot indexes. If, each time I accessed the mailbox, the indexes were updated, I would have a major spike in CPU use every time I checked my mail where now, since the indexes are already up to date, there is no spike at all. Those are my reasons for using dovecot-lda rather than some other mail server to do the deliveries. The combination of OpenSMTPD and dovecot running on OpenBSD is superb. This all works perfectly on a simple server I built with a Pentium G640, 8GB of memory, and dual 2.5-inch WD Black drives in a softraid(4) mirror. Bryan -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Why use lda or lmtp at all?
On 2014-04-17 Thu 05:51 AM |, Martin Braun wrote: I have now (finally) a successful setup in which opensmtpd delivers mail to dovecot-lda and dovecot handles imap, but I tried to have opensmtpd deliver the mail directly into the maildir, and NOT to dovecot, and just have dovecot serve IMAP. Am I missing something? http://wiki2.dovecot.org/Pigeonhole/Sieve which filters incoming messages -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Why use lda or lmtp at all?
I have now (finally) a successful setup in which opensmtpd delivers mail to dovecot-lda and dovecot handles imap, but I tried to have opensmtpd deliver the mail directly into the maildir, and NOT to dovecot, and just have dovecot serve IMAP. Keeping them separated and using OpenSMTPDs own MDA seems much nicer. So OpenSMTPD can focus on its job and Dovecot only has to serve IMAP. If - for some reason - Dovecot should crash, OpenSMTPD can still deliver email. One guy on this list wrote: It's better to either deliver via LMTP to dovecot or via dovecot's delivery binary because this will keep the indexes intact that dovecot needs to work efficiently. But I have testet Dovecots index and cache and both are kept intact and updated even when Dovecot doesn't handle the mail delivery. Each time a user checks his maildir via IMAP Dovecot scannes the directory and updates the index. So, currently I cannot see any reason as to why OpenSMTPD should deliver mail directly to Dovecot. Am I missing something? Kind regards. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Re: Why use lda or lmtp at all?
Thank you very much for explaining this! :) 2014-04-17 6:48 GMT+02:00 Bryan Vyhmeister br...@bsdjournal.net: The advantage in dovecot delivering the mail directly is that the indexes are updated at delivery rather than later scanned when the user checks their mail. Also, sieve scripts work great with dovecot-lda which is how I filter the many lists I am subscribed to. Another advantage, and one I use, is the ability to use other mailbox formats like sdbox or mdbox (what I'm using) which allows for more efficient folder structures and less moving around of messages. With mdbox the index indicates what is happening with the message and the on-disk message storage remains essentially unchanged. The doveadm command does allow you to convert between formats as well if need be. I use it to export an mbox of spam to use for training spam filters. In my case, I have a little over five million messages (and growing) stored in mdbox format and that seems to be the fastest format for my use case. The mbox format would be an absolute nightmare and Maildir isn't as good as mdbox. That's just for my mailboxes. My other users also have tens of thousands up to hundreds of thousands of messages and they also have no issues with that setup. Updating a mailbox with 200,000+ messages is very quick with dovecot indexes. If, each time I accessed the mailbox, the indexes were updated, I would have a major spike in CPU use every time I checked my mail where now, since the indexes are already up to date, there is no spike at all. Those are my reasons for using dovecot-lda rather than some other mail server to do the deliveries. The combination of OpenSMTPD and dovecot running on OpenBSD is superb. This all works perfectly on a simple server I built with a Pentium G640, 8GB of memory, and dual 2.5-inch WD Black drives in a softraid(4) mirror. Bryan -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org