Displaying 5 results from an estimated 5 matches for "mail_error_nospac".
Did you mean:
mail_error_nospace
2008 Apr 30
2
deliver: handling of quota_full_tempfail and -e
...).
However, I shied away from creating a patch because either there is a
mismatch between the documentation and deliver's actual behavior, or I
misunderstood the code (likely, since I'm not really a C programmer).
The lines in question (in src/deliver/deliver.c) read:
| 1003 if (error != MAIL_ERROR_NOSPACE ||
| 1004 getenv("QUOTA_FULL_TEMPFAIL") != NULL) {
Does this mean that the corresponding block gets executed whenever
quota_full_tempfail is set? If so, setting it transforms all errors into
TEMPFAILs, and not only those relating to quota/space issues. I think
dovecot-example.conf...
2012 May 29
4
per-mailbox message limits
...ailbox_set_deleted(box);
return -1;
}
if (!(*ctx)->copying_via_save)
(*ctx)->saving = TRUE;
- if (box->v.save_begin == NULL) {
+ mailbox_get_status(box, STATUS_MESSAGES, &status);
+ if (status.messages >= MAX_MSGS_PER_MAILBOX) {
+ mail_storage_set_error(box->storage, MAIL_ERROR_NOSPACE,
+ "Mailbox full: Too many messages");
+ ret = -1;
+ } else if (box->v.save_begin == NULL) {
mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
"Saving messages not supported");
ret = -1;
} else {
ret = box->v.save_begin(*ctx, inpu...
2014 Jun 26
1
Bug in quota_get_status
Hi,
the configuration option
lmtp_rcpt_check_quota = yes
didn't work, so I traced down the problem:
quota_get_status (quota_storage.c:89) calls quota_test_alloc
(quota.c:1352) with size = 0 bytes, which leads always to a FALSE result
in quota_is_over (quota.c:1305).
I've fixed the function quota_is_over by considering ctx->bytes_over and
ctx->count_over. See the included
2014 Jul 22
1
Defer email via LMTP when there is 'no space left on device' instead of rejecting it
...onst struct mail_recipient *rcpt,
struct mail *src_mail, struct mail_deliver_session *session)"
"lmtp/commands.c" correctly:
--- cut ---
[...]
else if (storage != NULL) {
error = mail_storage_get_last_error(storage, &mail_error);
if (mail_error == MAIL_ERROR_NOSPACE) {
client_send_line(client, "%s <%s> %s",
dctx.set->quota_full_tempfail ?
"452 4.2.2" : "552 5.2.2",
rcpt->ad...
2007 May 09
3
PATCH: sendmail-like DSNs in Dovecot deliver (EX_TEMPFAIL always)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I've put together an always tempfail & sendmail-like DSN report back
patch.
Because I don't know how to transform the rejection reason into sysexit.h
codes, it always tempfails.
The hooks are so that:
a) config file setting:
lda_mode = mode
b) command line:
deliver --mode mode
where mode is default or sendmail.
When no