]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lda: Do not replace the NULL sender with a default <MAILER-DAEMON> address.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 14 Dec 2017 09:46:39 +0000 (10:46 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 14 Dec 2017 19:07:14 +0000 (21:07 +0200)
Only do this substitution locally where a NULL sender would cause problems, not everywhere else.
This e.g. causes problems when determining whether to send a rejection somewhere; attempts would be made to mail <MAILER-DAEMON>.
Also other envelope-based (Sieve) tests would get confused.

src/lda/main.c

index fbae20dd5cdb9d23f6e0c308a04e7c4072c41899..e7f45be850baf023bf737b5670169344345b9b0a 100644 (file)
@@ -454,9 +454,6 @@ int main(int argc, char *argv[])
                        user_source);
        }
 
-       if (mail_from == NULL)
-               mail_from = DEFAULT_ENVELOPE_SENDER;
-
        ctx.src_mail = lda_raw_mail_open(&ctx, path);
        ctx.mail_from = mail_from;
        ctx.rcpt_to = final_rcpt_to;