]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 28 May 2018 05:37:30 +0000 (08:37 +0300)
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 67bd3de6008c3e05f928af92b8ccc459291a54d1..1477084fc9714b717f5e96e39a901bbf2bfd40e2 100644 (file)
@@ -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,