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.2.rc1~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c130ab7a67ca940f4cbf4786b4dc9804a09a7e11;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 67bd3de600..1477084fc9 100644 --- a/src/lda/main.c +++ b/src/lda/main.c @@ -331,6 +331,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,