diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-01-13 12:47:30 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-01-13 14:25:54 +0200 |
commit | f3a6014780f99091b197f32afeb7f0ec7ca361ce (patch) | |
tree | a5e454017db09efa8625b711c7a24d343c58a58c /testsuite | |
parent | 7875612f049fa2fa39e3c7bbf2d82c2908052d77 (diff) | |
download | anubis-f3a6014780f99091b197f32afeb7f0ec7ca361ce.tar.gz anubis-f3a6014780f99091b197f32afeb7f0ec7ca361ce.tar.bz2 |
Delayed ESMTP authentication: initial implementation.
Anubis can be instructed to postpone ESMTP authentication until MAIL
command is issued by the client. This allows for changing authentication
credentials in the SMTP section, depending on the envelope information
supplied by the client.
* src/headers.h (T_ESMTP_AUTH_DELAYED): New flag.
(rcfile_call_section): Change signature.
* src/mda.c: Update calls to rcfile_call_section.
* src/rc-gram.y (rc_run_section): Take additional argument
specifying the class of the section to run.
(rc_call_section): Remove. All callers changed to use rc_call_section
instead.
(rc_run_section_list): Remove unused function.
* src/rcfile.c (parse_esmtp_kv): New static.
(control_parser): Call parse_esmtp_kv as a part of the
default handling.
(control_kw): New keyword esmtp-auth-delayed.
(smtp_rule_parser,smtp_rule_section_init): New functions.
(rc_system_init): Call smtp_rule_section_init.
(rcfile_call_section): Take additional argument
specifying the class of the section to run.
* src/rcfile.h (rc_run_section): Change signature.
(rc_call_section): Remove.
* src/smtprepl.c (smtp_reply_free): Do nothing if argument is
NULL.
* src/tunnel.c (ehlo_reply): New static.
(handle_ehlo): Save reply in ehlo_reply.
Don't attempt authentication if T_ESMTP_AUTH_DELAYED is set...
(transfer_command): ... do it here instead.
* configure.ac: Version 4.1.92
* NEWS: Update.
* doc/anubis.texi: Document esmtp-auth-delayed and the
use of esmtp-* statements in SMTP sections.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/etc/add-body-file.pat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/etc/add-body-file.pat b/testsuite/etc/add-body-file.pat index b8d1318..5424ef6 100644 --- a/testsuite/etc/add-body-file.pat +++ b/testsuite/etc/add-body-file.pat @@ -22,7 +22,7 @@ :RETCODE 0 :PATTERN :EXPECT 220 -HELO localhost +HELO localhost :EXPECT 250 MAIL FROM:<polak@gnu.org> :EXPECT 250 |