Re: [Dovecot] Auto Create Folders
To make sure users have certain folders.
-- Chris L. Franklin --
On Sat, Mar 19, 2005 at 12:34:53PM -0500, Chris L. Franklin wrote:
To make sure users have certain folders.
Dovecot doesn't create the mailbox; your local delivery agent may. (Postfix's virtual LDA does). That would be the place to hook in and auto-create mailboxes.
-Ben
-- Ben Beuchler There is no spoon. insyte@emt-p.org -- The Matrix
"Dovecot doesn't create the mailbox; your local delivery agent may."
True and False, My MTA creates my inbox but anything else (meaning subfolders) would be upto the imap server to do so. A MTA's job is to deliver mail to the inbox or hand it off the another "app" to have it dealt with and delivered (or not).
"That would be the place to hook in and auto-create mailboxes."
Again True and False, If I wanted to be 100% sure a user had a certain mailbox (we'll say a spam folder). Then your half right. I would want my MTA to make sure every time a piece of mail came in for that user that it made sure. that user had a "spam" folder. But that wouldn't help though if a user deleted he mail box then logged out and back in and hadn't gotten a new email. So again to be 100% Safe I'd need to
A: Have the MTA check and create the folder if needed (aka that's where this email was going to be delivered to).
B: Have my imap server check and create the folder on Auth / login.
-- Chris L. Franklin --
----- Original Message ----- From: "Ben Beuchler" <insyte@emt-p.org> To: "Chris L. Franklin" <cfranklin@nomadcf.com> Cc: <dovecot@dovecot.org> Sent: Saturday, March 19, 2005 5:23 PM Subject: Re: [Dovecot] Auto Create Folders
On Sat, Mar 19, 2005 at 12:34:53PM -0500, Chris L. Franklin wrote:
To make sure users have certain folders.
Dovecot doesn't create the mailbox; your local delivery agent may. (Postfix's virtual LDA does). That would be the place to hook in and auto-create mailboxes.
-Ben
-- Ben Beuchler There is no spoon. insyte@emt-p.org -- The Matrix
On 2005-03-21 09:30:30 -0500, Chris L. Franklin wrote:
"Dovecot doesn't create the mailbox; your local delivery agent may."
True and False, My MTA creates my inbox but anything else (meaning subfolders) would be upto the imap server to do so. A MTA's job is to deliver mail to the inbox or hand it off the another "app" to have it dealt with and delivered (or not).
"That would be the place to hook in and auto-create mailboxes."
Again True and False, If I wanted to be 100% sure a user had a certain mailbox (we'll say a spam folder). Then your half right. I would want my MTA to make sure every time a piece of mail came in for that user that it made sure. that user had a "spam" folder. But that wouldn't help though if a user deleted he mail box then logged out and back in and hadn't gotten a new email. So again to be 100% Safe I'd need to
A: Have the MTA check and create the folder if needed (aka that's where this email was going to be delivered to).
B: Have my imap server check and create the folder on Auth / login.
the problem might be: what would your mta do if:
- the user never logged in via imap
- therefor no folders were created by dovecot
- it has to deliver a spam message to the spam folder.
so you have to ensure the folder existance at the user creation level imho. thats the logical point to do exactly that. checking for folder existance everytime a user might access a service is stupid. it costs at least a stat() call per directory.
just my 2 cents
darix
-- irssi - the client of the smart and beautiful people
http://www.irssi.de/
On Mon, Mar 21, 2005 at 09:30:30AM -0500, Chris L. Franklin wrote:
"Dovecot doesn't create the mailbox; your local delivery agent may."
True and False, My MTA creates my inbox but anything else (meaning subfolders) would be upto the imap server to do so. A MTA's job is to deliver mail to the inbox or hand it off the another "app" to have it dealt with and delivered (or not).
Pedantically speaking, an MTA's job is to talk to other MTAs.
It's the job of an MDA (aka LDA) to do the delivery.
A given piece of software might act as an MTA and an MDA at times, but they are different pieces of the email system's architecture.
mm
participants (4)
-
Ben Beuchler
-
Chris L. Franklin
-
Marcus Rueckert
-
Mark E. Mallett