Re: [Dovecot] support for UW-style mbox
UW-IMAP will automatically append the contents of /var/spool/mail/user to ~user/mbox (and then clear /var/spool/mail/user) if ~user/mbox exists. I'd like to mimic that action with Dovecot. (I'm probably going to be unlucky, as an earlier respondent pointed out).
Sorry to show my ignorance, but I thought delivery was a function of the MTA (Exim in my case), which would require a change to my exim config file, and would probably not then be a per-user thing. (i.e. with UW-IMAP, if ~user/mbox doesnt exist, mail gets left in /var/spool/mail/user). I need to read about dovecot.conf
No, you are correct. Delivery is handled by the MTA. Dovecot just needs to know where to access it. By default, for example, with Sendmail, it will place the email in /var/spool/mail (unless you change some back-end code somewhere along the line), and then you can use procmail (with a global procmailrc file in /etc) to place the mail where you want it to go..
I haven't used UW-IMAP in a while now (well over a year and a half). I stopped using it at all of my supported sites because, even though it was simple to manage, it was just way too slow. From what I remember, the UW implementation is such that UW-IMAP will read from the user's mbox file if it exists, and if it doesn't, it will read from <spooldir>/<username> (in this case, /var/spool/mail/user). UW-IMAP (or any IMAP) wouldn't actually do the delivery, so writing to the spool directory temporarily and then moving it to the home directory shouldn't actually happen. However, I don't truly remember how it worked under the hood, but that just doesn't seem right to me (too much chance for conflict). I do remember (back in the day) the headaches we would get when trying to debug a "lost mail" problems (with a centralized /var/spool/mail directory) and it turned out the user in question had created an mbox file which had next to nothing in it. :)
-Rich
--On Monday, September 25, 2006 3:46 PM -0400 Rich West <Rich.West@wesmo.com> wrote:
By default, for example, with Sendmail, it will place the email in /var/spool/mail (unless you change some back-end code somewhere along the line), and then you can use procmail (with a global procmailrc file in /etc) to place the mail where you want it to go..
I believe sendmail does no file delivery. It uses the configured local mailer to deliver to local users, and it's up to the local mailer's configuration to decide where to send the message. (On Red Hat derived systems, such as Fedora, procmail is configured as the default local mailer. See sendmail.mc.)
Yes, you are correct. I'm not sure what I was thinking when I phrased it that way. :) Linux derivatives use procmail as the default MDA, while other platforms use different MDA's to do the final delivery. Sendmail acts as an MTA (Mail Transport Agent) and does not directly touch the end user's mailboxes.
To clarify the answer to the original question, the MDA and MTA are *very* closely related as they work hand-in-hand. The MDA, not dovecot, is the one that does the final delivery of email to the user's mailbox.
-Rich
I believe sendmail does no file delivery. It uses the configured local mailer to deliver to local users, and it's up to the local mailer's configuration to decide where to send the message. (On Red Hat derived systems, such as Fedora, procmail is configured as the default local mailer. See sendmail.mc.)
participants (2)
-
Kenneth Porter
-
Rich West