]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lda: Allow -f sender to omit domain.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 26 May 2018 11:12:26 +0000 (13:12 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 26 May 2018 11:12:26 +0000 (13:12 +0200)
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.

src/lda/main.c

index 1d7c8473d2c0f31096dd181ba95d9b5cc77b6292..869271f4fa08500cccf470826b253e03a2f3f85a 100644 (file)
@@ -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,