Cleanup: sample-filter.cf is gone. Better documentation is
available with "man header_checks".
+20040209
+
+ Bugfix: when delivery to smtpd_proxy_filter fails, report
+ "451 Queue file write error" instead of repeating the
+ previous "354 End data with <CR><LF>.<CR><LF>" response.
+ File: smtpd/smtpd.c.
+
Open problems:
Low: log xdelay (esp. for SMTP and delivery to command).
# IGNORE Delete the current line from the input and inspect
# the next input line.
#
-# PREPEND text...
-# Prepend one line with the specified text and
-# inspect the next input line. The prepended line of
-# text is output before the input line that triggered
-# the PREPEND pattern.
-#
-# Note: this action cannot be used to prepend multi-
-# line text.
-#
# REDIRECT user@domain
# Write a message redirection request to the queue
# file and inspect the next input line. After the
<b>IGNORE</b> Delete the current line from the input and inspect
the next input line.
- <b>PREPEND</b> <i>text...</i>
- Prepend one line with the specified text and
- inspect the next input line. The prepended line of
- text is output before the input line that triggered
- the <b>PREPEND</b> pattern.
-
- Note: this action cannot be used to prepend multi-
- line text.
-
<b>REDIRECT</b> <i>user@domain</i>
Write a message redirection request to the queue
file and inspect the next input line. After the
.IP \fBIGNORE\fR
Delete the current line from the input and inspect
the next input line.
-.IP "\fBPREPEND \fItext...\fR"
-Prepend one line with the specified text and inspect the next
-input line. The prepended line of text is output before the
-input line that triggered the \fBPREPEND\fR pattern.
-.sp
-Note: this action cannot be used to prepend multi-line text.
.IP "\fBREDIRECT \fIuser@domain\fR"
Write a message redirection request to the queue file and
inspect the next input line. After the message is queued,
# .IP \fBIGNORE\fR
# Delete the current line from the input and inspect
# the next input line.
-# .IP "\fBPREPEND \fItext...\fR"
-# Prepend one line with the specified text and inspect the next
-# input line. The prepended line of text is output before the
-# input line that triggered the \fBPREPEND\fR pattern.
-# .sp
-# Note: this action cannot be used to prepend multi-line text.
# .IP "\fBREDIRECT \fIuser@domain\fR"
# Write a message redirection request to the queue file and
# inspect the next input line. After the message is queued,
* Patches change the patchlevel and the release date. Snapshots change the
* release date only, unless they include the same bugfix as a patch release.
*/
-#define MAIL_RELEASE_DATE "20040205"
+#define MAIL_RELEASE_DATE "20040209"
#define MAIL_VERSION_NUMBER "2.0.18"
#define VAR_MAIL_VERSION "mail_version"
/*
* Send the end of DATA and finish the proxy connection. Set the
* CLEANUP_STAT_PROXY error flag in case of trouble.
+ *
+ * XXX The low-level proxy output routines should set "state" error
+ * attributes. This requires making "state" a context attribute of the
+ * VSTREAM.
*/
if (state->proxy) {
if (state->err == CLEANUP_STAT_OK) {
if (state->err == CLEANUP_STAT_OK &&
*STR(state->proxy_buffer) != '2')
state->err = CLEANUP_STAT_CONT;
+ } else {
+ state->error_mask |= MAIL_ERROR_SOFTWARE;
+ state->err |= CLEANUP_STAT_PROXY;
+ vstring_sprintf(state->proxy_buffer,
+ "451 Error: queue file write error");
}
smtpd_proxy_close(state);
}