From: Stephan Bosch Date: Sat, 26 May 2018 11:12:26 +0000 (+0200) Subject: lda: Allow -f sender to omit domain. X-Git-Tag: 2.3.9~1781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccd65c0bce950f2d3f91f56f51f44f85a4fddbc2;p=thirdparty%2Fdovecot%2Fcore.git lda: Allow -f sender to omit domain. Several people complained about the original enforcement of the presence of a domain (added for v2.3.0) to be too restrictive. Apparently, this legitimately happens with bounce messages on certain platforms. --- diff --git a/src/lda/main.c b/src/lda/main.c index 1d7c8473d2..869271f4fa 100644 --- a/src/lda/main.c +++ b/src/lda/main.c @@ -333,6 +333,7 @@ int main(int argc, char *argv[]) /* envelope sender address */ if (smtp_address_parse_path(ctx.pool, optarg, SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL | + SMTP_ADDRESS_PARSE_FLAG_ALLOW_LOCALPART | SMTP_ADDRESS_PARSE_FLAG_ALLOW_EMPTY, &mail_from, &errstr) < 0) { i_fatal_status(EX_USAGE,