[Dovecot] LDA/LMTP - saving to INBOX fallback on tempfail?
Currently if saving to mailbox fails for any reason, the mail is saved to INBOX instead. Same if a Sieve redirect fails, the mail is saved to INBOX. I'm wondering if anyone actually prefers this behavior when the error is temporary? For example if some index file corruption was detected, the save will most likely succeed the next time it's attempted. Or if the redirect fails because the SMTP server can't be connected to at the moment. So I was thinking about changing v2.2 LDA/LMTP to simply return temporary failure instead of saving the mail to INBOX.
I think I like the temporary failure idea. BUT, please make sure to log all pertinent information to maillog so the admin/user can fix it if it's not something that is automatically fixed.
I.E. permissions, etc.
Thanks! Love dovecot btw. works great in my setup (FreeBSD/ZFS/mbox/LDA/Exim).
On Fri, May 31, 2013 at 8:41 AM, Timo Sirainen tss@iki.fi wrote:
Currently if saving to mailbox fails for any reason, the mail is saved to INBOX instead. Same if a Sieve redirect fails, the mail is saved to INBOX. I'm wondering if anyone actually prefers this behavior when the error is temporary? For example if some index file corruption was detected, the save will most likely succeed the next time it's attempted. Or if the redirect fails because the SMTP server can't be connected to at the moment. So I was thinking about changing v2.2 LDA/LMTP to simply return temporary failure instead of saving the mail to INBOX.
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
On 31.5.2013, at 16.44, Larry Rosenman larryrtx@gmail.com wrote:
I think I like the temporary failure idea. BUT, please make sure to log all pertinent information to maillog so the admin/user can fix it if it's not something that is automatically fixed.
Sure, error logging would work as it does now.
I.E. permissions, etc.
Permission error isn't actually a temporary failure. In that situation the mail would be delivered to INBOX. A temporary error is only something that really should fix itself by waiting/retrying, without the user or sysadmin having to do anything specific to that user.
Thanks! Love dovecot btw. works great in my setup (FreeBSD/ZFS/mbox/LDA/Exim).
On Fri, May 31, 2013 at 8:41 AM, Timo Sirainen tss@iki.fi wrote:
Currently if saving to mailbox fails for any reason, the mail is saved to INBOX instead. Same if a Sieve redirect fails, the mail is saved to INBOX. I'm wondering if anyone actually prefers this behavior when the error is temporary? For example if some index file corruption was detected, the save will most likely succeed the next time it's attempted. Or if the redirect fails because the SMTP server can't be connected to at the moment. So I was thinking about changing v2.2 LDA/LMTP to simply return temporary failure instead of saving the mail to INBOX.
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
Ok. Wasn't sure. I've seen my filter rules screw up, and not have a mailbox, or bad perms on the mailbox, and those went to INBOX, and if that continued to happen, I'm fine with that too.
Thanks!
On 5/31/13, Timo Sirainen tss@iki.fi wrote:
On 31.5.2013, at 16.44, Larry Rosenman larryrtx@gmail.com wrote:
I think I like the temporary failure idea. BUT, please make sure to log all pertinent information to maillog so the admin/user can fix it if it's not something that is automatically fixed.
Sure, error logging would work as it does now.
I.E. permissions, etc.
Permission error isn't actually a temporary failure. In that situation the mail would be delivered to INBOX. A temporary error is only something that really should fix itself by waiting/retrying, without the user or sysadmin having to do anything specific to that user.
Thanks! Love dovecot btw. works great in my setup (FreeBSD/ZFS/mbox/LDA/Exim).
On Fri, May 31, 2013 at 8:41 AM, Timo Sirainen tss@iki.fi wrote:
Currently if saving to mailbox fails for any reason, the mail is saved to INBOX instead. Same if a Sieve redirect fails, the mail is saved to INBOX. I'm wondering if anyone actually prefers this behavior when the error is temporary? For example if some index file corruption was detected, the save will most likely succeed the next time it's attempted. Or if the redirect fails because the SMTP server can't be connected to at the moment. So I was thinking about changing v2.2 LDA/LMTP to simply return temporary failure instead of saving the mail to INBOX.
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx@gmail.com US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
On 31/05/2013 16:41, Timo Sirainen wrote:
Currently if saving to mailbox fails for any reason, the mail is saved to INBOX instead. Same if a Sieve redirect fails, the mail is saved to INBOX. I'm wondering if anyone actually prefers this behavior when the error is temporary? For example if some index file corruption was detected, the save will most likely succeed the next time it's attempted. Or if the redirect fails because the SMTP server can't be connected to at the moment. So I was thinking about changing v2.2 LDA/LMTP to simply return temporary failure instead of saving the mail to INBOX.
What about configurable save_to_inbox_if_tmperror = yes / no ?
On 31.5.2013, at 16.52, Birta Levente blevi.linux@gmail.com wrote:
On 31/05/2013 16:41, Timo Sirainen wrote:
Currently if saving to mailbox fails for any reason, the mail is saved to INBOX instead. Same if a Sieve redirect fails, the mail is saved to INBOX. I'm wondering if anyone actually prefers this behavior when the error is temporary? For example if some index file corruption was detected, the save will most likely succeed the next time it's attempted. Or if the redirect fails because the SMTP server can't be connected to at the moment. So I was thinking about changing v2.2 LDA/LMTP to simply return temporary failure instead of saving the mail to INBOX.
What about configurable save_to_inbox_if_tmperror = yes / no ?
I'll add that if someone can tell me a good reason why they would ever want to set it to "yes". I try to avoid adding settings that nobody uses.
participants (3)
-
Birta Levente
-
Larry Rosenman
-
Timo Sirainen