[Dovecot] BUG in RC10 deliver using mbox format
Jeremy Koski
jayk at danner.net
Sat Oct 28 21:47:34 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I was having this exact same problem. Thanks Steven.
Steven F Siirila wrote:
> After recently adding the -f parameter to the call to the deliver command
> which is called by Postfix, I found that e-mail with a null return path
> (MAIL FROM:<>) was causing Dovecot deliver to SEGFAULT. I verified this
> by making this patch to deliver.c (notice I fixed a typo here, too):
>
> *** deliver.c.orig Fri Oct 13 07:32:28 2006
> --- deliver.c Fri Oct 27 21:26:08 2006
> ***************
> *** 446,454 ****
> i++;
> if (i == argc) {
> i_fatal_status(EX_USAGE,
> ! "Missing envleope argument");
> }
> ! envelope_sender = argv[i];
> } else {
> print_help();
> i_fatal_status(EX_USAGE,
> --- 446,455 ----
> i++;
> if (i == argc) {
> i_fatal_status(EX_USAGE,
> ! "Missing envelope argument");
> }
> ! if (*argv[i])
> ! envelope_sender = argv[i];
> } else {
> print_help();
> i_fatal_status(EX_USAGE,
>
> While this fixed my SEGFAULT, it still leaves the "From_" line with the
> default "dovecot.deliver" as the return path, something I don't want.
> It should be "MAILER-DAEMON" or some-such just like all the other LDAs
> in the case of a NULL return path. Perhaps there needs to be a new
> parameter so one can specify what a NULL return path should be converted to
> when it is encountered...
>
> Also, note that the "Usage" message in deliver.c does not include the
> relatively new -f option either, so that should have been part of my
> above patch as well.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFQ8Hm3qnKAwni0gQRAml6AKDKnCJJmufBMdJH9tq0R3tvvwvQQACg7Jug
nko7fahkYWIOrsurXYVdEq0=
=uQXo
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list