On Sun, May 19, 2019 at 10:24:07AM +0200, Gilles Chehade wrote:
> On Sat, May 18, 2019 at 02:55:05PM +0200, David Flatz wrote:
> > Hello everybody
> >
>
> Hello,
>
>
> > Delivery to dovecot works pretty good for normal mails locally with sendmail
> > and from remote. However, when opensmtpd generates a bounce dovecot won't
> > accept it and returns following error message "501 5.5.4 Invalid FROM:
> > Missing domain".
> >
> > [...]
> >
> > It seems like opensmtpd uses an envelope from for the bounces that dovecot
> > doesn't like. Is there a way to make opensmtpd to either use an empty
> > envelope from (since those seem fine to dovecot) or add a domain?
> >
> > Thanks again and have a great weekend!
> >
>
> Yup, the fix will be committed to -current today
>
can you test the following diff and tell me if it makes things better ?
it essentially reverts a commit from months ago which we thought was the
proper way to deal with this, but was actually made necessary because of
another issue in mda_variables.c
I think this diff should properly fix your issue.
Index: parse.y
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/parse.y,v
retrieving revision 1.251
diff -u -p -r1.251 parse.y
--- parse.y 13 Feb 2019 22:57:08 -0000 1.251
+++ parse.y 19 May 2019 08:35:09 -0000
@@ -664,11 +664,11 @@ MBOX {
} dispatcher_local_options
| LMTP STRING {
asprintf(&dispatcher->u.local.command,
- "/usr/libexec/mail.lmtp -f %%{mbox.from} -d %s %%{user.username}",
$2);
+ "/usr/libexec/mail.lmtp -f \"%%{sender}\" -d %s %%{user.username}",
$2);
} dispatcher_local_options
| LMTP STRING RCPT_TO {
asprintf(&dispatcher->u.local.command,
- "/usr/libexec/mail.lmtp -f %%{mbox.from} -d %s %%{dest}", $2);
+ "/usr/libexec/mail.lmtp -f \"%%{sender}\" -d %s %%{dest}", $2);
} dispatcher_local_options
| MDA STRING {
asprintf(&dispatcher->u.local.command,
--
Gilles Chehade @poolpOrg
https://www.poolp.org tip me: https://paypal.me/poolpOrg
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]